From 867a7e0b9590bae3b4939801192081027952bfaa Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Tue, 20 Oct 2026 17:20:28 +0200 Subject: [PATCH] Add macOS release targets for v0.1.2 --- AGENTS.md | 3 +++ Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 4 ++++ docs/releases.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ rust-release.toml | 12 +++++++++++- 6 files changed, 66 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index c01f233..46e6efd 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -31,6 +31,9 @@ with quick-start examples and links to detailed documentation in `docs/`. three SVGs and publishes them only from main during cleanup. CI never creates releases or uploads release binaries. Cross and `rust_realease` are separate, manually invoked build/release preparation tools. +- `rust-release.toml` builds Windows/Linux with Cross and Apple Silicon/Intel + macOS 13+ with a pinned cargo-zigbuild container. macOS canonical archives + require external FFprobe; named portable bundles remain Windows/Linux only. - `scripts/fetch_ffprobe.py` fetches checksum-verified target FFprobe builds into ignored `downloads/`. Named release bundles use `scripts/prepare-release.py` with per-target pins in `crates/pptx-reporter/ffprobe-pins.json`; the standalone packager retains diff --git a/Cargo.lock b/Cargo.lock index 586015b..47af8e4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3190,7 +3190,7 @@ checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958" [[package]] name = "pptx-reporter" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index bb23209..b8d10f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ default-members = ["crates/pptx-reporter"] resolver = "3" [workspace.package] -version = "0.1.1" +version = "0.1.2" edition = "2024" license = "MIT" repository = "https://proxy.dandaedre.com/gitea/Beffroi/beffroi-tools" diff --git a/README.md b/README.md index 83616c6..46e70df 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,10 @@ On Windows, extract the portable ZIP and open `pptx-reporter-gui.exe`. Drop a presentation into the window, select report formats, and generate. Keep the bundled `ffprobe.exe` beside the app. +On macOS 13+, extract the TGZ for Apple Silicon (`aarch64`) or Intel (`x86_64`) +and run `./pptx-reporter-gui`. Supply FFprobe beside the app or on PATH. +See [macOS release details](docs/releases.md#macos). + To run from source: ```sh diff --git a/docs/releases.md b/docs/releases.md index 6b116d4..7639c67 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -92,6 +92,52 @@ a report without separately installed FFmpeg or Python. Cross compilation and fixture tests do not replace native acceptance tests. Keep the standalone packager until those checks are complete. Jenkins remains checks/coverage/badges only. +## macOS + +Release builds include `aarch64-apple-darwin` (Apple Silicon) and +`x86_64-apple-darwin` (Intel), with macOS 13.0 as the minimum. Each canonical +TGZ contains `pptx-reporter` and `pptx-reporter-gui`. Extract the matching archive +and run `./pptx-reporter-gui`, or: + +```sh +./pptx-reporter presentation.pptx --report all +``` + +Supply a macOS FFprobe executable beside the reporter, under its `bin/` +directory, or on PATH. The pinned BtbN downloader and named portable bundle +currently cover Windows and Linux only. macOS archives contain no FFprobe. +PDF compilation and fonts remain embedded. + +These are separate architecture-specific executables, not universal binaries +or Finder `.app` bundles. They are not Developer ID signed or notarized; +Gatekeeper may require user approval before launch. Native startup, file +dialogs, drag/drop, report generation and Gatekeeper behavior still require +testing on compatible Macs. + +On the Linux release host, the same publisher routes Apple targets through the +digest-pinned cargo-zigbuild image in `[build.apple]`; Cross remains responsible +for Windows/Linux. No host Xcode or Darwin Cross image is used. +The image pin, SDK path and deployment minimum are explicit in +`rust-release.toml`. See the upstream +[automated macOS workflow](https://proxy.dandaedre.com/gitea/idle-org/rust_realease/raw/branch/main/docs/automated-macos-releases.md). + +```sh +# Validate the complete four-target release configuration. +rust_realease . --package pptx-reporter --dry-run +# Build/package just the two macOS architectures, without publication. +rust_realease . --package pptx-reporter \ + --target aarch64-apple-darwin --target x86_64-apple-darwin --compile-only +# Build/package the complete release, including Windows/Linux portable bundles. +rust_realease . --package pptx-reporter --compile-only +``` + +Review `SHA256SUMS` and archive executable modes. The publisher checks Mach-O +architecture, the exact macOS deployment minimum and system-only dynamic +dependencies. Foreign cargo-binstall checks install files without executing +them; macOS runtime validation is explicitly skipped on Linux. +Publish the complete configured matrix together so its checksum manifest covers +all platforms. + ## Application artwork Artwork and fonts live in `crates/pptx-reporter/assets/`. Builds embed the PNG diff --git a/rust-release.toml b/rust-release.toml index 8f0c922..fc34444 100644 --- a/rust-release.toml +++ b/rust-release.toml @@ -2,10 +2,20 @@ tag-prefix = "v" [build] -targets = ["x86_64-unknown-linux-gnu", "x86_64-pc-windows-gnu"] +targets = [ + "x86_64-unknown-linux-gnu", + "x86_64-pc-windows-gnu", + "aarch64-apple-darwin", + "x86_64-apple-darwin", +] profile = "release" locked = true +[build.apple] +image = "ghcr.io/rust-cross/cargo-zigbuild@sha256:9b4f6b3eb9e8f9fefb3960fe288ddba576627d66d9eff851ce7f62d2455564a5" +deployment-target = "13.0" +sdk-root = "/opt/MacOSX11.3.sdk" + [package] format = "tgz"