2022-04-13 21:10:51 +00:00
|
|
|
#!/bin/sh
|
2022-07-30 15:56:48 +00:00
|
|
|
APP=$(basename "$0" | sed 's/^mk//')
|
2022-07-13 04:39:09 +00:00
|
|
|
DIR=/tmp/appdwarf/$APP
|
|
|
|
mkdir -p "$DIR"
|
2022-07-05 23:42:13 +00:00
|
|
|
VER=Kron4ek/Wine-Builds
|
|
|
|
[ "$1" = "proton" ] && VER=GloriousEggroll/proton-ge-custom && shift
|
2022-07-19 04:54:08 +00:00
|
|
|
LINK=$(curl -L api.github.com/repos/$VER/releases | jq .[0].assets[1] | grep -om1 git.\*tar..z)
|
2022-07-13 04:39:09 +00:00
|
|
|
curl -L "$LINK" | bsdtar xf - -C"$DIR"
|
|
|
|
mv "$DIR"/wine*/* "$DIR"/GE-Proton*/files/* "$DIR"
|
|
|
|
t=winetricks; wget -O"$DIR"/bin/$t github.com/$t/$t/raw/master/src/$t
|
|
|
|
chmod +x "$DIR"/bin/$t
|
|
|
|
appdwarf -b "$DIR"/AppRun
|
|
|
|
appdwarf "$DIR" "$@"
|
|
|
|
mv "$DIR".sh wine
|
|
|
|
rm -rf "$DIR"
|