appdwarf/apps/mknode

13 lines
303 B
Plaintext
Raw Normal View History

#!/bin/sh
APP=${0#./mk}
DIR=/tmp/appdwarf/$APP
mkdir -p "$DIR"
2022-06-27 00:53:01 +00:00
LINK=$(curl https://nodejs.org/en/download/current/ | grep -m1 linux | cut -d\" -f4)
curl -L "$LINK" | tar xJ -C"$DIR"
mv "$DIR"/node*/* "$DIR"
strip "$DIR"/bin/node
appdwarf -b "$DIR"/AppRun
appdwarf "$DIR"
mv "$DIR".sh node
rm -rf "$DIR"