Mac App Store build !402

merged merged by cmc on 2026-11-20 08:22 UTC · krz/orgstar:mas-build into main

Discussion

cmc

Adds the "Orgstar macOS" Xcode target for the Mac App Store, sharing sh.krz.orgstar with iOS (Universal Purchase). The Developer ID build from scripts/build-app.sh is unchanged apart from the shared fixes listed below.

App Store build (APPSTORE):

  • Sandboxed. No Sparkle, no subprocesses, no Sponsors license UI or strings.
  • Process runners (Babel, Emacs, gnuplot) are in a new OrgPrograms target that only the Developer ID app links.
  • orgstar+ and tips through StoreKit. ProStore and TipStore moved into OrgApp. Nothing is grandfathered on the Mac.
  • Security-scoped bookmarks for roots, folder grants, the configuration folder and buffers outside the roots. Grant Access… is offered before writes and reads outside them: export, PDF images, tangle, capture, archive, roam/dailies/Denote, SETUPFILE and INCLUDE.
  • Choose Configuration Folder…, Emacs import pickers and a welcome sheet.
  • scripts/release-macos.sh through appstore-kit. check_archive fails on Sponsors, license or update strings in the bundle.
  • Developer ID-only strings moved to l10n/DeveloperID.xcstrings.
  • ITSAppUsesNonExemptEncryption = NO in the iOS and Mac Info.plists.

Shared changes:

  • Saves write in place when the sandbox refuses the temporary file.
  • TangleWriter writes every file and reports a mode it can't set afterwards.
  • ~ expands from the real home folder.

Checks: swift test (1001 tests), build-app.sh, xcodebuild "Orgstar macOS" and "Orgstar iOS". The signed sandboxed Debug build launches to the welcome sheet with no sandbox denials in the log.

Not done before the first submission (CONTRIBUTING.org lists them):

  • Full smoke test of grants, bookmarks across relaunch, Finder-opened files, export and import in the signed build.
  • 1440x900 Mac screenshots.
  • Mac TestFlight group.
  • Installing each Mac build over the other.