From 839f6bd4ae6de5b8c25ece21d438b297dbefe7c2 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 2 Jan 2025 16:25:32 +0100 Subject: [PATCH] _build.sh: try `wine` if `wine64` is missing on macOS [ci skip] --- _build.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/_build.sh b/_build.sh index 05a37ca82..9cefc04b5 100755 --- a/_build.sh +++ b/_build.sh @@ -686,9 +686,12 @@ build_single_target() { fi elif [ "${_HOST}" = 'mac' ]; then # Run x64 targets on Intel and ARM (requires Wine 6.0.1): - if [ "${_CPU}" = 'x64' ] && \ - command -v wine64 >/dev/null 2>&1; then - _RUN_BIN='wine64' + if [ "${_CPU}" = 'x64' ]; then + if command -v wine64 >/dev/null 2>&1; then + _RUN_BIN='wine64' + elif command -v wine >/dev/null 2>&1; then + _RUN_BIN='wine' + fi fi fi fi