2022-04-13 21:10:51 +00:00
|
|
|
#!/bin/sh
|
2022-03-03 22:55:31 +00:00
|
|
|
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
2022-03-24 22:25:24 +00:00
|
|
|
DIR=/tmp/appdwarf
|
2022-03-03 22:55:31 +00:00
|
|
|
mkdir -p $DIR
|
|
|
|
BASE=https://nodejs.org/dist/latest
|
|
|
|
LINK="$BASE/$(curl -L $BASE | grep linux-x64.tar.xz | cut -d'"' -f2)"
|
|
|
|
curl -L "$LINK" | bsdtar xf - -C$DIR
|
|
|
|
|
|
|
|
mv $DIR/node* $DIR/node
|
|
|
|
strip $DIR/node/bin/node
|
2022-04-13 21:10:51 +00:00
|
|
|
|
2022-05-13 00:32:37 +00:00
|
|
|
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR/node
|
2022-06-11 19:02:34 +00:00
|
|
|
sed -i 4s#/#/bin/# $DIR/node/AppRun
|
2022-03-03 22:55:31 +00:00
|
|
|
|
|
|
|
appdwarf $DIR/node
|
|
|
|
mv $DIR/node.sh node
|
|
|
|
rm -rf $DIR/node
|