Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Scripts/compile_and_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ fi
if [[ "${DEBUG_LLDB}" == "1" && -n "${RELEASE_ARCHES}" ]]; then
fail "--release-arches is only supported for release packaging"
fi
HOST_ARCH="$(uname -m)"
ARCHES_VALUE="${HOST_ARCH}"
# Build universal binary by default (arm64 + x86_64)
ARCHES_VALUE="arm64 x86_64"
if [[ -n "${RELEASE_ARCHES}" ]]; then
ARCHES_VALUE="${RELEASE_ARCHES}"
fi
Expand Down
9 changes: 2 additions & 7 deletions Scripts/package_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,10 @@ if [[ "${CODEXBAR_FORCE_CLEAN:-0}" == "1" ]]; then
swift package clean >/dev/null 2>&1 || true
fi

# Build for host architecture by default; allow overriding via ARCHES (e.g., "arm64 x86_64" for universal).
# Build universal binary by default (arm64 + x86_64); allow overriding via ARCHES.
ARCH_LIST=( ${ARCHES:-} )
if [[ ${#ARCH_LIST[@]} -eq 0 ]]; then
HOST_ARCH=$(uname -m)
case "$HOST_ARCH" in
arm64) ARCH_LIST=(arm64) ;;
x86_64) ARCH_LIST=(x86_64) ;;
*) ARCH_LIST=("$HOST_ARCH") ;;
esac
ARCH_LIST=(arm64 x86_64)
fi

patch_keyboard_shortcuts() {
Expand Down