tis-vscodium icon

VSCodium

Paquet d’installation silencieuse pour VSCodium

1.102.04606-43

  • package: tis-vscodium
  • name: VSCodium
  • version: 1.102.04606-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: redhat_based
  • impacted_process: VSCodium,codium
  • architecture: all
  • signature_date:
  • size: 149.32 Mo
  • installed_size: 366.79 Mo
  • homepage : https://vscodium.com/

package           : tis-vscodium
version           : 1.102.04606-43
architecture      : all
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         : redhat_based
min_wapt_version  : 2.3
sources           : https://github.com/VSCodium/vscodium/releases
installed_size    : 366789546
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      : 9b0b92c3-a90f-4e57-b804-ec71db1f8a9b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/VSCodium/vscodium/releases
min_os_version    : 9
max_os_version    : 
icon_sha256sum    : 9276eaee7406da4acedd4d7cae85a6cf041df867131323b231c24c65e223faae
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-07-20T08:01:22.000000
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
signature         : jqNjyx7rAJevZmGYz9KC+RtBD20XxCbfblCOlta7/qmTuzcM+9ovIWC/I7KY57ghcJTy3E8qnHF5IJWpFz7X9iAkBqpxjg7w0wEfkU078ULOnYLm9B/D1spU5LCA8LeqGw6Cvjppy9zn/C+eKICDpUIIoORv8kMoGeyQEG9s5fYVAyf6bjzA40ZenhrH/0Wo44lJfMTSc8lbD+mBVqyS/eLTm1JoUELYK+ELNLMqFN8WOCArM5CgONp3JG380EnMsKm3wUF5UBNeUNyP8BbCrCo2iHjKQySsu0z2V8lIsF2WKhAYzg0NZ+w+9NZTd4kopApf1941I/oKgzs8Ckefrg==

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

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "codium-"
package_name = "codium"
app_dist_source_path = "/etc/yum.repos.d/vscodium.repo"


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*%s*.rpm" % bin_contains)[0]

    # Installing the software
    print("Installing: %s" % bin_name)
    install_yum(bin_name)

    # Deleting the distribution source file of the application
    if isfile(app_dist_source_path):
        print("Removing: %s" % app_dist_source_path)
        remove_file(app_dist_source_path)


def uninstall():
    # Uninstalling the package
    print("Uninstalling: %s" % package_name)
    uninstall_yum(package_name)


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

    # Initializing variables
    user_conf_dir = makepath(user_home_directory(), ".config", "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: %s" % user_conf_file)
        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: %s" % user_conf_file)
        json_write_file(user_conf_file, new_user_conf_data)

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


bin_contains = "codium-"


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    repo_git = "VSCodium/vscodium"
    api_url = "https://api.github.com/repos/%s/releases/latest" % repo_git

    # 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 download["name"].endswith(".x86_64.rpm"):
            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)

    # 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

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
475f55ac8077d67cee1e227460f6e2e35d1bea3c30669f7052c529e0151286e0 : WAPT/control
9276eaee7406da4acedd4d7cae85a6cf041df867131323b231c24c65e223faae : WAPT/icon.png
c61e435e08d317cd0260d3a1db98f0c2acdc94dcc1e9bdfe45d9c7f6ec741239 : codium-1.102.04606-el8.x86_64.rpm
16a56fbdc2a1f15de7abf9b5a924a5a33bbebec5603f38449254baa7a765163d : luti.json
ec95b659245e768d6cb890c58af08f7ea535e750b5e30589e2fb37574f4ee997 : setup.py
77f37b663aebaa580da52ae63cee341476b55aa1660aaa541b7b0354b2264a19 : update_package.py