#!/bin/sh # The Mac app, bundled by rastrillo/native's bundle-mac.py: works.oficina.equipo, # "Oficina Equipo" in Finder and the Dock, "Equipo" 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. set -eu cd "$(dirname "$0")/.." swift package --package-path apple resolve shared_native="${OFICINA_NATIVE_PACKAGE_PATH:-apple/.build/checkouts/native}" python3 "$shared_native/tools/bundle-mac.py" . Equipo --updates-config mac-updates.json "$@" # The shared bundler owns the base plist. Add this app's Service, then re-sign # with the same identity/profile; never mutate an already shipped bundle. python3 scripts/configure-services.py "$shared_native" "$@"