#!/bin/sh # The Mac app, bundled by rastrillo/native's bundle-mac.py: works.oficina.base, # "Oficina Base" in Finder and the Dock, "Base" in its menus, Sparkle # configured from mac-updates.json. Signs ad hoc unless --sign-identity says # otherwise; never notarises or publishes. # --provisioning-profile PATH and --entitlements PATH override mac-updates.json. # The pinned kit embeds the profile at Contents/embedded.provisionprofile # before signing. Ad hoc builds omit restricted grants and never open a profile. # --configuration release refuses to build without Timeless Sans (P8). set -eu cd "$(dirname "$0")/.." case " $* " in *" --configuration release "*|*" --configuration=release "*) scripts/fonts-into-bundle.sh --release ;; *) scripts/fonts-into-bundle.sh ;; esac swift package --package-path apple resolve shared_native="${OFICINA_NATIVE_PACKAGE_PATH:-apple/.build/checkouts/native}" python3 "$shared_native/tools/bundle-mac.py" . Base --updates-config mac-updates.json "$@"