From 659c8fcbd43c60ff45e6e8698158ec9bf01f0ab9 Mon Sep 17 00:00:00 2001 From: Tristan von Kries Date: Thu, 15 Oct 2026 08:21:32 +0200 Subject: [PATCH] macOS: the standard About panel shows the website and Discord links (#1287) (#1718) PdfCraft > About PdfCraft is AppKit's standard panel (winit's default menu), which takes Credits.rtf from Contents/Resources. Ship one with the lines the in-app Help > About has: the one-sentence description, the licence, and links to getartcraft.com and the Discord. Co-authored-by: Tristan von Kries Co-authored-by: Claude Fable 5.1 --- packaging/macos/Credits.rtf | 10 ++++++++++ packaging/macos/package.sh | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 packaging/macos/Credits.rtf diff --git a/packaging/macos/Credits.rtf b/packaging/macos/Credits.rtf new file mode 100644 index 0000000000..18c053f5d9 --- /dev/null +++ b/packaging/macos/Credits.rtf @@ -0,0 +1,10 @@ +{\rtf1\ansi\ansicpg1252\cocoartf2822 +{\fonttbl\f0\fswiss\fcharset0 Helvetica;} +{\colortbl;\red255\green255\blue255;} +\pard\qc\f0\fs24\cf0 +A clean-room, open-source PDF application written in Rust.\ +MIT OR Apache-2.0.\ +\ +{\field{\*\fldinst{HYPERLINK "https://getartcraft.com"}}{\fldrslt getartcraft.com}}\ +Help and feedback: {\field{\*\fldinst{HYPERLINK "https://discord.gg/artcraft"}}{\fldrslt discord.gg/artcraft}}\ +} diff --git a/packaging/macos/package.sh b/packaging/macos/package.sh index e04be13c8d..267a87280b 100755 --- a/packaging/macos/package.sh +++ b/packaging/macos/package.sh @@ -103,6 +103,9 @@ mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources" # Executable and icon carry the display name (CFBundleExecutable / CFBundleIconFile). cp "$WORK/bin/pdfcraft" "$APP/Contents/MacOS/PdfCraft" cp "$ROOT/assets/app-icon/pdfcraft.icns" "$APP/Contents/Resources/PdfCraft.icns" +# The standard About panel (PdfCraft menu > About PdfCraft) shows Credits.rtf under the version: +# the website and Discord links the in-app About dialog has (#1287). +cp "$HERE/Credits.rtf" "$APP/Contents/Resources/Credits.rtf" copy_font_licences "$APP/Contents/Resources" # OCR models: the app finds them at Contents/MacOS/../Resources/models. Before signing, so the # bundle's seal covers them.