Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions bin/node-build
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,21 @@ after_install_package() {
local stub=1
}

alias_version_name() {
local name=${1:-$(./bin/node --version)}
local prefix=$(dirname "$PREFIX_PATH")
local new_path=${prefix:?not set}/${name#v}

if [ -d "$new_path" ]; then
echo "node-build: $new_path already exists" >&2
return 1
fi

mv "$PREFIX_PATH" "$new_path"
ln -s "$(basename $new_path)" "$PREFIX_PATH"
PREFIX_PATH=$new_path
}

fix_jxcore_directory_structure() {
{
mkdir -p "$PREFIX_PATH/bin"
Expand Down
4 changes: 4 additions & 0 deletions share/node-build/nightly
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
after_install_package() {
alias_version_name
}

downloads="https://nodejs.org/download/nightly"

read -ra manifest < <(http get "${downloads}/index.tab" | grep src | sort -rn -t $'\t' -k2,2 -k1,1 | head -1)
Expand Down