mirror of https://github.com/Phantop/appdwarf.git
wine: lutris builds too!
This commit is contained in:
parent
c7ff9fcfec
commit
f0e8af4a2c
|
@ -4,14 +4,15 @@ part0
|
||||||
VER=Kron4ek/Wine-Builds
|
VER=Kron4ek/Wine-Builds
|
||||||
[ "$1" = "-p" ] && PREFIX=1 && shift
|
[ "$1" = "-p" ] && PREFIX=1 && shift
|
||||||
[ "$1" = "proton" ] && VER=GloriousEggroll/proton-ge-custom && shift
|
[ "$1" = "proton" ] && VER=GloriousEggroll/proton-ge-custom && shift
|
||||||
|
[ "$1" = "lutris" ] && VER=lutris/wine && shift
|
||||||
LINK=$(curl -L api.github.com/repos/$VER/releases | jq .[0].assets[1] | grep -om1 git.\*tar..z)
|
LINK=$(curl -L api.github.com/repos/$VER/releases | jq .[0].assets[1] | grep -om1 git.\*tar..z)
|
||||||
unarc
|
unarc
|
||||||
mv "$DIR"/wine*/* "$DIR"/GE-Proton*/files/* "$DIR" || true
|
mv "$DIR"/wine*/* "$DIR"/GE-Proton*/files/* "$DIR"/lutris*/* "$DIR" || true
|
||||||
t=winetricks; wget -O"$DIR"/bin/$t github.com/$t/$t/raw/master/src/$t
|
t=winetricks; wget -O"$DIR"/bin/$t github.com/$t/$t/raw/master/src/$t
|
||||||
chmod +x "$DIR"/bin/$t
|
chmod +x "$DIR"/bin/$t
|
||||||
|
|
||||||
if [ $PREFIX ]; then
|
if [ $PREFIX ]; then
|
||||||
WINEPREFIX="$DIR/prefix" "$DIR/bin/wineboot"
|
WINEPREFIX="$DIR/prefix" "$DIR/bin/wine" cmd /c exit
|
||||||
cat > "$DIR/AppRun" << 'EOF'
|
cat > "$DIR/AppRun" << 'EOF'
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
export PATH="$APPDIR"/bin:"$PATH"
|
export PATH="$APPDIR"/bin:"$PATH"
|
||||||
|
|
Loading…
Reference in New Issue