2022-04-13 21:10:51 +00:00
|
|
|
#!/bin/sh
|
2022-01-14 18:41:46 +00:00
|
|
|
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
2022-03-24 22:25:24 +00:00
|
|
|
DIR=/tmp/appdwarf/wine
|
2021-12-31 19:37:50 +00:00
|
|
|
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-06-20 14:43:39 +00:00
|
|
|
curl -L "$LINK" | bsdtar xf - -C$DIR
|
2021-12-31 19:37:50 +00:00
|
|
|
|
2022-07-05 23:42:13 +00:00
|
|
|
mv $DIR/wine*/* $DIR/GE-Proton*/files/* $DIR
|
|
|
|
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR
|
|
|
|
sed -i 4s#/#/bin/# $DIR/AppRun
|
2021-12-31 19:37:50 +00:00
|
|
|
|
2022-07-05 23:42:13 +00:00
|
|
|
t=winetricks; wget -O$DIR/bin/$t github.com/$t/$t/raw/master/src/$t
|
|
|
|
chmod +x $DIR/bin/$t
|
2021-12-31 19:37:50 +00:00
|
|
|
|
2022-04-13 21:10:51 +00:00
|
|
|
appdwarf $DIR "$@"
|
2022-01-01 18:11:03 +00:00
|
|
|
mv $DIR.sh wine
|
2022-07-05 23:42:13 +00:00
|
|
|
rm -rf $DIR
|