
ConfigCat CLI
Paquet d’installation silencieuse pour ConfigCat CLI
2.3.2-1
- package: tis-configcat-cli
- name: ConfigCat CLI
- version: 2.3.2-1
- maintainer: Amel FRADJ
- licence: MIT license
- target_os: windows
- architecture: x64
- signature_date:
- size: 15.38 Mo
- homepage : configcat.github.io/cli
package : tis-configcat-cli
version : 2.3.2-1
architecture : x64
section : base
priority : optional
name : ConfigCat CLI
categories :
maintainer : Amel FRADJ
description : Command Line Interface for ConfigCat
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version :
sources :
installed_size :
impacted_process :
description_fr : Interface de ligne de commande pour ConfigCat
description_pl : Interfejs wiersza poleceń dla ConfigCat
description_de : Befehlszeilenschnittstelle für ConfigCat
description_es : Interfaz de línea de comandos para ConfigCat
description_pt : Interface de linha de comando para o ConfigCat
description_it : Interfaccia a riga di comando per ConfigCat
description_nl : Opdrachtregelinterface voor ConfigCat
description_ru : Интерфейс командной строки для ConfigCat
audit_schedule :
editor :
keywords :
licence : MIT license
homepage : configcat.github.io/cli
package_uuid : 6eeca97e-ac10-4c7f-a213-1f964b2259e9
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 2005c82ff1596419cecbae082493e594de783386a12f47a9b0d0486681a3ada9
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : vl7353oDjrE1jdk4AqCGJDIBuH3PY23bvetM4dQAl3DPNrsLuff6LwlqYNDd+NuF1hIS2eXKK/47cIvyPE5OxhcNjP4ODoEHQdVS/Uk9XoYdzSLGV6MfjNOpF3+ZxRivNS9S6YeiHcwkID78pxV7/M7H3xc7U9a8fLiGzbt4gCgd6z+IJ+S9qgTj0J6vMoUfXue/fNDWA7wgamkJWK5OZCLML4S0Y3smptohbDVGJWmIgHDJRO334zM/KgO1hqle2QHyqbeR99DRA1s4KIH6vDVhwt8Ec697LSqn5c6qtrV4obI+peIFXgJ3zeWJKGORoL6FRk32wLV8MgkoKpXlSw==
signature_date : 2024-07-30T17:04:30.445146
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
# -*- coding: utf-8 -*-
from setuphelpers import *
"""
"""
app_name = "configcat "
editor_dir = makepath(programfiles, "configcat")
app_dir = makepath(editor_dir, "configcat")
app_path = makepath(app_dir, "configcat.exe")
audit_version = False
def get_installed_version(app_path):
return get_file_properties(app_path).get("FileVersion", "")
def install():
# Declaring local variables
zip_name = glob.glob(f"configcat-*.zip")[0]
unzipped_dir = "configcat"
# Installing software
killalltasks(ensure_list(control.impacted_process))
if isdir(app_dir) and force:
remove_tree(app_dir)
mkdirs(app_dir)
print("Extracting: %s to: %s" % (zip_name, unzipped_dir))
unzip(zip_name, unzipped_dir)
print('Copy configcat to %s' % app_dir)
copytree2(unzipped_dir, app_dir, onreplace=default_overwrite)
add_to_system_path(app_dir)
def audit():
# Auditing software
audit_status = "OK"
installed_version = get_installed_version(app_path)
if Version(installed_version) < Version(control.get_software_version()) and audit_version:
print("%s is installed in version (%s) instead of (%s)" % (app_name, installed_version, control.get_software_version()))
audit_status = "WARNING"
elif isdir(app_dir) and not dir_is_empty(app_dir):
print("%s (%s) is installed" % (app_name, installed_version))
audit_status = "OK"
else:
print("%s is not installed" % app_name)
audit_status = "ERROR"
return audit_status
def uninstall():
# Uninstalling software
killalltasks(ensure_list(control.impacted_process))
if isdir(app_dir):
remove_tree(app_dir)
if dir_is_empty(editor_dir):
remove_tree(editor_dir)
# -*- 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" :"_win-x64.zip",
"x86" :"_win-x86.zip"
}
git_repo = "configcat/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(".zip") 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("*.zip"):
if f != filename:
remove_file(f)
control.set_software_version(version)
control.save_control_to_wapt()
df093a35d34e6dcdf9b7619d95c168f5b6779d3cef523ab7b9a59163dbda05e7 : setup.py
a86b74c8c7b28396a64d0c73e9ad5100a3f6a7e84c99eedc144cebfdc1ed8e8c : configcat-cli_2.3.2_win-x64.zip
6f5f8cf1eb259819aa6bfb0f80c4a2b87f92ebd6a25222b3a74c373b16ee4831 : update_package.py
2005c82ff1596419cecbae082493e594de783386a12f47a9b0d0486681a3ada9 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
d64a306520728b52a246ff83ad5677795f209a4856d382fe26c06f875a983a4c : luti.json
9475ce09562d5abf8ddbd9b2baa7fd462b394cf9773a3b7fdc056e1f03b9ea98 : WAPT/control