Add macOS release targets for v0.1.2

This commit is contained in:
Dandaedre 2026-10-20 17:20:28 +02:00
parent a45e67ec2f
commit 9d48acf99d
6 changed files with 66 additions and 3 deletions

View File

@ -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

2
Cargo.lock generated
View File

@ -3190,7 +3190,7 @@ checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958"
[[package]]
name = "pptx-reporter"
version = "0.1.1"
version = "0.1.2"
dependencies = [
"anyhow",
"clap",

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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"