appdwarf/apps/mkmp3tag
Phantop 3ebee5f254 appdwarf: Switch to AppImage standard environmental variables as v3.0
Deprecates $APPDWARF_CMD for $ARGV0, as part of the standard
Also finally removes the separate header, as it seems to
not be needed anymore
2022-06-11 15:05:58 -04:00

17 lines
407 B
Bash
Executable file

#!/bin/sh
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
DIR=/tmp/appdwarf/mp3tag
mkdir -p $DIR
LINK=$(curl -L mp3tag.de/dodownload64.html | awk -F'[="]' /URL/'{print $7}')
aria2c "$LINK" -d $DIR -o exe
7z x -y -o$DIR $DIR/exe
rm $DIR/exe
mv $DIR/Mp3tag.exe $DIR/mp3tag
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR
sed -i '4s/ / wine /' $DIR/AppRun
appdwarf $DIR
mv $DIR.sh mp3tag
rm -rf $DIR