appdwarf/apps/mkwine
2022-10-18 10:20:16 -04:00

13 lines
400 B
Bash
Executable file

#!/bin/sh
. "$(dirname "$0")"/appmk
part0
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 git.\*tar..z)
unarc
mv "$DIR"/wine*/* "$DIR"/GE-Proton*/files/* "$DIR" || true
t=winetricks; wget -O"$DIR"/bin/$t github.com/$t/$t/raw/master/src/$t
chmod +x "$DIR"/bin/$t
appb
part9