tis-vcxsrv
1.20.9.0-5
VcXsrv is an X Server for WinNT. In order to be able to start the graphical (GUI) version of programs
4414 downloads

Description
- package : tis-vcxsrv
- version : 1.20.9.0-5
- architecture : x86
- categories : System and network
- maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Alexandre GAUVRIT
- description : VcXsrv is an X Server for WinNT. In order to be able to start the graphical (GUI) version of programs
- locale : all
- target_os : windows
- min_wapt_version : 1.7
- sources : https://sourceforge.net/projects/vcxsrv/files/vcxsrv/
- installed_size :
- impacted_process : vcxsrv,xlaunch
- description_fr :
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor : Mark Mikofski
- licence : GPLv3
- signature_date : 2021-01-04T11:53:25.575649
- Homepage : https://sourceforge.net/projects/vcxsrv/
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
import json
uninstallkey = []
# Defining variables
bin_name_string = 'vcxsrv.%s.installer.exe'
silent_args = '/S'
app_uninstallkey = 'VcXsrv'
app_dir = makepath(programfiles,'VcXsrv')
def install():
# Initializing variables
package_version = control.version.split('-')[0]
bin_name = bin_name_string % package_version
# Installing the package
install_exe_if_needed(bin_name
,silentflags=silent_args
,key=app_uninstallkey
,min_version=package_version
,force=True)
run('netsh advfirewall firewall add rule name="vcxsrv" dir=in program="%s" action=allow remoteip=127.0.0.1,127.0.0.1' % installed_softwares('VcXsrv')[0]['uninstall_string'].replace('uninstall.exe','vcxsrv.exe').split('"')[1])
remove_desktop_shortcut('XLaunch')
def uninstall():
# Initializing variables
app_processes_list = control.impacted_process.split(',')
# Removing remaining files
killalltasks(app_processes_list)
if isdir(app_dir):
remove_tree(app_dir)
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}
# Initializing variables
app_name = control.name
git_repo = 'vcxsrv'
url_api = 'https://sourceforge.net/projects/%s/best_release.json' % git_repo
# Getting latest version from official website
print('API used is: ' + url_api)
json_load = json.loads(wgets(url_api,proxies=proxy))
version = json_load['release']['filename'].split('/')[-2]
latest_bin = bin_name_string % version
url_dl = 'https://sourceforge.net/projects/vcxsrv/files/vcxsrv/%s/%s/download' % (version,latest_bin)
print("Latest %s version is: %s" % (app_name,version))
print("Download url is: %s" % url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print('Downloading: %s' % latest_bin)
wget(url_dl,latest_bin,proxies=proxy)
# Checking version from file
version_from_file = get_file_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)
print('Verified latest ' + app_name + ' version is: ' + version)
# Changing version of the package
control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
control.save_control_to_wapt()
print('Changing version to: %s in WAPT\\control' % control.version)
# Deleting outdated binaries
for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi') or glob.glob('*.zip'):
if bin_in_dir != latest_bin :
print('Outdated binary: %s Deleted' % bin_in_dir)
remove_file(bin_in_dir)
Changelog
Changelog software url : https://sourceforge.net/projects/vcxsrv/files/vcxsrv/
No changelog.txt.