mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-23 12:27:14 +00:00
wine: just standard apprun and slightly cleaner proton
This commit is contained in:
parent
4dbceb3446
commit
bdd4a0c6e4
2
appdwarf
2
appdwarf
|
@ -37,7 +37,7 @@ zzexe_header() {
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-d )
|
-d | -p )
|
||||||
zzexe "$@" ;;
|
zzexe "$@" ;;
|
||||||
--version | -v )
|
--version | -v )
|
||||||
tput setaf 2; echo appdwarf 2022.06.25
|
tput setaf 2; echo appdwarf 2022.06.25
|
||||||
|
|
28
apps/mkwine
28
apps/mkwine
|
@ -2,28 +2,18 @@
|
||||||
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
||||||
DIR=/tmp/appdwarf/wine
|
DIR=/tmp/appdwarf/wine
|
||||||
mkdir -p $DIR
|
mkdir -p $DIR
|
||||||
|
VER=Kron4ek/Wine-Builds
|
||||||
LINK="$(curl https://api.github.com/repos/Kron4ek/Wine-Builds/releases | grep -om1 http.\*-staging-tkg-amd64.tar.xz)"
|
[ "$1" = "proton" ] && VER=GloriousEggroll/proton-ge-custom && shift
|
||||||
[ "$1" = "proton" ] && LINK="$(curl https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases | grep -om1 http.\*tar.gz)" && shift
|
LINK=$(curl -L api.github.com/repos/$VER/releases | jq .[0].assets[1] | grep -om1 g.\*tar..z)
|
||||||
curl -L "$LINK" | bsdtar xf - -C$DIR
|
curl -L "$LINK" | bsdtar xf - -C$DIR
|
||||||
|
|
||||||
mv $DIR/wine*/* $DIR/GE-Proton*/files/* $DIR
|
mv $DIR/wine*/* $DIR/GE-Proton*/files/* $DIR
|
||||||
rm -rf $DIR/wine*/ $DIR/GE-Proton*/
|
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR
|
||||||
|
sed -i 4s#/#/bin/# $DIR/AppRun
|
||||||
|
|
||||||
wget -O$DIR/bin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
|
t=winetricks; wget -O$DIR/bin/$t github.com/$t/$t/raw/master/src/$t
|
||||||
chmod +x $DIR/bin/winetricks
|
chmod +x $DIR/bin/$t
|
||||||
|
|
||||||
cat > $DIR/AppRun << 'EOF'
|
|
||||||
#!/bin/sh
|
|
||||||
export WINE="$APPDIR"/bin/wine
|
|
||||||
export WINE64="$WINE"64 WINESERVER="$WINE"server WINETRICKS="$WINE"tricks
|
|
||||||
export DXVK_STATE_CACHE_PATH=~/.cache DXVK_LOG_PATH=none
|
|
||||||
|
|
||||||
[ "$1" = "winetricks" ] && shift && exec "$WINETRICKS" "$@"
|
|
||||||
"$WINE64" "$@"
|
|
||||||
"$WINESERVER" -w
|
|
||||||
EOF
|
|
||||||
chmod +x $DIR/AppRun
|
|
||||||
|
|
||||||
appdwarf $DIR "$@"
|
appdwarf $DIR "$@"
|
||||||
rm -r $DIR
|
|
||||||
mv $DIR.sh wine
|
mv $DIR.sh wine
|
||||||
|
rm -rf $DIR
|
||||||
|
|
Loading…
Reference in a new issue