
anchor CLI
Silent install package for anchor CLI
0.1.7-2
- package: tis-anchor-cli
- name: anchor CLI
- version: 0.1.7-2
- maintainer: Amel FRADJ
- licence: MIT license
- target_os: windows
- architecture: x64
- signature_date:
- size: 5.38 Mo
- homepage : https://anchor.dev/
package : tis-anchor-cli
version : 0.1.7-2
architecture : x64
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 : cfa8747d-22c8-45fd-af6d-e16f181d71e3
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-11-17T20:00:08.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 : gh7YzegBGGQXMVbx6tSEG7NKwc++4OsbPwwhNamvrALJkOhW4KfX0E9sRTrUFaiGqRCYe2wiFO0GtlUrrOVpN2P8Mu/B0ye3kMrxIRb0eOCgFx+fGlrp5VOMEWF6wLdtH/bwTogCfA5g+y4bZN9MsMffVMPm7smZH03mV3XhWk3BhBgO0x6tKmlIit2TB7buGsSiyG7bv0EyaqM5Z75ZhChrz14Uhm2muoXPmAGbVK/9tX0HfwXCeyi1Cj1+1QhdAoOzmh2VcFyqjjn4oNyiJJbAAddGKYggBvHA69dKaNfzfboqu3zmmYfqamnNXXlQn4zFlopudncIsTFSeRBYsw==
# -*- 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 variables
# 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-x64.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
ebef00b8dc21d4104f9ee7292ac5c51cb744e4aec414508834bcfe3d45c392a1 : WAPT/control
e13f4b811d3a526320597901f2d7ebaa4e7a98582ddf92b9fc5b4b9ae7348807 : WAPT/icon.png
6d66e9fa9e634eb55cb3943f7c0ae383d065c09e2cd9d82297fdcd515f8dcfb8 : luti.json
04c114d5a9bf474db01fbbef7936b1e6b1d22a3cca021e6eec3417fd94af9687 : msi-builder-x64.msi
b8a62ffb236a353c148af027454674f6a3e010fb83e222eb958d8e8cbb4d7bbc : setup.py
5809a16137408dfebb158d57dc855fc5cee2f7f0eb369824f798b2ddbd103653 : update_package.py