
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: x86
- signature_date:
- size: 73.91 Mo
- homepage : https://switchhosts.vercel.app/
package : tis-switchhosts
version : 4.2.0-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 : d7dd2df5-e755-4319-b613-aa5730dd3955
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 : muPDm/7iEMNzYhHkL2cpCj3BWNlVSNh8ByNszJBRP6qNDFsS62B7jScPkb4R7VFJ5meTMOVAjV0rD1tvzuGrS6Lq3jLXYkQdVym0NYjk3ycXCmiOQS2qbBOi1vZh28JVplbtnzoV1dH6n6IwUrXh/wF+PLqhyoyksa3lMSQXwOmrmxvWGBbbf151WhO9c1YbQUz7XPv7M4a/Cw/AH1so/6T6wGQ/iFcNykkOgNZVcD3fufWl2LIDXCGzQR9eEYEMx3s2l1ah0QFSmtU+Vc3HIpYHxnrBQhMUdssrTcHcebDYBaH+lhS2eLvVqOEppqZH1/KNYlHEEoHAwMcAVDBA+A==
signature_date : 2024-08-12T17:00:42.367538
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
1f1dd9268f1990958dc73336fd8fd42592f1ca2f08b8e0f723b7f8c628aa5504 : update_package.py
1b5321469f08c57b95fb7e94082d64fa4e6558f095e152ddbfcbc986bcd76f5f : SwitchHosts_windows_installer_ia32_4.2.0.6119.exe
e11a5c8e084368271f885320468e3734767105459f93f9a3274f0fbc24b2f29a : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
d552d2e113630bdcf404391e44f649b6a4f25241a323fafecde61ddc76bf4970 : luti.json
1cb250b490d474a66d26c1323d29ec4242d954f1c5cb67dfedd3e69d0a8e82ae : WAPT/control