From 314824c5f74a0f5e34609e9c930613f70a09f7ba Mon Sep 17 00:00:00 2001 From: NelloKudo Date: Thu, 8 Jun 2023 18:41:49 +0200 Subject: [PATCH] Added custom wine source support --- build_wine.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/build_wine.sh b/build_wine.sh index a8a949e..8225221 100755 --- a/build_wine.sh +++ b/build_wine.sh @@ -46,9 +46,12 @@ export WINE_OSU="true" # use their own versions. export WINE_VERSION="latest" -# Available branches: vanilla, staging, staging-tkg, proton, wayland +# Available branches: vanilla, staging, staging-tkg, proton, wayland, custom export WINE_BRANCH="staging" +# Custom path for Wine source +export CUSTOM_WINE_SOURCE="" + # Available proton branches: proton_3.7, proton_3.16, proton_4.2, proton_4.11 # proton_5.0, proton_5.13, experimental_5.13, proton_6.3, experimental_6.3 # proton_7.0, experimental_7.0 @@ -230,6 +233,15 @@ elif [ "$WINE_BRANCH" = "proton" ]; then WINE_VERSION="$(cat wine/VERSION | tail -c +14)" BUILD_NAME="${WINE_VERSION}"-proton +elif [ "$WINE_BRANCH" = "custom" ]; then + if [ ! -z "$CUSTOM_WINE_SOURCE" ]; then + git clone "$CUSTOM_WINE_SOURCE" wine || Error "Cloning failed, is the source you used working? Please try again." + + WINE_VERSION="$(cat wine/VERSION | tail -c +14)" + BUILD_NAME="${WINE_VERSION}"-custom + else + Error "Please add a Wine source to CUSTOM_WINE_SOURCE." + fi else BUILD_NAME="${WINE_VERSION}"