Skip to content

Instantly share code, notes, and snippets.

@mmtrt
Created November 17, 2023 14:34
Show Gist options
  • Save mmtrt/0f6fb55c5ca0e71dbe6913e9bac770cf to your computer and use it in GitHub Desktop.
Save mmtrt/0f6fb55c5ca0e71dbe6913e9bac770cf to your computer and use it in GitHub Desktop.
diff --git a/AppDir/bin/winetricks b/AppDir/bin/winetricks
index 7bff730b8..b0fd6734d 100755
--- a/AppDir/bin/winetricks
+++ b/AppDir/bin/winetricks
@@ -5053,8 +5053,10 @@ winetricks_set_wineprefix()
if test -d "${W_DRIVE_C}/windows/syswow64"; then
# Check the bitness of wineserver + wine binary, used later to determine if we're on a WOW setup (no wine64)
# https://github.com/Winetricks/winetricks/issues/2030
- _W_wineserver_binary_arch="$(winetricks_get_file_arch "${WINESERVER}")"
- _W_wine_binary_arch="$(winetricks_get_file_arch "${WINE}")"
+ WINESERVER_BIN="$(which ${WINESERVER})"
+ _W_wineserver_binary_arch="$(winetricks_get_file_arch "${WINESERVER_BIN}")"
+ WINE_BIN="$(which ${WINE})"
+ _W_wine_binary_arch="$(winetricks_get_file_arch "${WINE_BIN}")"
# determine wow64 type (new/old)
# FIXME: check what upstream is calling them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment