Download this file
| 1 | #!/bin/sh |
| 2 | # The Mac app, bundled by rastrillo/native's bundle-mac.py: works.oficina.equipo, |
| 3 | # "Oficina Equipo" in Finder and the Dock, "Equipo" in its menus, Sparkle |
| 4 | # configured from mac-updates.json. Signs ad hoc unless --sign-identity says |
| 5 | # otherwise; never notarises or publishes. |
| 6 | # --provisioning-profile PATH and --entitlements PATH override mac-updates.json. |
| 7 | # The pinned kit embeds the profile at Contents/embedded.provisionprofile |
| 8 | # before signing. Ad hoc builds omit restricted grants and never open a profile. |
| 9 | set -eu |
| 10 | cd "$(dirname "$0")/.." |
| 11 | swift package --package-path apple resolve |
| 12 | shared_native="${OFICINA_NATIVE_PACKAGE_PATH:-apple/.build/checkouts/native}" |
| 13 | python3 "$shared_native/tools/bundle-mac.py" . Equipo --updates-config mac-updates.json "$@" |
| 14 | # The shared bundler owns the base plist. Add this app's Service, then re-sign |
| 15 | # with the same identity/profile; never mutate an already shipped bundle. |
| 16 | python3 scripts/configure-services.py "$shared_native" "$@" |
| 17 | |