Skip to content

Commit 6476061

Browse files
cgduseksteipete
authored andcommitted
macOS: default release app builds to universal binaries
1 parent 76e4b82 commit 6476061

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

docs/platforms/mac/release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ BUNDLE_ID=ai.openclaw.mac \
4040
APP_VERSION=2026.3.8 \
4141
BUILD_CONFIG=release \
4242
SIGN_IDENTITY="Developer ID Application: <Developer Name> (<TEAMID>)" \
43-
scripts/package-mac-app.sh
43+
scripts/package-mac-dist.sh
4444

4545
# Zip for distribution (includes resource forks for Sparkle delta support)
4646
ditto -c -k --sequesterRsrc --keepParent dist/OpenClaw.app dist/OpenClaw-2026.3.8.zip

scripts/package-mac-app.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ GIT_BUILD_NUMBER=$(cd "$ROOT_DIR" && git rev-list --count HEAD 2>/dev/null || ec
1616
APP_VERSION="${APP_VERSION:-$PKG_VERSION}"
1717
APP_BUILD="${APP_BUILD:-}"
1818
BUILD_CONFIG="${BUILD_CONFIG:-debug}"
19-
BUILD_ARCHS_VALUE="${BUILD_ARCHS:-$(uname -m)}"
19+
if [[ -n "${BUILD_ARCHS:-}" ]]; then
20+
BUILD_ARCHS_VALUE="${BUILD_ARCHS}"
21+
elif [[ "$BUILD_CONFIG" == "release" ]]; then
22+
# Release packaging should be universal unless explicitly overridden.
23+
BUILD_ARCHS_VALUE="all"
24+
else
25+
BUILD_ARCHS_VALUE="$(uname -m)"
26+
fi
2027
if [[ "${BUILD_ARCHS_VALUE}" == "all" ]]; then
2128
BUILD_ARCHS_VALUE="arm64 x86_64"
2229
fi

0 commit comments

Comments
 (0)