2022-04-13 21:10:51 +00:00
|
|
|
#!/bin/sh
|
2024-07-05 03:22:20 +00:00
|
|
|
# shellcheck source=../appdwarf
|
|
|
|
SOURCE=1 . "$(which appdwarf)"
|
|
|
|
|
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-11-26 18:07:07 +00:00
|
|
|
[ "$1" = "lutris" ] && VER=lutris/wine && shift
|
2024-07-05 03:22:20 +00:00
|
|
|
[ "$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-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
|
2023-11-16 17:27:25 +00:00
|
|
|
rm -r "$DIR"/lib/wine/i386*
|
2024-07-05 03:22:20 +00:00
|
|
|
appb
|
2022-11-15 20:17:28 +00:00
|
|
|
|
2024-07-05 03:22:20 +00:00
|
|
|
t=winetricks
|
|
|
|
wget -O"$DIR"/bin/$t github.com/$t/$t/raw/master/src/$t
|
|
|
|
chmod +x "$DIR"/bin/$t
|
2022-11-15 20:17:28 +00:00
|
|
|
|
2024-08-19 06:00:57 +00:00
|
|
|
script="$0"
|
2024-07-05 03:22:20 +00:00
|
|
|
apprun() {
|
|
|
|
export PATH="$APPDIR"/bin:"$PATH"
|
|
|
|
export LD_LIBRARY_PATH="$APPDIR"/lib64:"$APPDIR"/lib:"$LD_LIBRARY_PATH"
|
2022-11-15 20:17:28 +00:00
|
|
|
|
2024-07-05 03:22:20 +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
|
|
|
|
2024-07-05 03:22:20 +00:00
|
|
|
"$APPDIR/bin/$(basename "$ARGV0")" "$@"
|
|
|
|
|
|
|
|
fusermount -quz "$APPDIR.prefix"
|
|
|
|
rmdir "$APPDIR.prefix"
|
|
|
|
}
|
|
|
|
if [ "$PREFIX" ]; then
|
|
|
|
WINEPREFIX="$DIR/prefix" "$DIR/bin/wine" cmd /c exit
|
2024-07-05 12:19:40 +00:00
|
|
|
appa
|
2022-11-15 20:17:28 +00:00
|
|
|
fi
|
|
|
|
|
2024-08-19 06:00:57 +00:00
|
|
|
script="$(which appdwarf)"
|
2024-07-05 03:22:20 +00:00
|
|
|
appmk
|