diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c24f74cf3..30825c162c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,6 +38,7 @@ jobs: app-name: pdfcraft app-title: PdfCraft macos-runner: macos-15 + macos-split-build: true craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83 version: ${{ inputs.version }} contributors-artifact: ${{ needs.credits.outputs.artifact-name }} diff --git a/docs/releasing.md b/docs/releasing.md index 3b7444893d..7352918201 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -20,7 +20,7 @@ ids stay lowercase (`pdfcraft---.`, `ai.storytelle Commit the change through the normal review flow (see the `Release: PdfCraft v0.2.1` PR). 2. **Merge `main` into `release`** (or fast-forward it) and push. The workflow starts by itself. -3. **Wait for the draft.** When every job has finished (notarization is the slow part), the +3. **Wait for the draft.** When every job has finished (the macOS compile is the long wait, then signing and notarization), the Releases page has a draft `PdfCraft v0.3.0` targeting the pushed commit, with every artifact and `SHA256SUMS.txt`. The notes are generated from the merged PRs. 4. **Check it.** Download an installer or two and read the job summaries. A `::warning::` there @@ -44,7 +44,7 @@ published (`gh workflow run release.yml --ref `). | Platform | Artifacts | Built on | |---|---|---| -| macOS 11+ (universal: Apple silicon + Intel) | `pdfcraft--macos-universal.dmg`, `pdfcraft-cli--macos-universal.zip` | `macos-15` | +| macOS 11+ (universal: Apple silicon + Intel) | `pdfcraft--macos-universal.dmg`, `pdfcraft-cli--macos-universal.zip` | `macos-15` (each architecture on its own runner, then packaged) | | Windows 10+ x64 | `pdfcraft--windows-x64.msi`, `pdfcraft--windows-x64-portable.zip` | `windows-latest` | | Windows 10+ x86 (32-bit) | `pdfcraft--windows-x86.msi`, `pdfcraft--windows-x86-portable.zip` | `windows-latest` | | Windows 11 on ARM64 | `pdfcraft--windows-arm64.msi`, `pdfcraft--windows-arm64-portable.zip` | `windows-latest` (cross-compiled) | @@ -86,12 +86,16 @@ The web build does not include these models, and OCR remains limited to the Lati ### macOS -`packaging/macos/package.sh` builds both architectures, joins them with `lipo`, and assembles -`PdfCraft.app` from `Info.plist.in` (bundle id `ai.storyteller.pdfcraft`, macOS 11+, PDF declared -as a document type with rank Alternate, so PdfCraft is offered under Open With without taking over -from Preview). Files opened from Finder arrive as Apple events, which +`packaging/macos/package.sh` builds both architectures (or, with `--skip-build`, uses binaries +already in `target//release` for `pdfcraft` and `pdfcraft-cli`), joins them with `lipo`, +and assembles `PdfCraft.app` from `Info.plist.in` (bundle id `ai.storyteller.pdfcraft`, macOS 11+, +PDF declared as a document type with rank Alternate, so PdfCraft is offered under Open With +without taking over from Preview). Files opened from Finder arrive as Apple events, which `apps/pdfcraft/src/apple_events.rs` receives. +The release workflow sets `macos-split-build: true`, so each architecture is compiled on its own +`macos-15` runner and the packaging job runs `packaging/macos/package.sh --arch universal --skip-build`. + - **Signing** uses the hardened runtime and a secure timestamp, executable first, then the bundle. `packaging/macos/import-cert.sh` puts the certificate in a temporary keychain, deleted at the end of the job. @@ -108,6 +112,7 @@ Without certificates (locally) the script signs ad-hoc and skips notarization: ```sh packaging/macos/package.sh --arch aarch64 # quicker, host-only; --arch universal needs both targets +packaging/macos/package.sh --arch universal --skip-build # lipo, sign and notarize prebuilt binaries ``` ### Windows