- package: tis-barrier
- name: Barrier
- version: 2.4.0-0
- categories: Utilities
- maintainer: WAPT Team,Jimmy PELÉ
- target_os: windows
- impacted_process: barrier
- architecture: all
- signature_date:
- size: 9.14 Mo
package : tis-barrier
version : 2.4.0-0
architecture : all
section : base
priority : optional
name : Barrier
categories : Utilities
maintainer : WAPT Team,Jimmy PELÉ
description : Barrier is software that mimics the functionality of a KVM switch, which historically would allow you to use a single keyboard and mouse to control multiple computers
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version :
sources :
installed_size :
impacted_process : barrier
description_fr : Barrier est un logiciel qui imite la fonctionnalité d'un commutateur KVM, qui vous permettait historiquement d'utiliser un seul clavier et une seule souris pour contrôler plusieurs ordinateurs
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : 8ae7ef86-1dae-478a-bf5a-be21f3fdc2cd
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : a12955a43a4dfaec61767c13f2c73beb5ef27bd561789376e759666189d2b39c
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : cEFOhLbdGHlG0qzGfqq6aJ6ga2E1Bgih63v9F3bPzQ9MEsyCOAqH9QnEaqGTbxNjetj9ApLpk/eL1r9CX8Dob3/YJQEuw8coODxNWRg1RkAoirUxJrnO9lt36rdAnRt9QRVpmq7Dpj/MluK5wEQQTuzg0UX4lnLlon96+9UxN1/bO/dcHdRXH6KSXFhHIRtP4OazDF0SE3CtCXSHEKnko/JeIYtUK8nAG/eWccccknkp6Wi3D79AhKgoMNNA0hS/6s9SUdVIHaqOCBn4LkLyZKqRd6a3UPjVt7f6IAB2vAxRdcOb2IkmZPB8gT4r1hvjvyA/xcfEV+0YY4D7HqyimQ==
signature_date : 2021-11-09T14:12:21.454937
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 *
uninstallkey = []
# Declaring specific app values (TO CHANGE)
bin_name_string = 'Barrier'
silent_args = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART'
app_uninstallkey = '{41036EA6-3F7A-4803-8AE0-469E5E91EFCC}_is1'
def install():
package_version = control.get_software_version()
bin_name = glob.glob('*%s*.exe' % bin_name_string)[0]
# Installing the package
install_exe_if_needed(bin_name
,silentflags=silent_args
,key=app_uninstallkey
,min_version=package_version)
def update_package():
print('Download/Update package content from upstream binary sources')
import json
# Getting proxy informations from WAPT settings
proxy = {}
if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
if proxywapt :
proxy = {'http':proxywapt,'https':proxywapt}
# Specific app values
app_name = control.name
url_api = 'https://api.github.com/repos/debauchee/barrier/releases/latest'
bin_end = '.exe'
# Getting latest informations from Github API
json_load = json.loads(wgets(url_api,proxies=proxy))
for download in json_load['assets']:
if download['browser_download_url'].endswith(bin_end):
url_dl = download['browser_download_url']
break
latest_bin = url_dl.split('/')[-1]
version = (url_dl.split('/')[-2]).replace('v','')
print('Latest ' + app_name + ' version is: ' + version)
print('Download url is: ' + url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print('Downloading: ' + latest_bin)
wget(url_dl,latest_bin,proxies=proxy)
# Change version of the package
print('Writing ' + version + '-0 in WAPT\\control')
from waptpackage import PackageEntry
pe = PackageEntry()
pe.load_control_from_wapt(os.getcwd())
pe.version = version + '-0'
pe.save_control_to_wapt(os.getcwd())
print('Update package done. You can now build-upload your package')
else:
print('This package is already up-to-date')
# Deleting outdated binaries
for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi'):
if bin_in_dir != latest_bin :
print('Outdated binary: ' + bin_in_dir + ' Deleted')
remove_file(bin_in_dir)
7e66b7b4d13312e607edd06f8ea38f3c9b09b3e8aea2b55250c00b25f9892885 : BarrierSetup-2.4.0-release.exe
5564466d7240c5a4c8483851a6249bbb8b7cf1d27d2d543a6a4f58d2de8b99d8 : setup.py
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
a12955a43a4dfaec61767c13f2c73beb5ef27bd561789376e759666189d2b39c : WAPT/icon.png
4bb580af3858740a23a901ccbe4085c50501c300e67a587b86062628d883c128 : WAPT/control