mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-08 13:17:24 +00:00
12 lines
334 B
Bash
Executable file
12 lines
334 B
Bash
Executable file
#!/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"
|