tis-wireguard icon

WireGuard

Silent install package for WireGuard

0.5.3-8

  • package: tis-wireguard
  • name: WireGuard
  • version: 0.5.3-8
  • categories: System and network,Drivers
  • maintainer: WAPT Team,Jimmy PELÉ
  • editor: WireGuard
  • licence: GPLv2
  • locale: all
  • target_os: windows
  • impacted_process: wireguard
  • architecture: x86
  • signature_date:
  • size: 2.58 Mo
  • homepage : https://www.wireguard.com/

package           : tis-wireguard
version           : 0.5.3-8
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            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://www.wireguard.com/install/
installed_size    : 
impacted_process  : wireguard
description_fr    : WireGuard est un VPN extrêmement simple, rapide et moderne qui utilise une cryptographie de pointe. Il vise à être plus rapide, plus simple, plus léger et plus utile que l'IPsec
description_pl    : WireGuard to niezwykle prosty, ale szybki i nowoczesny VPN, który wykorzystuje najnowocześniejszą kryptografię. Jego celem jest bycie szybszym, prostszym, szczuplejszym i bardziej użytecznym niż IPsec
description_de    : WireGuard ist ein extrem einfaches, aber dennoch schnelles und modernes VPN, das modernste Kryptographie nutzt. Es zielt darauf ab, schneller, einfacher, schlanker und nützlicher als IPsec zu sein
description_es    : WireGuard es una VPN extremadamente simple pero rápida y moderna que utiliza criptografía de última generación. Su objetivo es ser más rápido, más simple, más delgado y más útil que IPsec
description_pt    : WireGuard é uma VPN extremamente simples mas rápida e moderna que utiliza criptografia de última geração. O seu objectivo é ser mais rápido, mais simples, mais simples e mais útil do que o IPsec
description_it    : WireGuard è una VPN estremamente semplice, ma veloce e moderna che utilizza una crittografia all'avanguardia. Il suo obiettivo è quello di essere più veloce, più semplice, più snello e più utile di IPsec
description_nl    : WireGuard is een uiterst eenvoudige, maar snelle en moderne VPN die gebruik maakt van de allernieuwste cryptografie. Het is bedoeld om sneller, eenvoudiger, slanker en nuttiger te zijn dan IPsec
description_ru    : WireGuard - это чрезвычайно простой, но быстрый и современный VPN, использующий самую современную криптографию. Его цель - быть быстрее, проще, компактнее и полезнее, чем IPsec
audit_schedule    : 
editor            : WireGuard
keywords          : 
licence           : GPLv2
homepage          : https://www.wireguard.com/
package_uuid      : bc4d7cbc-7642-4a1d-8782-0b9efecfe313
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         : opyz5s9ulwPJHyuQLTlP5mYuyJkmfStgeNUAVXSZpq/hvnUg+fxqGMRaWL7H8+PvN7KGEM4Eqnph6MVrPwvaFONhUx31l8W5SeWCKpiS4pRXiBeT/cTAE6xqf6G8wvSzPkmnLBk+cMvKQn45aB78aiBVER5m90X3NqbGFPFjMRLZKIM27Lt54LH8DWc7UXlVOpoTfCLZtVJ2EkxYbhPzmZllj8O7I5yRhru5qhwgL5iPhUPPJcQYp0go2ZfXaxlhpCw2pix9wVU0BzA/f/36yqt6Ie9s2Lz0qaS8RER3Bx5iKXQlNe2koX9pktoEkmXwucN6FcVC56o8v7uQgXPrTw==
signature_date    : 2023-08-28T20:00:17.280740
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 *


def install():
    # Specific app values
    package_version = control.get_software_version()

    # 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(
        "wireguard-x86-%s.msi" % package_version,
        properties="DO_NOT_LAUNCH=1",
        min_version=package_version,
    )

# -*- coding: utf-8 -*-
from setuphelpers import *
import requests, platform
import bs4 as BeautifulSoup

bin_name_string = "wireguard-x86-%s.msi"


def update_package():
    print("Download/Update package content from upstream binary sources")

    result = False
    proxies = get_proxies()

    if not proxies:
        proxies = get_proxies_from_wapt_console()
    # Specific app values
    app_name = control.name
    url = "https://github.com/WireGuard/wireguard-windows/tags"

    # Getting latest version from official website
    
    bs_search = bs_find(url, "h2", "class", "f4 d-inline")
    version = ((bs_search.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=proxies)

        # Get version from file
        version_from_file = get_msi_properties(latest_bin)["ProductVersion"]
        if version != version_from_file and version_from_file != "":
            version = version_from_file
            old_latest_bin = latest_bin
            latest_bin = bin_name_string % version
            if isfile(latest_bin):
                remove_file(latest_bin)
            os.rename(old_latest_bin, latest_bin)

        # Change version of the package
        control.version = "%s-%s" % (version, int(control.version.split("-", 1)[1]) + 1)
        control.save_control_to_wapt(".")
        print("Changing version to " + control.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)

259ee6425c97e0cc3250ff387be453931978fced48cfc7164185022aae020d5d : setup.py
a393460f4f3addb2d5390eb961482ce313f493b46a7ec0b515356f47961effc8 : update_package.py
66b1c6930bbc2bbeaf2f234bcce6726f7150599713d448a9ade6ce31d4b72afb : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
233a0871746ae55deae218bd26e9540e967db72033cf9e1c46b20fc721588e13 : luti.json
ad1af1ae3474ef35de3809979aee98758430881b270e47e89e027b3490791d0d : wireguard-x86-0.5.3.msi
c9e1b3127c2f1312056d49a93ac4bd700393fd323d2bf3b2235aff52bea8d136 : wireguard-drivers.cer
feeb0a2c3db85559d3242cad435dccd16ee99812d5b6d72800f2894973592fd5 : WAPT/control