tis-vcxsrv

1.20.14.0-6
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-6
  • 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 : x64
  • signature_date : 2022-07-27 02:04
  • size : 42.87 Mo
  • homepage : https://sourceforge.net/projects/vcxsrv/
package           : tis-vcxsrv
version           : 1.20.14.0-6
architecture      : x64
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      : 9090b02a-db37-442e-8aac-743198db4b8a
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         : LtOSGRPV37tFAoVZrZ8lt0IQb8Kl1AKoADKoM8+8REGAB+Ft44zYKgGN8lAlxeHeKlw3VGr/VlYkOKOwei1/zTWaHDYjfX7fk+6jiF3uVFJpi4bsKxxR54zwchRuJTuV5M232qj+wRodXkcD+6lXfl/Z1r65xV5TAqmS+dh5zCwA+5ay1Ue+eoskANeJ520Q3gdjrBDuS+2Xs0+lJBgn8rFi5dzmZJBlIW6GE9BTjqCBALbN6qZzLLVF04jx0kKbRvF5h9vPwjNWPBH+TtOIeCfujiki2+G9VvIeWjTJMJkXUfneLtcvt3FAzw3TOMjL7diOl08KWSmAjrCIQjp/5A==
signature_date    : 2022-07-27T02:04:58.864829
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.version.split("-")[0]
    bin_name = "vcxsrv-64.%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

bin_name_string = "vcxsrv-64.%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)
d9a3b0efac92eb486bece39d75bfeafc0c071d11117fd84178fd67f53c943190 : setup.py
7a5cd7d9d0ac982f09c8a93051fc48ab072fcc4b52237d1b91494363b9dad27e : vcxsrv-64.1.20.14.0.installer.exe
c6521d2b896dc86e9308efdec50ca831580deb447c1968b75b95f2710643cce2 : update_package.py
ef34fa84fd9dcae9dba6a1754d62679d11c0c936d437c9366018412d6d30db27 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
7dfb9ae3ed613b9ce09abb4d563de167ff1b1a2335480343975810d569a4f96b : luti.json
dfe0e0ab7bde9dc6366c582b2560802767077a6bc30faedb83e68b86c654360b : WAPT/control