tis-nodejs icon

Node.js

Silent install package for Node.js

24.6.0-4
Development
Development

  • package: tis-nodejs
  • name: Node.js
  • version: 24.6.0-4
  • categories: Development
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: OpenJS Foundation
  • licence: opensource_free,cpe:/a:mit:x11_license,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: node
  • architecture: x64
  • signature_date:
  • size: 32.20 Mo
  • installed_size: 83.45 Mo
  • homepage : https://nodejs.org/

package           : tis-nodejs
version           : 24.6.0-4
architecture      : x64
section           : base
priority          : optional
name              : Node.js
categories        : Development
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside a web browser
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://nodejs.org/en/download/current/
installed_size    : 83446606
impacted_process  : node
description_fr    : Node.js est un environnement d'exécution JavaScript ouvert, multiplateforme, qui exécute du code JavaScript en dehors d'un navigateur web
description_pl    : Node.js to open-source'owe, wieloplatformowe środowisko uruchomieniowe JavaScript, które wykonuje kod JavaScript poza przeglądarką internetową
description_de    : Node.js ist eine quelloffene, plattformübergreifende JavaScript-Laufzeitumgebung, die JavaScript-Code außerhalb eines Webbrowsers ausführt
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
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
description_it    : Node.js è un ambiente runtime JavaScript open-source e multipiattaforma che esegue codice JavaScript al di fuori di un browser web
description_nl    : Node.js is een open-source, cross-platform, JavaScript runtime omgeving die JavaScript code uitvoert buiten een web browser
description_ru    : Node.js - это кроссплатформенная среда выполнения JavaScript с открытым исходным кодом, которая выполняет код JavaScript вне веб-браузера
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      : 0f73a6a6-6762-4927-aef6-ff794066de8a
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/nodejs/node/blob/master/CHANGELOG.md
min_os_version    : 6.3
max_os_version    : 
icon_sha256sum    : 77ad7394671d64dc6a1045c837364be28fabdc7dfa7299d29b76fe1c4c2d7769
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-08-19T22:00:23.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         : ksTG88aOngO8rwGaaARMHT0rEgzd3T0g30nNFe8agKcQ3T7+0rBlvQ0kdzOBCdca12kEr5s8/8gwT5Gu+Io6sYO1UPDREYPNq11gnNhMBVkIYhzdHwJ2fuVebjzWdRyrhzSugTpNznQFvAGNb2vBjUrSqd/7ZonYe/hn3OVokne1a9vU8xz5ofdGN6BnmeXIbL1OB2kGe0sU/CXxBbLzXfOAW8nBkpwxfFQg6LGxhKS/fmhZfvFk/1eBqAKdg8XGoQNkXdoEvtENrpK9nfnToQwyuKDaKD3p0sYAbppf6pCgLZdlI9d2IYNRNZQBUFmPEPNmfwcDkYFAlx7BJtCSpw==

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


def install():
    install_msi_if_needed(
        glob.glob("node-v*.msi")[0],
        properties="/quiet ADDLOCAL=ALL",
        timeout=600,
    )

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import bs4 as BeautifulSoup
from urllib.parse import urlparse, urljoin
import requests


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

    base_url = "https://nodejs.org"
    url = "https://nodejs.org/dist/latest/"
    #latest_url = requests.head(url).headers['Location']

    download_dict = {
        "windows-arm64": "-arm64.msi",
        "windows-x64": "-x64.msi",
        "windows-x86": "-x86.msi",
        "windows-all": "-x86.msi",
        "darwin-x64": "-darwin-x64.tar.xz",
        "darwin-arm64": "-darwin-arm64.tar.xz",
        "linux-x64": "-linux-x64.tar.xz",
        "linux-arm64": "-linux-arm64.tar.xz ",
    }

    # Getting latest version information from official sources
    print("URL used is: %s" % url)
    links = bs_find_all(url,'a','href')
    to_download = download_dict[control.target_os + "-" + ensure_list(control.architecture)[0]]
    for link in links:
        if link['href'].endswith(to_download):
            download_url = base_url + link['href']
            latest_bin = link.text
            version = latest_bin.split("-")[1].replace("v", "")

    # 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)

    for f in glob.glob(f'*{to_download}'):
        if f != latest_bin:
            remove_file(f)

    # 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(f"INFO: Binary file version ({version_from_file}) corresponds to online version ({version})")
        else:
            error(f"ERROR: Binary file version ({version_from_file}) do NOT corresponds to online version ({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 or not update-package-sources
    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
cbba0f31693477164f0ab598e9056bd302e3a7095a316b949faa5b6f68028d90 : WAPT/control
77ad7394671d64dc6a1045c837364be28fabdc7dfa7299d29b76fe1c4c2d7769 : WAPT/icon.png
4e75bc7ddd6c15aaba31d421e56929b85ab7bdf1498de25942fc49bc866d696f : luti.json
d3a3f84c6f65d05dceaa332281ba8f4651469d63d49aaed56184e0c415b98e0b : node-v24.6.0-x64.msi
79bf5bafcf0bfb21bd7930739ca34e435b903eedfca3901892fe2ccab7e71792 : setup.py
c7d187b9be719ce064253e2518c2dcefe7d9a1d4972cd3f89a005819401a3edf : update_package.py