From 3738cd2f1c4d6ea93a057dcf6ecaabdaef7cacb0 Mon Sep 17 00:00:00 2001 From: Andrei Alexeyev Date: Fri, 27 Sep 2024 22:58:59 +0200 Subject: [PATCH] scripts: fix macos_build_universal.sh --- scripts/macos_build_universal.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/macos_build_universal.sh b/scripts/macos_build_universal.sh index ae9269716..2924a9aa5 100755 --- a/scripts/macos_build_universal.sh +++ b/scripts/macos_build_universal.sh @@ -9,6 +9,8 @@ if [[ -z "$1" ]]; then exit 0 fi +shift + meson install -C "$MESON_BUILD_ROOT_MACOS_X64" meson install -C "$MESON_BUILD_ROOT_MACOS_AARCH64" @@ -16,4 +18,4 @@ cp -a "$MESON_BUILD_ROOT_MACOS_X64_COMPILED/" "$MESON_BUILD_ROOT_MACOS_COMBINED" printf -- "Combining x64 and AArch64 binaries...\n\n" lipo -create -output "$MESON_BUILD_ROOT_MACOS_COMBINED/$TAISEI_BIN_PATH" "$MESON_BUILD_ROOT_MACOS_X64_COMPILED/$TAISEI_BIN_PATH" "$MESON_BUILD_ROOT_MACOS_AARCH64_COMPILED/$TAISEI_BIN_PATH" -"$TAISEI_ROOT/scripts/macos-gen-dmg.py" "$MAC_BUILD_DIR/compiled/Taisei-$1-universal.dmg" "$MESON_BUILD_ROOT_MACOS_X64" "$MESON_BUILD_ROOT_MACOS_COMBINED" "$2" +"$TAISEI_ROOT/scripts/macos-gen-dmg.py" "$MAC_BUILD_DIR/compiled/Taisei-$1-universal.dmg" "$MESON_BUILD_ROOT_MACOS_X64" "$MESON_BUILD_ROOT_MACOS_COMBINED" "$@"