
anchor CLI
Silent install package for anchor CLI
0.1.8-2
- package: tis-anchor-cli
- name: anchor CLI
- version: 0.1.8-2
- maintainer: Amel FRADJ
- licence: MIT license
- target_os: windows
- architecture: x86
- signature_date:
- size: 5.17 Mo
- homepage : https://anchor.dev/
package : tis-anchor-cli
version : 0.1.8-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 : 537bf72b-d247-4b0d-9e0e-bd82c97df773
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 : 2024-12-08T18:04:27.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 : fPFCw1EcRKmjAOPlPlED0yRanTDrnrzYqmWnfWFD+Oz1Sit2nxXCPZAAvQS42Qcqxl9pAP7U9l+zcDqKBLtAqgmUKsflBmQ1bD1EGHgx+Gs6C4JlrE4chWfcCgHlo6ACQtEd8TA4S3q0CIQIfZBCwzYZLPDy8r1EsvWRa9wbigKz7SeJIQaFlL5yiz2Z/ADLHE+eEaMYrCrZ1YhcnOow2jBCEsZymMbGxwVwggPfmzBESRb6uIJp1ax7zBkSlhdRFNdw+6AhJfKxdOn2rVctvnVwdEuhihfl87qbz72JpfSE8wsAkU3t4zEeEpDrpIyVpJvFu61Bq12Y3GSbjp9lXg==
# -*- 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
643c630192f1156a55712e98ef211078db07a4edda89371e5a37818ec3d4bf32 : WAPT/control
e13f4b811d3a526320597901f2d7ebaa4e7a98582ddf92b9fc5b4b9ae7348807 : WAPT/icon.png
ae23103286d9f33ab4285fea2768505deae49646eb0dbbc83ae2a0298ae3da1f : luti.json
c5848a39500090a0e11971c818ca136473f26f842adb39e923eced7dd8119c8d : msi-builder-x86.msi
6d05e3a2fa72be7ce6bc53c875f907090714d6a5c822969247f97c499a01c30f : setup.py
5809a16137408dfebb158d57dc855fc5cee2f7f0eb369824f798b2ddbd103653 : update_package.py