mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-12 18:03:05 +00:00
14 lines
381 B
Bash
Executable file
14 lines
381 B
Bash
Executable file
#!/bin/sh
|
|
APP=$(basename "$0" | sed 's/^mk//')
|
|
DIR=/tmp/appdwarf/$APP
|
|
mkdir -p "$DIR"
|
|
LINK=$(curl -L mp3tag.de/dodownload64.html | awk -F'[="]' /URL/'{print $7}')
|
|
aria2c "$LINK" -d "$DIR" -o mp3tag
|
|
7z x -y -o"$DIR" "$DIR"/mp3tag
|
|
mv "$DIR"/Mp3tag.exe "$DIR"/mp3tag
|
|
appdwarf -a "$DIR"/AppRun
|
|
sed -i '4s/ / wine /' "$DIR"/AppRun
|
|
appdwarf "$DIR" "$@"
|
|
mv "$DIR".sh "$APP"
|
|
rm -rf "$DIR"
|