scripts: fix macos_build_universal.sh
This commit is contained in:
parent
8b09cca7c2
commit
3fdc62eeb8
1 changed files with 5 additions and 2 deletions
|
@ -4,7 +4,10 @@ set -e
|
|||
|
||||
source "$(pwd)/.mac_env"
|
||||
|
||||
if [[ -z "$1" ]]; then
|
||||
VERSION="$1"
|
||||
shift
|
||||
|
||||
if [[ -z "$VERSION" ]]; then
|
||||
printf -- "Usage: macos_build_universal.sh VERSION [--integrity-files]\n\n"
|
||||
exit 0
|
||||
fi
|
||||
|
@ -16,4 +19,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-$VERSION-universal.dmg" "$MESON_BUILD_ROOT_MACOS_X64" "$MESON_BUILD_ROOT_MACOS_COMBINED" "$@"
|
||||
|
|
Loading…
Reference in a new issue