Skip to content

Commit

Permalink
scripts: fix macos_build_universal.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Sep 27, 2024
1 parent 8b09cca commit 3738cd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/macos_build_universal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ if [[ -z "$1" ]]; then
exit 0
fi

shift

meson install -C "$MESON_BUILD_ROOT_MACOS_X64"
meson install -C "$MESON_BUILD_ROOT_MACOS_AARCH64"

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" "$@"

0 comments on commit 3738cd2

Please sign in to comment.