mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-13 02:12:54 +00:00
13 lines
303 B
Bash
Executable file
13 lines
303 B
Bash
Executable file
#!/bin/sh
|
|
APP=${0#./mk}
|
|
DIR=/tmp/appdwarf/$APP
|
|
mkdir -p "$DIR"
|
|
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"
|