tis-vscodium icon

VSCodium

Paquet d’installation silencieuse pour VSCodium

1.70.2.22230-43

  • package: tis-vscodium
  • name: VSCodium
  • version: 1.70.2.22230-43
  • categories: Development
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: VSCodium
  • licence: opensource_free,cpe:/a:mit:x11_license,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: VSCodium,codium
  • architecture: x64
  • signature_date:
  • size: 84.54 Mo
  • installed_size: 322.42 Mo
  • homepage : https://vscodium.com/

package           : tis-vscodium
version           : 1.70.2.22230-43
architecture      : x64
section           : base
priority          : optional
name              : VSCodium
categories        : Development
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : VSCodium is a community-driven, freely-licensed binary distribution of Microsoft's editor VS Code
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://github.com/VSCodium/vscodium/releases
installed_size    : 322420384
impacted_process  : VSCodium,codium
description_fr    : VSCodium est une distribution binaire sous licence libre de l'éditeur VS Code de Microsoft
description_pl    : VSCodium to wspierana przez społeczność, udostępniana na wolnej licencji binarna dystrybucja edytora VS Code firmy Microsoft
description_de    : VSCodium ist eine von der Gemeinschaft betriebene, frei lizenzierte Binärdistribution von Microsofts Editor VS Code
description_es    : VSCodium es una distribución binaria del editor VS Code de Microsoft, impulsada por la comunidad y de licencia libre
description_pt    : O VSCodium é uma distribuição binária livremente licenciada e orientada para a comunidade do editor VS Code da Microsoft
description_it    : VSCodium è una distribuzione binaria con licenza libera e guidata dalla comunità dell'editor VS Code di Microsoft
description_nl    : VSCodium is een door de gemeenschap gestuurde binaire distributie onder vrije licentie van Microsofts editor VS Code
description_ru    : VSCodium - это свободно лицензируемый сообществом бинарный дистрибутив редактора VS Code от Microsoft
audit_schedule    : 
editor            : VSCodium
keywords          : code,editor,debugger,visual,studio,vs,vscodium,codium
licence           : opensource_free,cpe:/a:mit:x11_license,wapt_public
homepage          : https://vscodium.com/
package_uuid      : 2288b07d-e54e-42f4-9361-f37cf362a630
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/VSCodium/vscodium/releases
min_os_version    : 6.1
max_os_version    : 10.0
icon_sha256sum    : 45485096724fd036f82e16bbf746a2673024fd9972e697a2e9aaffd625a7b666
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : xN3Eyt8lL+1Ib1WR3n41jnZkQeo+vDgc9qFZXYcM/znREEccdirSmrSCPyryWQ8XS4aNroPYNieBRuTaBZ3quQU6UuSpQu0TlLZaED4hSEKoRNcKNRhXDB0GU2u/aqyFtmY3o7ujBvIDwgGDbiqj0Ge0vdt0svpGGcyRleRsMNQO0yLBz5DOPSnUeP1OE4JrV3XMXXpG66J3fjpwKjSKuGdyXk2UzdTNUWcBqAmkwT4cMSNj1c+4MTfv/7I1/Gk81APZiQtOjp2lYrXojO4rRMS/vvUSNF5loIBizz5Fz4MgIy5lXUYyJQmoDnq14Er+sky1SD4a5NMLsLbu+0VJHQ==
signature_date    : 2024-04-08T09:01:52.542706
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

"""
# 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
    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.enableWindowsBackgroundUpdates": false,
    "update.showReleaseNotes": false,
    "telemetry.telemetryLevel": "off",
    "typescript.surveys.enabled": false,
    "extensions.autoCheckUpdates": false,
    "extensions.autoUpdate": false,
    "terminal.integrated.shellIntegration.enabled": false
}
"""

    user_conf_data = json.loads(user_conf_content)
    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 *
from setupdevhelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    api_url = "https://api.github.com/repos/VSCodium/vscodium/releases?page=2"
    update_dict = {
        "bin_contains": {
            "windows-x86": "VSCodiumSetup-ia32-",
            "windows-x64": "VSCodiumSetup-x64-",
        },
    }

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    dict_result = wgets(api_url, proxies=proxies, as_json=True)
    for tag in dict_result:
        if tag["tag_name"].startswith("1.70"):
            print("Tag URL used is: %s" % tag["html_url"])
            for to_download in tag["assets"]:
                if update_dict["bin_contains"][control.target_os + "-" + ensure_list(control.architecture)[0]] in to_download["name"]:
                    download_url = to_download["browser_download_url"]
                    version = tag["tag_name"]
                    latest_bin = to_download["name"]
                    break
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Deleting outdated binaries
    remove_outdated_binaries(latest_bin)
    # arch_list = ensure_list(control.architecture)
    # remove_outdated_binaries(version, filename_contains=("x64" if "x64" in arch_list else "x86" if "x86" in arch_list else []))

    # Checking version from file
    if get_os_name() == "Windows" and "windows" in control.target_os.lower():
        version_from_file = get_version_from_binary(latest_bin)
        if Version(version_from_file, 4) == Version(version, 4):
            print("INFO: Binary file version corresponds to online version")
        else:
            error("ERROR: Binary file version do NOT corresponds to online version")

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

    # Validating update-package-sources
    return package_updated

    # # Changing version of the package and validating update-package-sources
    # return complete_control_version(control, version)

fbc48d4d912d77a90025b8f31eed24910b113ad7a27dbc3a3d081ac02b70ad7c : setup.py
805aa9bb2e079d52c71a31e3f6f10eb6933b524bdb1e23086224dfa35a20dee0 : update_package.py
45485096724fd036f82e16bbf746a2673024fd9972e697a2e9aaffd625a7b666 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
bb2cfa394a2f42809092a27ba59bcfaed5556e25839b10c03cdafe0c0a641d06 : WAPT/changelog.txt
f7699ca637bc8f0449f815f4f5edaf1b4ca38434d2de08b1d24494201b20c4e0 : luti.json
b193bb38e22f654680816f61817e9fd1b6a44528d0f00d45e2ceae2f7e1720ee : VSCodiumSetup-x64-1.70.2.22230.exe
e50858ffe7b4fa4225d227492195d9ac659a49e1e35e1cccc83247bbf6348061 : WAPT/control

https://github.com/VSCodium/vscodium/releases
1.71.0.22245
===
fix uninstallkey