
switchhosts
Silent install package for switchhosts
4.1.2-1
- package: tis-switchhosts
- name: switchhosts
- version: 4.1.2-1
- maintainer: Amel FRADJ
- licence: Apache License
- target_os: windows
- architecture: x64
- signature_date:
- size: 64.80 Mo
- homepage : https://switchhosts.vercel.app/
package : tis-switchhosts
version : 4.1.2-1
architecture : x64
section : base
priority : optional
name : switchhosts
categories :
maintainer : Amel FRADJ
description : SwitchHosts is an App for hosts management and switching
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version :
sources :
installed_size :
impacted_process :
description_fr : SwitchHosts est une application de gestion et de commutation d'hôtes
description_pl : SwitchHosts to aplikacja do zarządzania i przełączania hostów
description_de : SwitchHosts ist eine App zur Verwaltung und Vermittlung von Hosts
description_es : SwitchHosts es una App para la gestión y conmutación de hosts
description_pt : SwitchHosts é uma aplicação para gestão e comutação de hosts
description_it : SwitchHosts è un'applicazione per la gestione e la commutazione degli host
description_nl : SwitchHosts is een app voor hosts beheren en schakelen
description_ru : SwitchHosts - это приложение для управления и переключения хостов
audit_schedule :
editor :
keywords :
licence : Apache License
homepage : https://switchhosts.vercel.app/
package_uuid : 03157a5c-5f58-4457-afbb-8c0011f0e90e
valid_from :
valid_until :
forced_install_on :
changelog : https://github.com/oldj/SwitchHosts/compare/v4.1.2...v4.2.0-beta
min_os_version :
max_os_version :
icon_sha256sum : e11a5c8e084368271f885320468e3734767105459f93f9a3274f0fbc24b2f29a
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : uecR+cQy+tXAWLLSPd+8dlT86984sAyLNNcC1dtttHXdAHf0raaNBuVXi7fo4olABJ2uh1MGWZahYAOd6CDqTG5u/Uz28Vu0ToA4d65rnE/9S6in6TUNYaGtLLXr5kJRGPuSy6MepymPhQlWE/YCQtIEklyi4mg5ZJSa8ZFSf6oY3GPtpURG05BdcYLMIgkeoHUfjXKxeU64LMsyzdPpO3BrE7UMRhNwaW9szFGKDxnvBNHNj97ZlYFRjqzTEghroIFX3DiTs/CTiUrtSXJkI+IdLpGXdHzcuRa39DxrC01hwMswXenmHKCjAZZgZfH7piMAjkBldew/0xix5zxgmA==
signature_date : 2024-06-03T07:05:41.983831
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 *
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
bin_name = glob.glob('SwitchHosts_windows_installer_x64_*.exe')[0]
# Installing the software
install_exe_if_needed(bin_name,
silentflags='/S /allusers',
key='0fe234d9-0d04-586e-929c-f74ec824c6ec',
min_version=control.get_software_version(),
)
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import json
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
def update_package():
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
dict_arch = {
"x64":"_x64",
"x86":"_ia32"}
git_repo = "oldj/SwitchHosts"
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('.exe') and dict_arch[control.architecture] in download["browser_download_url"]:
url_dl = download["browser_download_url"]
version = json_load["name"][12:].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('*.exe'):
if f != filename:
remove_file(f)
# Checking version from file
version = get_version_from_binary(filename)
control.set_software_version(version)
control.save_control_to_wapt()
2ea96ee22b4bcc516619043de17e327a5a1547fcad662e6dd689540860d713c9 : setup.py
1f1dd9268f1990958dc73336fd8fd42592f1ca2f08b8e0f723b7f8c628aa5504 : update_package.py
e11a5c8e084368271f885320468e3734767105459f93f9a3274f0fbc24b2f29a : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
4c5caeab7e354a978ac637f0be9bcffa821f6b49375cd1bdcfaa4eb2cf577b95 : luti.json
0cd93979185592d6b81d0cc968e5f6e14ca3588b02d2f641f99f865aa724d17d : SwitchHosts_windows_installer_x64_4.1.2.6086.exe
b603173ee64bb84de5966a08eda2e023cea92fc428e904f47397781fe33a70aa : WAPT/control