mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-12 18:03:05 +00:00
12 lines
306 B
Bash
Executable file
12 lines
306 B
Bash
Executable file
#!/bin/sh
|
|
APP=$(basename "$0" | sed 's/^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"
|
|
appdwarf -b "$DIR"/AppRun
|
|
appdwarf "$DIR"
|
|
mv "$DIR".sh "$APP"
|
|
rm -rf "$DIR"
|