
anchor CLI
Silent install package for anchor CLI
0.1.11-2
- package: tis-anchor-cli
- name: anchor CLI
- version: 0.1.11-2
- maintainer: Amel FRADJ
- licence: MIT license
- target_os: windows
- architecture: x86
- signature_date:
- size: 4.50 Mo
- homepage : https://anchor.dev/
package : tis-anchor-cli
version : 0.1.11-2
architecture : x86
section : base
priority : optional
name : anchor CLI
categories :
maintainer : Amel FRADJ
description : Anchor is a command-line interface for the Anchor certificate management platform
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version :
sources :
installed_size :
impacted_process :
description_fr : Anchor est une interface de ligne de commande pour la plateforme de gestion de certificats Anchor
description_pl : Anchor to interfejs wiersza poleceń dla platformy zarządzania certyfikatami Anchor
description_de : Anchor ist eine Befehlszeilenschnittstelle für die Anchor-Plattform zur Verwaltung von Zertifikaten
description_es : Anchor es una interfaz de línea de comandos para la plataforma de gestión de certificados Anchor
description_pt : Anchor é uma interface de linha de comandos para a plataforma de gestão de certificados Anchor
description_it : Anchor è un'interfaccia a riga di comando per la piattaforma di gestione dei certificati Anchor
description_nl : Anchor is een opdrachtregelinterface voor het Anchor certificaatbeheerplatform
description_ru : Anchor - это интерфейс командной строки для платформы управления сертификатами Anchor
audit_schedule :
editor :
keywords :
licence : MIT license
homepage : https://anchor.dev/
package_uuid : ac549896-425f-4b6c-9da0-cad08b530665
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : e13f4b811d3a526320597901f2d7ebaa4e7a98582ddf92b9fc5b4b9ae7348807
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-05-11T02:00:14.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature : dIAiyhTbykfhiAZImjjXYvq84IJo0436CK1WztVBCdiY/VlyQH/cmnbmJklIFaPmaJs9+ojA2DvmjjNv7L7u7mmo4OIiSxZQa4JOw2DPW2GMOQgXgNQKRU+qvD9hHWcTIzfOyF3waH20/SsU9ixOJno2SMpOFgfjh7LWrFoGYYFRwUu3ryUOHnuzTlq7Vjwwh1ijdaLPKErHzL0vVgRGO7a2Ny/1wI5qZUbLFuHrV2RLS64sTJuWoriQxlPFtW16iCBfDh0qlX6LqRUfkKLn0fgMkvwfTIoCELdmAzfa5FfEnBmtKj9RgsEdCL8BrJYNPsfmY6SFMHJNrGjGEZVuuA==
# -*- coding: utf-8 -*-
from setuphelpers import *
r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
def install():
# Declaring local variable
# Uninstalling older versions of the software
for to_uninstall in installed_softwares(name="anchor CLI"):
if Version(to_uninstall["version"]) < Version(control.get_software_version()) or force:
print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
killalltasks(ensure_list(control.impacted_process))
run(uninstall_cmd(to_uninstall["key"]))
wait_uninstallkey_absent(to_uninstall["key"])
if isdir(to_uninstall["install_location"]):
remove_tree(to_uninstall["install_location"])
# Installing the software
install_msi_if_needed('msi-builder-x86.msi')
# -*- coding: utf-8 -*-
from setuphelpers import *
import re
def update_package():
# Declaring local variables
package_updated = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
dict_arch = {
"x64" :"-x64.msi",
"x86" :"-x86.msi"
}
git_repo = "anchordotdev/cli"
url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo
# Getting latest version information from official sources
print("API used is: %s" % url_api)
json_load = json.loads(wgets(url_api, proxies=proxies))
for download in json_load["assets"]:
if download["browser_download_url"].endswith(".msi") and dict_arch[control.architecture] in download["browser_download_url"]:
url_dl = download["browser_download_url"]
version = json_load["tag_name"].replace("v", "")
filename = download["name"]
break
if not isfile(filename):
package_updated = True
wget(url_dl,filename,proxies=proxies)
#nettoyer les fichiers temporaires
for f in glob.glob('*.msi'):
if f != filename:
remove_file(f)
control.set_software_version(version)
control.save_control_to_wapt()
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
8827d907120e12163c042062af03e5b43695e3aa88d36511584b6b5654b23b76 : WAPT/control
e13f4b811d3a526320597901f2d7ebaa4e7a98582ddf92b9fc5b4b9ae7348807 : WAPT/icon.png
c5f198f01510c1086e0f8a634313676693bfd98dc1c303f9b697801bdd065169 : luti.json
be821ee13e261c9ee2d83a6630d5e070a3f12bc05530ec14591e2f3632dc0c7c : msi-builder-x86.msi
6d05e3a2fa72be7ce6bc53c875f907090714d6a5c822969247f97c499a01c30f : setup.py
5809a16137408dfebb158d57dc855fc5cee2f7f0eb369824f798b2ddbd103653 : update_package.py