tis-vcxsrv

1.20.14.0-5
VcXsrv is an X Server for WinNT. In order to be able to start the graphical (GUI) version of programs
3358 downloads
Download
See build result See VirusTotal scan
tis-vcxsrv icon
  • package : tis-vcxsrv
  • name : VcXsrv Windows X Server
  • version : 1.20.14.0-5
  • categories : System and network
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Alexandre GAUVRIT
  • editor : Mark Mikofski
  • licence : GPLv3
  • locale : all
  • target_os : windows
  • impacted_process : vcxsrv,xlaunch
  • architecture : x86
  • signature_date : 2022-07-29 04:08
  • size : 41.74 Mo
  • homepage : https://sourceforge.net/projects/vcxsrv/
package           : tis-vcxsrv
version           : 1.20.14.0-5
architecture      : x86
section           : base
priority          : optional
name              : VcXsrv Windows X Server
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
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://sourceforge.net/projects/vcxsrv/files/vcxsrv/
installed_size    : 
impacted_process  : vcxsrv,xlaunch
description_fr    : VcXsrv est un serveur X pour WinNT
description_pl    : VcXsrv jest serwerem X dla WinNT
description_de    : VcXsrv ist ein X-Server für WinNT
description_es    : VcXsrv es un servidor X para WinNT
description_pt    : VcXsrv é um Servidor X para WinNT
description_it    : VcXsrv è un server X per WinNT
description_nl    : VcXsrv is een X Server voor WinNT
description_ru    : VcXsrv - это X-сервер для WinNT
audit_schedule    : 
editor            : Mark Mikofski
keywords          : 
licence           : GPLv3
homepage          : https://sourceforge.net/projects/vcxsrv/
package_uuid      : 915a879c-0ee5-4bc1-a5db-c67368c3a400
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://sourceforge.net/projects/vcxsrv/files/vcxsrv/
min_os_version    : 6.0
max_os_version    : 
icon_sha256sum    : ef34fa84fd9dcae9dba6a1754d62679d11c0c936d437c9366018412d6d30db27
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : dYJMzNXzvBtsva2Ro5GyMhjgoJ977MwEz4z4K+yAiTe+mZi+qY44k1RQwm406LdJ0gDSWCq9c834v1a32TDio8RdmhTcOlg24gmVF5K3k/gxIhTBDi1akQA5sFnQeiWdAJ9JHXUm3KGq2f7Ay1AQxecrbL2GOU6fUIClaR36oyz0GqbXJEv0xUvsPFZNpw652DwoghjtZAfZ1gyMUr4KTS7fZ6C+BLpDWbTkx+/dNyhHpukffSX3r2e24OkBG8AGl+wkqUUxA7u1YNwHtMocNuYPelohUPxm/979nW27hPznZPz4p1aACIGksWi+mGO01c4gKqS48bg3eFea/eSjBg==
signature_date    : 2022-07-29T04:08:10.551193
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 time

# Defining variables
app_dir = makepath(programfiles, "VcXsrv")


def install():
    # Initializing variables
    package_version = control.get_software_version()
    bin_name = "vcxsrv.%s.installer.exe" % package_version

    # Installing the package
    install_exe_if_needed(
        bin_name,
        silentflags="/S",
        key="VcXsrv",
        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(",")
    time.sleep(30)
    # Removing remaining files
    killalltasks(app_processes_list)
    if isdir(app_dir):
        remove_tree(app_dir)
# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
import json

# Defining variables
bin_name_string = "vcxsrv.%s.installer.exe"


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, connect_timeout=30)

        # 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)
6e69ae10810516a4eced1422ca8faa4b743e2e4e86ae0f7c8e3014fd8fd865e0 : setup.py
ada3a8b6ece7f42aefbcdc9c23766316ecd1b9d968261064279d0150991b9d58 : vcxsrv.1.20.14.0.installer.exe
bb0756cc1cb5a5047cd2e7f53efe6cadee020c2ffd7a443e7e03ef8b91e68439 : update_package.py
ef34fa84fd9dcae9dba6a1754d62679d11c0c936d437c9366018412d6d30db27 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
38c1374d51b33f2ba6fb0129a4bfd6420faee3c639cec52b91dbb7e9b87f0084 : luti.json
bd7ce3301f80083a33a90ab444986dbb826012c95cbec051ee48c3ffc3cbe7c8 : WAPT/control