
Node.js
Paquet d’installation silencieuse pour Node.js
16.8.0-2
Development
Development
- package: tis-nodejs
- name: Node.js
- version: 16.8.0-2
- categories: Development
- maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
- editor: OpenJS Foundation
- licence: MIT
- target_os: windows
- architecture: x86
- signature_date:
- size: 25.87 Mo
- homepage : https://nodejs.org/
package : tis-nodejs
version : 16.8.0-2
architecture : x86
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 :
target_os : windows
min_wapt_version : 1.7
sources : https://nodejs.org/en/download/current/
installed_size :
impacted_process :
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor : OpenJS Foundation
keywords : javascript,js,node,open,code
licence : MIT
homepage : https://nodejs.org/
package_uuid : e13656ae-909f-488f-8da6-ccaa9aca9703
valid_from :
valid_until :
forced_install_on :
changelog : https://github.com/nodejs/node/blob/master/CHANGELOG.md
min_os_version : 6.1
max_os_version :
icon_sha256sum : 3535cca3001231478b53d437b3c4fa424736f7507aa0d50a41668a19ee12b99a
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : HjedTO80CPn0NeNQA9qkTnYE3ksqVKH9DAZcNruAfPt1wrMCIxMtT1w8BkzUjcARWhtjgOTVBGN8g9fV6UpMwbKFDsAYbj05s/ADhBe0S7qIzIwwI2n3+x9KPu8IHka8UDKsRWP217WnRBRoNHVycynUiGizGtkpvJptqOkXp6f3FBKMaBTeeURq5HrY/l4Lt4zGu4c+VA7jUYxHL6MnLqhMMLToFTEf1W1rW5paKvhfwR1qY9ADCPPrRSyCVhXWl7j5WAo+nw3eqGo7WqrPgnJNSPTkWyydShmmzxoSHMnFwNfJO+fO6yJRaZIBWjDxokTsCrSUnI6k+NYkoCbAiw==
signature_date : 2021-08-31T17:22:03.496533
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 *
try:
import bs4 as BeautifulSoup
except:
import BeautifulSoup
import requests
import platform
uninstallkey = []
# Defining variables
bin_name_string = 'node-v%s-x86.msi'
silent_args = '/quiet ADDLOCAL=ALL REMOVE=NodeEtwSupport'
def install():
# Initializing variables
package_version = control.version.split('-')[0]
bin_name = bin_name_string % package_version
# Installing the package
install_msi_if_needed(bin_name
,properties=silent_args
,min_version=package_version)
def update_package():
print('Download/Update package content from upstream binary sources')
# Getting proxy informations from WAPT settings
proxy = {}
if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
if proxywapt :
proxy = {'http':proxywapt,'https':proxywapt}
# Initializing variables
app_name = control.name
url = control.sources
# Getting latest version from official website
page = requests.get(url,proxies=proxy).text
bs = BeautifulSoup.BeautifulSoup(page)
version = bs.find('strong').text
latest_bin = bin_name_string % version
url_dl = 'https://nodejs.org/dist/v%s/%s' % (version,latest_bin)
print("Latest %s version is: %s" % (app_name,version))
print("Download url is: %s" % url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print('Downloading: %s' % latest_bin)
wget(url_dl,latest_bin,proxies=proxy)
# Checking version from file
version_from_file = get_msi_properties(latest_bin)['ProductVersion']
if version != version_from_file and version_from_file != '':
version = version_from_file
old_latest_bin = latest_bin
latest_bin = bin_name_string % version
if isfile(latest_bin):
remove_file(latest_bin)
os.rename(old_latest_bin,latest_bin)
print('Verified latest ' + app_name + ' version is: ' + version)
# Changing version of the package
control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
control.save_control_to_wapt()
print('Changing version to: %s in WAPT\\control' % control.version)
# Deleting outdated binaries
for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi') or glob.glob('*.zip'):
if bin_in_dir != latest_bin :
print('Outdated binary: %s Deleted' % bin_in_dir)
remove_file(bin_in_dir)
6a2868f3f4df8b0f4d060ae1f305f27d499248c0b260759c058d27d6c90ba66b : node-v16.8.0-x86.msi
95fb6dab84712591fd412dccac529e6f4c5953596a96c5cf28db799b6f5984e8 : setup.py
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
3535cca3001231478b53d437b3c4fa424736f7507aa0d50a41668a19ee12b99a : WAPT/icon.png
688f161fb8531bbf1f5a937d9c20cba5d6cdba8e15d11a6f57a5a2b772fe0d53 : WAPT/control