
switchhosts
Paquet d’installation silencieuse pour 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: x86
- signature_date:
- size: 55.43 Mo
- homepage : https://switchhosts.vercel.app/
package : tis-switchhosts
version : 4.1.2-1
architecture : x86
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 : 194adad9-f051-46b7-ae30-2aea61435d2e
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 : W5umBLy9CG2NlWyVPwh6yQJ2nyCNosftimIosjxQyiQI71gDNAcfvt4Whs2T9RA2EY2teqDje2CrlsfdzKBi9WP+gi5UM2BFoHRniDVx1g2Z2DJvbWYj7Bl942Pr+48TKf0LSEQC2WfihRbbPic9JWRqv3P1tYjmGBz3XIiSYboRWGeDU6mX88Z4tMuLksKUmwkvzL+7D3MtTp4mIlHTC6+nSTayCsOmeYDgWN3ubDqXEvpPdairyj/Lw4E8TUgxvjBM0FwAWM8HYtz91tIevX0rdiRNzjgCEMDwecGmeAayjhCs4OImRvNY5TE9mkcFUtsvAOrF4tDIDrfyOrmGNA==
signature_date : 2024-06-03T07:02:17.830301
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_ia32_*.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()
9248ca6e33d38a852804124bdf78a07e93a0ecee068d546ef29cca7ee3591e83 : setup.py
7a53576cd8ae7b7e592a7a69510a1d1d25aacbd04f4422ac59a91486f7af4615 : SwitchHosts_windows_installer_ia32_4.1.2.6086.exe
1f1dd9268f1990958dc73336fd8fd42592f1ca2f08b8e0f723b7f8c628aa5504 : update_package.py
e11a5c8e084368271f885320468e3734767105459f93f9a3274f0fbc24b2f29a : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
ba1c3e2c2cc93c9ab8dcdf140c014165de7ae7e5c56547a70468d6e9037c603a : luti.json
f9a60290ce0e9f1867d9c64ac7752e5aee78eca90654a7e6381e3b2a88f0a437 : WAPT/control