tis-vscodium icon

VSCodium

Paquet d’installation silencieuse pour VSCodium

1.70.2.22230-21

  • package: tis-vscodium
  • name: VSCodium
  • version: 1.70.2.22230-21
  • categories: Development
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Microsoft
  • licence: MIT
  • locale: all
  • target_os: windows
  • impacted_process: VSCodium,codium
  • architecture: x86
  • signature_date:
  • size: 80.07 Mo
  • installed_size: 290.95 Mo
  • homepage : https://vscodium.com/

package           : tis-vscodium
version           : 1.70.2.22230-21
architecture      : x86
section           : base
priority          : optional
name              : VSCodium
categories        : Development
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : VSCode (Visual Studio Code) without Microsoft branding/telemetry/licensing
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://github.com/VSCodium/vscodium/releases
installed_size    : 290951168
impacted_process  : VSCodium,codium
description_fr    : VSCode (Visual Studio Code) sans les outils de télémétrie, marquage et licence Microsoft
description_pl    : VSCode (Visual Studio Code) bez marki Microsoft/telemetrii/licencji
description_de    : VSCode (Visual Studio Code) ohne Microsoft Branding/Telemetrie/Lizenzierung
description_es    : VSCode (Visual Studio Code) sin marca/telemetría/licencia de Microsoft
description_pt    : VSCode (Visual Studio Code) sem marca/telemetria/licenciamento Microsoft
description_it    : VSCode (Visual Studio Code) senza marchio/telemetria/licenza Microsoft
description_nl    : VSCode (Visual Studio Code) zonder Microsoft branding/telemetrie/licenties
description_ru    : VSCode (Visual Studio Code) без брендинга/телеметрии/лицензирования Microsoft
audit_schedule    : 
editor            : Microsoft
keywords          : code,editor,debugger,visual,studio,vs,vscodium,codium
licence           : MIT
homepage          : https://vscodium.com/
package_uuid      : cd334e5f-ed64-4e6e-b8f7-5ba1d19477d6
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://code.visualstudio.com/updates
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : 45485096724fd036f82e16bbf746a2673024fd9972e697a2e9aaffd625a7b666
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : D2aZx+7v1vz0zOJmSk2mRv7gy+1GReLfL1OsMatCfI56kIHbUvmIx8Ww4Lm7SBAld1ALiTtQdFNalJX/4ZP8IU3bqjd2U3LVC14ZKQnlOEnZsifdWLSAYvs0+SEHLaeDF8E0v3BGJ6ortKOj3SgMAPJKttWZ7p3TwNosNXX79uRdvI75RepP/KUmNhN+8Y57pbvAqF/apSDxCRsSqPnSq04y7ck2Va714T2aHEOyu85dKgOMmnhAf68NfkUjDSYa9bnZaoTapWGGfhTZH7uumMP2QTUnlZqsdMv7cQOxD31RL6sz3oYqQUZyWQ9VbCvwg1hOwV2BXy3npbogYHEYQg==
signature_date    : 2022-08-23T06:03:58.279855
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 json

"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

# Default arguments : addcontextmenufiles,addcontextmenufolders,addtopath,associatewithfiles,!desktopicon,!quicklaunchicon,!runcode
Previous silent_args = '/verysilent /mergetasks="!addcontextmenufiles,!addcontextmenufolders,addtopath,associatewithfiles,!desktopicon,!quicklaunchicon,!runcode"'

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "VSCodiumSetup-"
silent_args = '/verysilent /mergetasks="!runcode"'


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*%s*.exe" % bin_contains)[0]
    if control.architecture == "x64":
        app_uninstallkey = "{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}_is1"
    else:
        app_uninstallkey = "{E34003BB-9E10-4501-8C11-BE3FAA83F23F}_is1"

    # Installing the software
    print("Installing: %s" % bin_name)
    install_exe_if_needed(
        bin_name,
        silentflags=silent_args,
        key=app_uninstallkey,
        min_version=package_version,
    )


def session_setup():
    print("Disabling: Telemetry, automatic updates, surveys")

    # Configuration procedure: https://supunkavinda.blog/vscode-editing-settings-json
    # C:\Users\username\AppData\Roaming\VSCodium\User\settings.json

    # Declaring local variables
    user_conf_dir = makepath(user_appdata, "VSCodium", "User")
    user_conf_file = makepath(user_conf_dir, "settings.json")
    user_conf_content = r"""{
    "update.mode": "none",
    "update.showReleaseNotes": false,
    "update.enableWindowsBackgroundUpdates": false,
    "telemetry.enableCrashReporter": false,
    "telemetry.enableTelemetry": false,
    "typescript.surveys.enabled": false,
    "extensions.autoCheckUpdates": true,
    "extensions.autoUpdate": false
}"""

    user_conf_data = json.loads(user_conf_content.strip(","))
    if not isdir(user_conf_dir):
        mkdirs(user_conf_dir)
    if not isfile(user_conf_file):
        print("Creating: settings.json in: %s" % user_conf_dir)
        json_write_file(user_conf_file, user_conf_data)
    else:
        new_user_conf_data = json_load_file(user_conf_file)
        new_user_conf_data.update(user_conf_data)
        print("Updating: settings.json in: %s" % user_conf_dir)
        json_write_file(user_conf_file, new_user_conf_data)

# -*- coding: utf-8 -*-
from setuphelpers import *
import json

bin_contains = "VSCodiumSetup-"


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    sub_bin_name = bin_contains + "-%s.exe"
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    git_repo = "VSCodium/vscodium"
    api_url = "https://api.github.com/repos/%s/releases/latest" % git_repo
    if control.architecture == "x64":
        arch = "x64-"
    else:
        arch = "ia32-"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["assets"]:
        if bin_contains in download["name"] and arch in download["name"] and download["name"].endswith(".exe"):
            download_url = download["browser_download_url"]
            version = json_load["tag_name"].replace("v", "")
            latest_bin = download["name"]
            break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)

        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        if version != version_from_file and version_from_file != "":
            print("Changing version to the version number of the binary")
            os.rename(latest_bin, sub_bin_name % version_from_file)
            version = version_from_file
        else:
            print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return result

af4ebfa679ce3ecf023d80c80a86df4bdc373697958bcb6d54abff621119935f : setup.py
75e02c3f44c2aac95de3119b5f34139509ee22bde52bd587a549c1b8eb26d781 : update_package.py
45485096724fd036f82e16bbf746a2673024fd9972e697a2e9aaffd625a7b666 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
1ac9fd9d04d88530e085bfb8673c3c3441fe91dd0eb5f0612745f9168fe26795 : luti.json
59ca08ae189adbcc91ade7ff8148d7a193ba4824c9529a7fd02323db33f927bb : VSCodiumSetup-ia32-1.70.2.22230.exe
c59aaa299fc9ee3c1f0c9da748f97d103ebf284e57773008bb010ffb3bd3ce9f : WAPT/control