Download this file
| 1 | #!/bin/sh |
| 2 | # The Mac app, bundled by rastrillo/native's bundle-mac.py: works.oficina.base, |
| 3 | # "Oficina Base" in Finder and the Dock, "Base" 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 | # --configuration release refuses to build without Timeless Sans (P8). |
| 10 | set -eu |
| 11 | cd "$(dirname "$0")/.." |
| 12 | case " $* " in |
| 13 | *" --configuration release "*|*" --configuration=release "*) scripts/fonts-into-bundle.sh --release ;; |
| 14 | *) scripts/fonts-into-bundle.sh ;; |
| 15 | esac |
| 16 | swift package --package-path apple resolve |
| 17 | shared_native="${OFICINA_NATIVE_PACKAGE_PATH:-apple/.build/checkouts/native}" |
| 18 | python3 "$shared_native/tools/bundle-mac.py" . Base --updates-config mac-updates.json "$@" |
| 19 | |