- package: tis-proton-vpn
- name: Proton VPN
- version: 3.5.1-2
- categories: Security
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ
- licence: opensource_free,wapt_public
- target_os: windows
- impacted_process: ProtonVPNService,ProtonVPN
- architecture: x64
- signature_date:
- size: 84.79 Mo
- homepage : https://protonvpn.com/
package : tis-proton-vpn
version : 3.5.1-2
architecture : x64
section : base
priority : optional
name : Proton VPN
categories : Security
maintainer : WAPT Team,Tranquil IT,Amel FRADJ
description : Official ProtonVPN Windows app
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version : 2.3
sources :
installed_size :
impacted_process : ProtonVPNService,ProtonVPN
description_fr : Application Windows officielle de ProtonVPN
description_pl : Oficjalna aplikacja ProtonVPN na Windows
description_de : Offizielle ProtonVPN Windows-Anwendung
description_es : Aplicación oficial de ProtonVPN para Windows
description_pt : Aplicação oficial da ProtonVPN para Windows
description_it : Applicazione ufficiale ProtonVPN per Windows
description_nl : Officiële Windows-app van ProtonVPN
description_ru : Официальное приложение ProtonVPN для Windows
audit_schedule :
editor :
keywords :
licence : opensource_free,wapt_public
homepage : https://protonvpn.com/
package_uuid : 8f07c00d-3ba3-43c0-8e85-fa9fe25d6458
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 10.0
max_os_version :
icon_sha256sum : 607ec93d3b82c0a6920d6f158b4423732570e49e710d3d2814c675c463ba8014
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-01-26T09:15:01.000000
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
signature : eN2EN7fw0RuPoirb/6FS9qWcp1JliCbP6GjV+UzDN034Af5q7qf3PJJImwOgmrF1B31fjAHDefELclULZGPBMrR+C22mhUgo+T4Fm/jNRRmq3fopuNx/8ExZllOMQ3D5FGxg2I/zDMZdqMu4Oo/Tt7P2wyiQ2QceTBBAZai1ddOuC3CplA8EZsL/gavnb3Lq3+YjLCU+OkbBSkOR7toQnwXycwGz8icx0VuftLbm2dCahIIO2s2MejEyHRRHw3b+Xx/KTSVtXzCtYLUrAC1oH5RvTgfDAIr1faJ4EKK5CDlV78doyPEksjz/CaeQLIVwmqz87j2/Wt+b2Yy2HsfCLQ==
# -*- coding: utf-8 -*-
from setuphelpers import *
def install():
# Declaring local variables
bin_name = glob.glob('ProtonVPN_*.exe')[0]
uninstall_older_version()
# Installing the software
install_exe_if_needed(bin_name,
silentflags='/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /ALLUSERS /FORCECLOSEAPPLICATIONS',
key='Proton VPN_is1',
min_version=control.get_software_version(),
)
def uninstall_older_version():
killalltasks(ensure_list(control.impacted_process))
for soft in installed_softwares('Proton VPN_is1'):
uninstall_key = soft['key']
if Version(soft['version']) < Version(control.get_software_version()):
run(uninstall_cmd(uninstall_key))
wait_uninstallkey_absent(uninstall_key)
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import waptlicences
def update_package():
# Declaring local variables
package_updated = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
git_repo = "ProtonVPN/win-app"
url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo
os_dict = { 'windows-x64': 'x64.exe' }
os_type = control.target_os + "-" + ensure_list(control.architecture)[0]
# Getting latest version information from official sources
print("API used is: %s" % url_api)
json_load = wgets(url_api, proxies=proxies, as_json=True)
for download in json_load["assets"]:
if download["name"].endswith(os_dict[os_type]) :
download_url = download["browser_download_url"]
version = json_load["tag_name"].replace("v", "")
latest_bin = download["name"]
latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
break
# Downloading latest binaries
print(f"Latest {app_name} version is: {version}")
print(f"Download URL is: {download_url}")
if not isfile(latest_bin):
print(f"Downloading: {latest_bin}")
wget(download_url, latest_bin, proxies=proxies)
else:
print(f"Binary is present: {latest_bin}")
expected_issuer = "Proton AG"
sign_name = waptlicences.check_msi_signature(latest_bin)[0]
if sign_name != expected_issuer:
error(f'Bad issuer {sign_name} != {expected_issuer} ')
# Changing version of the package
if Version(version) > Version(control.get_software_version()):
print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
package_updated = True
else:
print(f"Software version up-to-date ({Version(version)})")
for f in glob.glob(f'*.{latest_bin_extension}'):
if f != latest_bin:
remove_file(f)
control.set_software_version(version)
control.save_control_to_wapt()
return package_updated
5658a2f5506ede6bfe552bde6af35f1daccd3d7092a60ce4be85bff806770056 : ProtonVPN_v3.5.1_x64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
f6aa527f16e995490b2ee379ee3e39958c83d1c096fa959c126efefa500d10f9 : WAPT/control
607ec93d3b82c0a6920d6f158b4423732570e49e710d3d2814c675c463ba8014 : WAPT/icon.png
3eec7c4e6ff70227ffb33237bd4ae9243c24e91181a3e5b762f300ed75a10ea5 : luti.json
b95082f3fe16e3ba9cff432d23704340870cf9eacb8d55a9c530874afd97b614 : setup.py
19fc49e049c06d731df409c69bb8dbfa010b6d9d51275505d849b58a5bc5616c : update_package.py