tis-nodejs-lts icon

Node.js LTS

Silent install package for Node.js LTS

26.13.1-1
Development
Development

  • package: tis-nodejs-lts
  • name: Node.js LTS
  • version: 26.13.1-1
  • categories: Development
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Pierre Cosson,Stan SALOMON
  • editor: OpenJS Foundation
  • licence: opensource_free,cpe:/a:mit:x11_license,wapt_public
  • locale: all
  • target_os: darwin
  • impacted_process: node
  • architecture: all
  • signature_date:
  • size: 103.90 Mo
  • homepage : https://nodejs.org/

package           : tis-nodejs-lts
version           : 26.13.1-1
architecture      : all
section           : base
priority          : optional
name              : Node.js LTS
categories        : Development
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Pierre Cosson,Stan SALOMON
description       : Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside a web browser. LTS version
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : darwin
min_wapt_version  : 2.5
sources           : https://nodejs.org/en/download/current/
installed_size    : 
impacted_process  : node
description_fr    : Node.js est un environnement d'exécution JavaScript open-source, multiplateforme, qui exécute du code JavaScript en dehors d'un navigateur Web. Version LTS
description_pl    : Node.js to open-source'owe, wieloplatformowe środowisko uruchomieniowe JavaScript, które wykonuje kod JavaScript poza przeglądarką internetową. Wersja LTS
description_de    : Node.js ist eine quelloffene, plattformübergreifende JavaScript-Laufzeitumgebung, die JavaScript-Code außerhalb eines Webbrowsers ausführt. LTS-Version
description_es    : Node.js es un entorno de ejecución de JavaScript de código abierto y multiplataforma que ejecuta código JavaScript fuera de un navegador web. Versión LTS
description_pt    : Node.js é um ambiente de código aberto, multi-plataforma, JavaScript runtime que executa o código JavaScript fora de um navegador web. Versão LTS
description_it    : Node.js è un ambiente runtime JavaScript open-source e multipiattaforma che esegue codice JavaScript al di fuori di un browser web. Versione LTS
description_nl    : Node.js is een open-source, cross-platform, JavaScript runtime omgeving die JavaScript code uitvoert buiten een web browser. LTS-versie
description_ru    : Node.js - это кроссплатформенная среда выполнения JavaScript с открытым исходным кодом, которая выполняет код JavaScript вне веб-браузера. Версия LTS
audit_schedule    : 
editor            : OpenJS Foundation
keywords          : javascript,js,node,open,code
licence           : opensource_free,cpe:/a:mit:x11_license,wapt_public
homepage          : https://nodejs.org/
package_uuid      : 245ea01a-f032-4cfd-b639-ad1b77742746
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/nodejs/node/blob/master/CHANGELOG.md
min_os_version    : 13.5
max_os_version    : 
icon_sha256sum    : 77ad7394671d64dc6a1045c837364be28fabdc7dfa7299d29b76fe1c4c2d7769
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-11-18T19:33:06.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         : Mi+GzIJwsOBs4N1ymFPToQw7FiWc4zI4ZD/twjRXkA+ZxdCkj8M6H6hv7y6NiyaFic0r+aXkLodxpjbs2H6ZrgywqzwBver5bCga2zpORRSYyiSa/bod3DzvZoTtC6Xz8sFTKlax6vvr2DpTPgloSG5QIbuot6pX1G/3q1fxfqFKYzRo4QOwuUkVsH/CSAui928qk2CG1otqI2cj7RJL4fpdtQvND+WT0R+NFiVazeugrJEKEKooosr4ZXw6V2olM7f5GcXQagxxnBfRBNh2StQjJ7ZXPZ2B3LS+Te0ekbAbD6OV5j0DCCKv2k1VWHXtMukH97WeNGbmSwcw6Emc8Q==

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

def install():
    bin_name = glob.glob("*.pkg")[0]
    install_pkg(
		bin_name,
        key="pkgid:org.nodejs.node.pkg",
        min_version="v" + control.get_software_version()
	)
def uninstall():
    uninstall_pkg("pkgid:org.nodejs.node.pkg")
    uninstall_pkg("org.nodejs.npm.pkg")

from setuphelpers import *
from setupdevhelpers import *
import waptlicences

def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()

    os_dict = {
        "windows-x64": "-x64.msi",
        "windows-arm64": "-arm64.msi",
        "debian(>=11),ubuntu(>=20),redhat_based(>=8)-x64": "-linux-x64.tar.gz",
        "debian(>=11),ubuntu(>=20),redhat_based(>=8)-arm64": "-linux-arm64.tar.gz",
        "darwin-all": ".pkg"
    }

    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]

    if not proxies:
        proxies = get_proxies_from_wapt_console()

    data = wgets(f"https://nodejs.org/download/release/index.json", proxies=proxies, as_json=True)
    latest_lts = next(item for item in data if item.get("lts") is not False)

    version = latest_lts["version"].replace("v", "")
    # https://nodejs.org/download/release/v26.13.0/node-v26.13.0-x64.msi
    download_url = f"https://nodejs.org/download/release/v{version}/node-v{version}{os_dict[os_type]}"
    latest_bin = download_url.rsplit("/", 1)[-1]
    latest_bin_extension = latest_bin.rsplit(".", 1)[-1]

    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    if control.target_os == "windows":
        # Check signature bin (only windows)
        expected_issuer = "OpenJS Foundation"
        sign_name = waptlicences.check_msi_signature(latest_bin)[0]
        if sign_name != expected_issuer:
            error('Bad issuer %s != %s ' % (sign_name,expected_issuer))

    # Deleting outdated binaries
    for f in glob.glob(f"*.{latest_bin_extension}"):
        if f != latest_bin:
            remove_file(f)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")



        
    control.set_software_version(version)
    control.save_control_to_wapt()


    # Validating or not update-package-sources
    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
6bbe15a26c20bff8da2a06e467554d00c7dc739ec6de7d8ec6947584a9beafb7 : WAPT/control
77ad7394671d64dc6a1045c837364be28fabdc7dfa7299d29b76fe1c4c2d7769 : WAPT/icon.png
c1ca37a0d2b3857654c487ba4822ed19d92316c534152fe5af2507e4fa0f2ecb : luti.json
39a029bc6548532c96eb7af1e2904d73d7fc368f699f3339a4c403546317af4e : node-v26.13.1.pkg
ba83b30872e410dfa71b5a6f99ad0c61d09d5f831665a5b9bb044cc901b44735 : setup.py
f7b0234c15479be85eecf600ddee9d26f77e223eb04c3bb34642ee2a3eb3b458 : update_package.py