Skip to content

Commit

Permalink
Added "local" preset + 8.14> revert update
Browse files Browse the repository at this point in the history
New local preset to test stuff with a local Wine source as well instead
of always relying on online ones. Pretty useful for me ngl xD
Also new reverts! I'd love to make patches for each versions but maintaining
those would be so stressful, so I just prefer using new ones xd
  • Loading branch information
NelloKudo committed Sep 20, 2023
1 parent 314824c commit 113b9b0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build_wine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export WINE_OSU="true"
# use their own versions.
export WINE_VERSION="latest"

# Available branches: vanilla, staging, staging-tkg, proton, wayland, custom
# Available branches: vanilla, staging, staging-tkg, proton, wayland, custom, local
export WINE_BRANCH="staging"

# Custom path for Wine source
Expand Down Expand Up @@ -242,6 +242,10 @@ elif [ "$WINE_BRANCH" = "custom" ]; then
else
Error "Please add a Wine source to CUSTOM_WINE_SOURCE."
fi
elif [ "$WINE_BRANCH" = "local" ]; then
echo ""
## Time for your local tests! Example, try your own source like this:
# cp -r /your/local/wine "${BUILD_DIR}"/wine
else
BUILD_NAME="${WINE_VERSION}"

Expand Down Expand Up @@ -316,9 +320,9 @@ if [ "${WINE_OSU}" = "true" ] ; then
rm -f "${BUILD_DIR}"/wine/dlls/winepulse.drv/*
tar -xf "$curdir/osu-misc/winepulse-513.tar" -C "${BUILD_DIR}/wine/dlls/winepulse.drv"

if (( $(echo "$WINE_VERSION > 8.6" | bc -l) )); then
# If this does not work, please just comment these lines yourself. You only need this for versions after 8.14!
if (( $(echo "$WINE_VERSION > 8.14" | bc -l) )); then

# All the reverts fallback to Wine 8.2
Info "Reverting mmdevapi..."
rm -f "${BUILD_DIR}"/wine/dlls/mmdevapi/*
tar -xf "$curdir/osu-misc/mmdevapi-revert.tar" -C "${BUILD_DIR}/wine/dlls/mmdevapi"
Expand Down
Binary file modified osu-misc/mmdevapi-revert.tar
Binary file not shown.
Binary file modified osu-misc/winealsa-revert.tar
Binary file not shown.
Binary file modified osu-misc/winecoreaudio-revert.tar
Binary file not shown.
Binary file modified osu-misc/wineoss-revert.tar
Binary file not shown.
Binary file modified osu-misc/winepulse-513.tar
Binary file not shown.

0 comments on commit 113b9b0

Please sign in to comment.