Skip to content

Add a macOS unsigned preview release flow for the desktop app, so ProPR Desktop for macOS can be distributed without a paid Apple Developer account. Check current upstream main first. #3407

Closed

Description

@propr-dev

Add a macOS unsigned preview release flow for the desktop app, so ProPR Desktop for macOS can be distributed without a paid Apple Developer account. Check current upstream main first.

Context: the production desktop release (desktop-release-guard.yml, desktop-v* tags) needs Apple Developer ID signing and notarization secrets and the desktop-release/desktop-release-preflight environments, which don't exist yet (#2077). Leave that path untouched. Linux already has a preview track: desktop-linux-preview.yml (stage-draft an unsigned bundle from a frozen source_revision with pinned runtime_app_image/runtime_ui_image/runtime_agent_image digests, identity bound to main) → desktop-linux-signed-preview.yml (sign, then publish through protected environments). CI already builds and validates unsigned darwin-x64 (macos-15-intel) and darwin-arm64 (macos-15) packages ('Validate unsigned darwin-… package' jobs, including apps/desktop/scripts/sign-darwin-local-package.test.mjs for the local ad-hoc signature on arm64). docs/docs/operations/desktop-application.md already documents installing unsigned macOS builds (Gatekeeper 'Open Anyway' on macOS 15+, xattr -dr com.apple.quarantine /Applications/propr-desktop.app, no self-update, notifications may not be delivered).

Build desktop-macos-preview.yml (workflow_dispatch, main only), mirroring the Linux preview's structure and safety properties:

  1. Inputs: source_revision (full SHA reachable from main) and the same three pinned runtime image references (propr/app:<sha>@sha256:… multi-arch, propr/ui:<sha>@sha256:… multi-arch, propr/agent:<sha>@sha256:… linux/amd64). Reuse the Linux preview's identity binding and runtime-manifest verification steps or scripts instead of duplicating logic.
  2. Build darwin-x64 and darwin-arm64 DMG and ZIP packages on the native macOS runners from the frozen SHA, with the runtime manifest bound to the pinned digests. Apply the existing local ad-hoc signature so arm64 launches. Run the existing unsigned-package acceptance and validation checks, and fail closed.
  3. Produce SHA256SUMS across all assets and GitHub build provenance attestations (actions/attest-build-provenance) for every artifact, so users can verify downloads without Apple notarization.
  4. Publish as a GitHub pre-release (never 'latest'), tagged like the Linux preview's naming, e.g. desktop-macos-preview-v<version>-<short sha>, through a protected environment: reuse desktop-linux-preview-publication or add a desktop-macos-preview-publication environment, and document which. Stage a draft first, then publish, as Linux does, so a failed job never leaves a half-published release. No Apple secrets anywhere, and no signing secrets exposed to build jobs.
  5. Make sure the unsigned macOS build does not try to self-update through the signed update channel (verify how signed-update-policy and the release profile behave for unsigned darwin builds, and add a test). The docs already say manual replacement.
  6. Update docs/docs/operations/desktop-application.md with where to download macOS preview builds and how to verify them (shasum -a 256 -c and gh attestation verify), keeping the existing Gatekeeper, keychain and notification caveats. Add a CHANGELOG [Unreleased] entry.
  7. Tests: workflow contract tests in the style of the existing desktop workflow tests (identity binding, pinned digests, pre-release only, no secrets in build jobs, checksums and attestations present), plus actionlint and zizmor if the repo uses them.

Validation: desktop and workflow tests, npm run lint --workspaces --if-present -- --max-warnings 0, root and workspace typechecks. If possible, include evidence from a real dispatch on a PR branch, or explain why it must run from main. One focused PR ready for review. Do not auto-merge, tag, publish or deploy.


Submitted by @integry through ProPR.

Activity

  1. propr-dev commented on Oct 31, 2026

    @propr-dev
    ContributorAuthor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3407/claude-opus-5-5-add-a-macos-unsigned-prev-20261031-2316-1tw
    • Base Branch: main
    • Worktree: issue-3407-20261031-2316-claude-opus-5-5-1tw

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions