
- package: tis-wireguard
- name: WireGuard
- version: 0.5.2-3
- categories: System and network,Drivers
- maintainer: WAPT Team,Jimmy PELÉ
- editor: WireGuard
- licence: GPLv2
- target_os: windows
- impacted_process: wireguard
- architecture: x86
- signature_date:
- size: 2.50 Mo
- homepage : https://www.wireguard.com/
package : tis-wireguard
version : 0.5.2-3
architecture : x86
section : base
priority : optional
name : WireGuard
categories : System and network,Drivers
maintainer : WAPT Team,Jimmy PELÉ
description : WireGuard is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version :
sources : https://www.wireguard.com/install/
installed_size :
impacted_process : wireguard
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor : WireGuard
keywords :
licence : GPLv2
homepage : https://www.wireguard.com/
package_uuid : b6b11303-2aa4-464e-8f61-54e2c9b92a8c
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 6.1
max_os_version :
icon_sha256sum : 66b1c6930bbc2bbeaf2f234bcce6726f7150599713d448a9ade6ce31d4b72afb
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : rxvnaxXQvCAO098RjomWwQZi5TBLkrTBPHFcCjnqMU/dlWjymjAJSa9Liqd2KnBIGLWT3u3OKiE55g0BTty5l3w3hx8cqdEHQSt/74lmL1i7gQhoh7aTzjq7S8HWoeN5BhlJOjyXUELBY5LyjXqDlwtkxNCYR30tt4xMvupRcZ9C2+oYIikpyXfsP9Bgl+mWfaE0o7nNQdTsRgCNVtSjml78nVtidXQXS+Z1OF02NINgvxq4sBfEGykLGSYSgL83ce3kcDA3fZGmraW3zPXb4I5/PUfiJe+NHICUVH8moR/nlX34pm1mVGI2BIOlZb3TLf+VeAYbB7uJvLvGe7ruvA==
signature_date : 2021-11-09T14:09:41.343745
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 *
import requests,platform
try:
import bs4 as BeautifulSoup
except:
import BeautifulSoup
uninstallkey = []
# Declaring specific app values (TO CHANGE)
bin_name_string = 'wireguard-x86-%s.msi'
silent_args = 'DO_NOT_LAUNCH=1'
def install():
# Specific app values
package_version = control.version.split('-')[0]
# Getting the used storage on programfiles before installation (place it on the top)
get_disk_free_space_before = get_disk_free_space(programfiles)
# Adding "WireGuard LLC" as trusted driver signer
with disable_file_system_redirection():
run('"%s" -addstore TrustedPublisher "%s"' % (makepath(system32,'certutil.exe'),makepath(basedir,'wireguard-drivers.cer')))
# Installing the package
install_msi_if_needed(bin_name_string % package_version
,properties=silent_args
,min_version=package_version)
# Return used storage of the program. (place it on the bottom)
get_disk_free_space_after = get_disk_free_space(programfiles)
free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
print("Storage used: " + str(free_space_after_diff))
def update_package():
print('Download/Update package content from upstream binary sources')
# Getting proxy informations from WAPT settings
proxy = {}
if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'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 = 'https://github.com/WireGuard/wireguard-windows/tags'
# Getting latest version from official website
page = requests.get(url,proxies=proxy).text
bs = BeautifulSoup.BeautifulSoup(page)
#bs = BeautifulSoup.BeautifulSoup(page,features="html.parser") # For bs4 only
bs_raw_string = bs.find('h4',{'class':'flex-auto min-width-0 pr-2 pb-1 commit-title'})
version = ((bs_raw_string.findNext())['href'].split('/')[-1]).replace('v','')
latest_bin = bin_name_string % version
url_dl = 'https://download.wireguard.com/windows-client/' + latest_bin
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
pe = PackageEntry().load_control_from_wapt('.')
pe.version = '%s-%s'%(version,int(pe.version.split('-',1)[1])+1)
pe.save_control_to_wapt('.')
print('Changing version to ' + pe.version + ' in WAPT\\control')
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)
if __name__ == '__main__':
update_package()
2b7d5d44dc012fb23e551fd4bfe137fc1327154da06670963e8fa49554665c13 : luti.json
c020bf135c59b294dcdf32cab9f6ef5e4f92964285800bab27f8e6694e6dbd88 : setup.py
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
66b1c6930bbc2bbeaf2f234bcce6726f7150599713d448a9ade6ce31d4b72afb : WAPT/icon.png
c9e1b3127c2f1312056d49a93ac4bd700393fd323d2bf3b2235aff52bea8d136 : wireguard-drivers.cer
c38cbcf35549644f7b3a3ecffd213db5abb559bd7a1723ab7b8abf1f1f110a6a : wireguard-x86-0.5.2.msi
542ea92d5a8fd150aa15c85663e3d1e9325d3e5f3577a43f56261f75a5d5dd0c : WAPT/control