2022-04-13 21:10:51 +00:00
|
|
|
#!/bin/sh
|
2022-07-13 04:39:09 +00:00
|
|
|
APP=${0#./mk}
|
|
|
|
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
|
|
|
|
LINK=$(curl -L api.github.com/repos/$VER/releases | jq .[0].assets[1] | grep -om1 g.\*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"
|