Update node version to 14.15.5 (latest TLS release) (#708)

See https://github.com/WebAssembly/binaryen/issues/3551
This commit is contained in:
Sam Clegg
2021-02-12 16:47:20 -08:00
committed by GitHub
parent 8b32b7def8
commit 9e96410d7f
5 changed files with 37 additions and 36 deletions

View File

@@ -1,7 +1,7 @@
:: equivilent of test.sh as windows bat file
set PATH=%PATH%;%PYTHON_BIN%
@CALL emsdk install latest
@CALL emsdk activate latest
@CALL emsdk_env.bat
@CALL python -c "import sys; print(sys.executable)"
@CALL emcc.bat -v
CALL emsdk install latest
CALL emsdk activate latest
CALL emsdk_env.bat
CALL python -c "import sys; print(sys.executable)"
CALL emcc.bat -v

View File

@@ -175,9 +175,9 @@ assert not os.path.exists(LIBC)
# Test the normal tools like node don't re-download on re-install
print('another install must re-download')
checked_call_with_output(emsdk + ' uninstall node-12.18.1-64bit')
checked_call_with_output(emsdk + ' install node-12.18.1-64bit', expected='Downloading:', unexpected='already installed')
checked_call_with_output(emsdk + ' install node-12.18.1-64bit', unexpected='Downloading:', expected='already installed')
checked_call_with_output(emsdk + ' uninstall node-14.15.5-64bit')
checked_call_with_output(emsdk + ' install node-14.15.5-64bit', expected='Downloading:', unexpected='already installed')
checked_call_with_output(emsdk + ' install node-14.15.5-64bit', unexpected='Downloading:', expected='already installed')
print('test tot-upstream')
run_emsdk('install tot-upstream')

View File

@@ -16,8 +16,8 @@ import subprocess
import os
import shutil
version = '12.18.1'
base = 'https://nodejs.org/dist/latest-v12.x/'
version = '14.15.5'
base = 'https://nodejs.org/dist/latest-v14.x/'
upload_base = 'gs://webassembly/emscripten-releases-builds/deps/'
suffixes = [
@@ -40,6 +40,7 @@ for suffix in suffixes:
shutil.move(dirname, 'bin')
os.mkdir(dirname)
shutil.move('bin', dirname)
os.remove(filename)
subprocess.check_call(['zip', '-rq', filename, dirname])
shutil.rmtree(dirname)