Switch to dev.sh and add node 20.18.2

This commit is contained in:
doylet 2025-04-04 14:07:27 +11:00
parent 92b6606a0e
commit 3383a29a0f
5 changed files with 34 additions and 81 deletions

View File

@ -1,6 +0,0 @@
#!/bin/bash
curr_script=$(realpath "${BASH_SOURCE[0]}")
path_to_add=${devenver_root}/CMake/3.29.1/bin
echo [DEVENVER] \"${curr_script}\" is adding to path \"${path_to_add}\"
PATH=${path_to_add}:${PATH} $@

View File

@ -1,13 +0,0 @@
#!/bin/bash
curr_script=$(realpath "${BASH_SOURCE[0]}")
root_path=${devenver_root}/CMake
path_to_add=${root_path}/$1/bin
if [ "$1" == "list" ]; then
ls ${root_path}
else
echo [DEVENVER] \"${curr_script}\" is adding to path \"${path_to_add}\"
PATH=${path_to_add}:${PATH} ${@:2}
fi

View File

@ -1,30 +0,0 @@
#!/bin/bash
base_path="$devenver_root/GCC"
# Check for help argument
if [[ "$1" == "help" || "$1" == "" || "$1" == "--help" || "$1" == "/?" ]]; then
echo "USAGE: gcc_env.sh <version> <command>"
echo
echo "VERSIONS:"
ls "$base_path"
exit 0
fi
# Check if a version is provided
if [[ -z "$1" ]]; then
echo "Error: No version specified."
echo "USAGE: gcc_env.sh <version> <command>"
exit 1
fi
# Extract the version and remaining arguments
version="$1"
shift
remaining_args="$@"
# Execute the command
echo "[SCRIPT] Executing $remaining_args"
root_path="$base_path/$version"
PATH=${root_path}/bin:${root_path}/lib:${root_path}/include:${PATH}
$remaining_args

View File

@ -1,32 +0,0 @@
#!/bin/bash
root_path="$devenver_root/NodeJS"
# Check for help argument
if [[ "$1" == "help" || "$1" == "" || "$1" == "--help" || "$1" == "/?" ]]; then
echo "USAGE: node_env.sh <version> <command>"
echo
echo "VERSIONS:"
ls "$root_path"
exit 0
fi
# Check if a version is provided
if [[ -z "$1" ]]; then
echo "Error: No version specified."
echo "USAGE: node_env.sh <version> <command>"
exit 1
fi
# Extract the version and remaining arguments
version="$1"
shift
remaining_args="$@"
# Construct the command to execute
bin_path="$root_path/$version/bin"
# Execute the command
echo "[SCRIPT] Executing $remaining_args"
PATH=${bin_path}:${PATH}
$remaining_args

View File

@ -903,6 +903,40 @@ def get_manifest(is_windows):
],
})
version = "20.18.2"
if is_windows:
download_url = f"https://nodejs.org/dist/v{version}/node-v{version}-win-x64.7z"
download_checksum = "asd"
checksum = "asd"
add_to_devenv_script = [ ]
else:
download_url = f"https://nodejs.org/dist/v{version}/node-v{version}-linux-x64.tar.xz"
download_checksum = "4e50f727ae09bdafecf2322c72faf7cd82bf3b8851a16b8bb63974e0d8d6eceb"
checksum = "7109816761936af63cec42b03ce74ff8c0979161a3f97952984aa1be75e40233"
result.append({
"label": "NodeJS",
"manifests": [
{
"download_checksum": download_checksum,
"download_url": download_url,
"version": version,
"unzip_method": 'default',
"executables": [
{
"path": exe_path,
"symlink": symlink,
"add_to_devenv_path": False,
"checksum": checksum,
}
],
"add_to_devenv_script": add_to_devenv_script,
}
],
})
version = "20.12.2"
if is_windows:
download_url = f"https://nodejs.org/dist/v{version}/node-v{version}-win-x64.7z"