Skip to content

Commit

Permalink
[2MGFX] Validate minimum Wine version of 8.0 for .NET 8 (MonoGame#8220)
Browse files Browse the repository at this point in the history
  • Loading branch information
AristurtleDev authored Mar 5, 2024
1 parent db47ec4 commit 76fb878
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Tools/MonoGame.Effect.Compiler/mgfxc_wine_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ then
exit 1
fi

# wine 8 is the minimum requirement for dotnet 8
# wine --version will output "wine-#.# (Distro #.#.#)" or "wine-#.#"
WINE_VERSION=$(wine --version 2>&1 | grep -oP 'wine-\d+' | sed 's/wine-//')
if (( $WINE_VERSION < 8 )); then
echo "Wine version $WINE_VERSION is below the minimum required version (8.0)."
exit 1
fi

# init wine stuff
export WINEARCH=win64
export WINEPREFIX=$HOME/.winemonogame
Expand Down

0 comments on commit 76fb878

Please sign in to comment.