mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-07 20:57:21 +00:00
12 lines
334 B
Plaintext
12 lines
334 B
Plaintext
|
#!/bin/sh
|
||
|
APP=$(basename "$0" | sed 's/^mk//')
|
||
|
DIR=/tmp/appdwarf/$APP
|
||
|
mkdir -p "$DIR"
|
||
|
LINK=$(curl https://api.github.com/repos/clangen/musikcube/releases | grep -om2 http.\*bz2 | tail -n1)
|
||
|
curl -L "$LINK" | tar xj -C"$DIR"
|
||
|
mv "$DIR"/musikcube*/* "$DIR"
|
||
|
appdwarf -a "$DIR"/AppRun
|
||
|
appdwarf "$DIR" "$@"
|
||
|
mv "$DIR".sh "$APP"
|
||
|
rm -rf "$DIR"
|