
switchhosts
Silent install package for switchhosts
4.2.0-1
- package: tis-switchhosts
- name: switchhosts
- version: 4.2.0-1
- maintainer: Amel FRADJ
- licence: Apache License
- target_os: windows
- architecture: x64
- signature_date:
- size: 79.05 Mo
- homepage : https://switchhosts.vercel.app/
package : tis-switchhosts
version : 4.2.0-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 : 6fbc032a-b670-4eeb-8e0e-dcc75467ce87
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 : xaayk97g1XSUGNW08OU9f3xAb1vps0Wk7qDuaBnWObqUcEQ12V4+OpO9GAVBmOvsiM8XnhxXLOV0Fqj8pCiWC4T1QUra/v6W04lk6vw/pMOBuJw1Y81GScbBaPqK28Rd4ZVmZZfNy47sSuv/L7akHKPTcJ6JKW804iOxVTo2ws+Dp8ymSC8AiiWH0T98do25NlHRKXsfqTOvvzh/9Jx8r6frp8VI7L7/AJW0AR/ZfYyyjpZOKZWTI5MA3g1F3dC8fvZTRshWqCHo3THJ0vQWJ5Pj/rta5Th5tsMucpinRlbNfZDNKUS1DipazHY5v28EJCx4nqL9+FlBcueZPjLPUw==
signature_date : 2024-08-12T17:05:17.009290
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
d173a61eb339c513060d6a9ddb43f156a75c2140ab8c6f540faa075d54ddb000 : SwitchHosts_windows_installer_x64_4.2.0.6119.exe
e11a5c8e084368271f885320468e3734767105459f93f9a3274f0fbc24b2f29a : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
5804046493b3dcb16c79e0a8c09cd51ff07e31c5657b0ad175c73ac79054dd41 : luti.json
bada0d2e2a726ab6df61ac9931ddc3d339afc00ef51c8bb9accc979cd8bd69ed : WAPT/control