Add Linux scripts for calling into custom Node/NPM versions

This commit is contained in:
doylet 2024-02-05 13:38:19 +11:00
parent 2862df08d8
commit 8326e730fb
7 changed files with 79 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ Downloads
__pycache__
Win
Docs
Linux

13
Linux/Scripts/node-12.22.12.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
desired_dir=${script_dir}/../NodeJS/12.22.12/bin
desired_exe=${desired_dir}/node
PATH=${desired_dir}:${PATH}
curr_script=$(realpath "${BASH_SOURCE[0]}")
echo [DEVENVER] Executing script \"${curr_script}\" with \"${desired_exe}\"
${desired_exe} $@

13
Linux/Scripts/node-16.19.0.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
desired_dir=${script_dir}/../NodeJS/16.19.0/bin
desired_exe=${desired_dir}/node
PATH=${desired_dir}:${PATH}
curr_script=$(realpath "${BASH_SOURCE[0]}")
echo [DEVENVER] Executing script \"${curr_script}\" with \"${desired_exe}\"
${desired_exe} $@

13
Linux/Scripts/node-18.15.0.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
desired_dir=${script_dir}/../NodeJS/18.15.0/bin
desired_exe=${desired_dir}/node
PATH=${desired_dir}:${PATH}
curr_script=$(realpath "${BASH_SOURCE[0]}")
echo [DEVENVER] Executing script \"${curr_script}\" with \"${desired_exe}\"
${desired_exe} $@

13
Linux/Scripts/npm-12.22.12.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
desired_dir=${script_dir}/../NodeJS/12.22.12/bin
desired_exe=${desired_dir}/npm
PATH=${desired_dir}:${PATH}
curr_script=$(realpath "${BASH_SOURCE[0]}")
echo [DEVENVER] Executing script \"${curr_script}\" with \"${desired_exe}\"
${desired_exe} $@

13
Linux/Scripts/npm-16.19.0.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
desired_dir=${script_dir}/../NodeJS/16.19.0/bin
desired_exe=${desired_dir}/npm
PATH=${desired_dir}:${PATH}
curr_script=$(realpath "${BASH_SOURCE[0]}")
echo [DEVENVER] Executing script \"${curr_script}\" with \"${desired_exe}\"
${desired_exe} $@

13
Linux/Scripts/npm-18.15.0.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
desired_dir=${script_dir}/../NodeJS/18.15.0/bin
desired_exe=${desired_dir}/npm
PATH=${desired_dir}:${PATH}
curr_script=$(realpath "${BASH_SOURCE[0]}")
echo [DEVENVER] Executing script \"${curr_script}\" with \"${desired_exe}\"
${desired_exe} $@