2022-04-13 21:10:51 +00:00
|
|
|
#!/bin/sh
|
2022-10-18 14:09:41 +00:00
|
|
|
. "$(dirname "$0")"/appmk
|
|
|
|
part0
|
2022-07-05 23:42:13 +00:00
|
|
|
VER=Kron4ek/Wine-Builds
|
2022-11-15 20:17:28 +00:00
|
|
|
[ "$1" = "-p" ] && PREFIX=1 && shift
|
2022-07-05 23:42:13 +00:00
|
|
|
[ "$1" = "proton" ] && VER=GloriousEggroll/proton-ge-custom && shift
|
2022-11-26 18:07:07 +00:00
|
|
|
[ "$1" = "lutris" ] && VER=lutris/wine && 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-10-18 14:09:41 +00:00
|
|
|
unarc
|
2022-11-26 18:07:07 +00:00
|
|
|
mv "$DIR"/wine*/* "$DIR"/GE-Proton*/files/* "$DIR"/lutris*/* "$DIR" || true
|
2022-07-13 04:39:09 +00:00
|
|
|
t=winetricks; wget -O"$DIR"/bin/$t github.com/$t/$t/raw/master/src/$t
|
|
|
|
chmod +x "$DIR"/bin/$t
|
2023-11-16 17:27:25 +00:00
|
|
|
rm -r "$DIR"/lib/wine/i386*
|
2022-11-15 20:17:28 +00:00
|
|
|
|
2023-05-25 15:59:27 +00:00
|
|
|
if [ "$PREFIX" ]; then
|
2022-11-26 18:07:07 +00:00
|
|
|
WINEPREFIX="$DIR/prefix" "$DIR/bin/wine" cmd /c exit
|
2022-11-15 20:17:28 +00:00
|
|
|
cat > "$DIR/AppRun" << 'EOF'
|
|
|
|
#!/bin/sh
|
|
|
|
export PATH="$APPDIR"/bin:"$PATH"
|
|
|
|
export LD_LIBRARY_PATH="$APPDIR"/lib64:"$APPDIR"/lib:"$LD_LIBRARY_PATH"
|
|
|
|
|
2022-12-11 01:35:38 +00:00
|
|
|
if [ ! $WINEPREFIX ]; then
|
|
|
|
mkdir -p "$APPDIR.prefix" ~/.wine/work
|
|
|
|
fuse-overlayfs -o "lowerdir=$APPDIR/prefix,upperdir=$HOME/.wine,workdir=$HOME/.wine/work" "$APPDIR.prefix"
|
|
|
|
export WINEPREFIX="$APPDIR.prefix"
|
|
|
|
fi
|
2022-11-15 20:17:28 +00:00
|
|
|
|
|
|
|
"$APPDIR/bin/$(basename "$ARGV0")" "$@"
|
|
|
|
|
|
|
|
fusermount -quz "$APPDIR.prefix"
|
|
|
|
rmdir "$APPDIR.prefix"
|
|
|
|
EOF
|
|
|
|
chmod +x "$DIR/AppRun"
|
|
|
|
else
|
|
|
|
appb
|
|
|
|
fi
|
|
|
|
|
2022-10-18 14:09:41 +00:00
|
|
|
part9
|