diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 67c282afdc..f2479745cf 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -39,7 +39,7 @@ jobs:
version:
name: version
runs-on: ubuntu-latest
- environment: release
+ # No `environment: release`: this job reads no secrets, so a branch dry run can run it.
outputs:
version: ${{ steps.v.outputs.version }}
date: ${{ steps.v.outputs.date }}
@@ -186,7 +186,7 @@ jobs:
# The oldest GitHub-hosted image, so the binaries only need glibc >= 2.35 (Ubuntu 22.04+,
# Debian 12+, Fedora 36+, RHEL 10). See docs/releasing.md.
runs-on: ${{ matrix.runner }}
- environment: release
+ # No `environment: release`: this job reads no secrets, so a branch dry run can run it.
strategy:
fail-fast: false
matrix:
@@ -339,7 +339,7 @@ jobs:
name: Web (wasm)
needs: version
runs-on: ubuntu-latest
- environment: release
+ # No `environment: release`: this job reads no secrets, so a branch dry run can run it.
env:
PHOTOCRAFT_VERSION: ${{ needs.version.outputs.version }}
PHOTOCRAFT_BUILD_DATE: ${{ needs.version.outputs.date }}
diff --git a/Cargo.lock b/Cargo.lock
index a5ef97a684..00c2e506bb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1025,6 +1025,15 @@ dependencies = [
"itertools 0.10.5",
]
+[[package]]
+name = "crossbeam-channel"
+version = "0.5.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "98b0cc327b5bc766e7fda9c9260cc0fa81b43a8e240440422dff70788e3f9ef1"
+dependencies = [
+ "crossbeam-utils",
+]
+
[[package]]
name = "crossbeam-deque"
version = "0.8.8"
@@ -2451,6 +2460,16 @@ dependencies = [
"wasm-bindgen",
]
+[[package]]
+name = "keyboard-types"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fbe853b403ae61a04233030ae8a79d94975281ed9770a1f9e246732b534b28d"
+dependencies = [
+ "bitflags 2.13.2",
+ "serde",
+]
+
[[package]]
name = "khronos-egl"
version = "6.0.0"
@@ -2707,6 +2726,24 @@ dependencies = [
"pxfm",
]
+[[package]]
+name = "muda"
+version = "0.21.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a7b000cca0783af26837fe2ebd9ddf1c42279463c085b97622ee1d2f444b89e"
+dependencies = [
+ "crossbeam-channel",
+ "dpi",
+ "keyboard-types",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "png 0.18.1",
+ "thiserror 2.0.21",
+ "windows-sys 0.61.2",
+]
+
[[package]]
name = "naga"
version = "30.0.1"
@@ -3263,7 +3300,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967"
dependencies = [
"libc",
- "windows-sys 0.52.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -3421,13 +3458,14 @@ dependencies = [
[[package]]
name = "photocraft"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"arboard",
"eframe",
"egui",
"fmv-macos-events",
"log",
+ "muda",
"objc2 0.6.4",
"objc2-app-kit 0.3.2",
"objc2-foundation 0.3.2",
@@ -3454,7 +3492,7 @@ dependencies = [
[[package]]
name = "photocraft-algo"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"photocraft-color",
"photocraft-geom",
@@ -3466,7 +3504,7 @@ dependencies = [
[[package]]
name = "photocraft-automation"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"base64",
"cap-std",
@@ -3488,7 +3526,7 @@ dependencies = [
[[package]]
name = "photocraft-cli"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"photocraft-automation",
"photocraft-codecs",
@@ -3501,7 +3539,7 @@ dependencies = [
[[package]]
name = "photocraft-cms"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"moxcms",
"rayon",
@@ -3509,7 +3547,7 @@ dependencies = [
[[package]]
name = "photocraft-codecs"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"exr",
"flate2",
@@ -3529,7 +3567,7 @@ dependencies = [
[[package]]
name = "photocraft-color"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"photocraft-cms",
"serde",
@@ -3537,7 +3575,7 @@ dependencies = [
[[package]]
name = "photocraft-compose"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"criterion",
"photocraft-color",
@@ -3552,7 +3590,7 @@ dependencies = [
[[package]]
name = "photocraft-doc"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"photocraft-color",
"photocraft-geom",
@@ -3563,7 +3601,7 @@ dependencies = [
[[package]]
name = "photocraft-engine"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"blake3",
"flate2",
@@ -3593,7 +3631,7 @@ dependencies = [
[[package]]
name = "photocraft-format"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"blake3",
"flate2",
@@ -3611,14 +3649,14 @@ dependencies = [
[[package]]
name = "photocraft-geom"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"serde",
]
[[package]]
name = "photocraft-gpu"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"half",
"log",
@@ -3635,14 +3673,14 @@ dependencies = [
[[package]]
name = "photocraft-heif"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"heic-rs",
]
[[package]]
name = "photocraft-io"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"blake3",
"photocraft-algo",
@@ -3666,14 +3704,14 @@ dependencies = [
[[package]]
name = "photocraft-ops"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"photocraft-doc",
]
[[package]]
name = "photocraft-paint"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"photocraft-color",
"photocraft-geom",
@@ -3684,7 +3722,7 @@ dependencies = [
[[package]]
name = "photocraft-plugins"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"photocraft-color",
"photocraft-geom",
@@ -3699,7 +3737,7 @@ dependencies = [
[[package]]
name = "photocraft-psd"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"flate2",
"photocraft-psd",
@@ -3710,7 +3748,7 @@ dependencies = [
[[package]]
name = "photocraft-raster"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"photocraft-color",
"photocraft-geom",
@@ -3720,7 +3758,7 @@ dependencies = [
[[package]]
name = "photocraft-raw"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"photocraft-raw",
"png 0.18.1",
@@ -3729,7 +3767,7 @@ dependencies = [
[[package]]
name = "photocraft-tablet"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"block2 0.6.2",
"objc2 0.6.4",
@@ -3741,7 +3779,7 @@ dependencies = [
[[package]]
name = "photocraft-testkit"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"memory-stats",
"photocraft-color",
@@ -3752,7 +3790,7 @@ dependencies = [
[[package]]
name = "photocraft-text"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"flate2",
"parley",
@@ -3766,7 +3804,7 @@ dependencies = [
[[package]]
name = "photocraft-ui-egui"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"base64",
"eframe",
@@ -3800,7 +3838,7 @@ dependencies = [
[[package]]
name = "photocraft-vector"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"photocraft-color",
"photocraft-doc",
@@ -3811,7 +3849,7 @@ dependencies = [
[[package]]
name = "photocraft-web"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"eframe",
"egui",
@@ -6377,7 +6415,7 @@ checksum = "ec7a2a501ed189703dba8b08142f057e887dfc4b2cc4db2d343ac6376ba3e0b9"
[[package]]
name = "xtask"
-version = "0.3.0"
+version = "0.5.0"
dependencies = [
"serde",
"serde_json",
diff --git a/Cargo.toml b/Cargo.toml
index 6b88cf5811..24b00462ac 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,7 +4,7 @@ members = ["crates/*", "apps/*", "xtask"]
default-members = ["crates/*", "apps/photocraft", "apps/photocraft-cli", "xtask"]
[workspace.package]
-version = "0.3.0"
+version = "0.5.0"
edition = "2024"
license = "MIT OR Apache-2.0"
rust-version = "1.95"
diff --git a/README.md b/README.md
index 4c1ca09734..3bfd30e8c7 100644
--- a/README.md
+++ b/README.md
@@ -52,6 +52,7 @@
Agents ·
Under the hood ·
Get started ·
+ Downloads ·
Crafting Apps ·
Discord
@@ -312,6 +313,51 @@ PhotoCraft is tested against real files: our own Photoshop-authored oracle PSDs
sha256-verified. Fetch them with `cargo xtask corpus --all` and run the tests with
`cargo xtask test-corpus` (details in [docs/development.md](docs/development.md#test-corpora)).
+## Downloads
+
+**New to PhotoCraft?** Download it from the [PhotoCraft page on getartcraft.com](https://getartcraft.com/apps/photocraft). That's the easiest way to install it.
+
+**Want a specific build or format?** On GitHub, the [latest release](https://github.com/storytold/photocraft/releases/latest) has every build listed below, and [all releases](https://github.com/storytold/photocraft/releases) has earlier versions and their notes. `` in the file names is the version number, and `SHA256SUMS.txt` lists a checksum for every file.
+
+### Windows
+
+| Build | Installer | Portable |
+|---|---|---|
+| x64 (64-bit Intel/AMD) | `photocraft--windows-x64.msi` | `photocraft--windows-x64-portable.zip` |
+| arm64 (Snapdragon and other ARM PCs) | `photocraft--windows-arm64.msi` | `photocraft--windows-arm64-portable.zip` |
+| x86 (32-bit) | `photocraft--windows-x86.msi` | `photocraft--windows-x86-portable.zip` |
+
+Installers and executables are code-signed.
+
+### macOS
+
+| Build | File | Notes |
+|---|---|---|
+| App, universal (Apple silicon + Intel) | `photocraft--macos-universal.dmg` | Signed and notarized |
+| Command-line tool, universal | `photocraft-cli--macos-universal.zip` | Signed and notarized |
+
+### Linux
+
+| Format | x86_64 | aarch64 (ARM64) | Notes |
+|---|---|---|---|
+| AppImage | `photocraft--linux-x86_64.AppImage` | `photocraft--linux-aarch64.AppImage` | Runs anywhere; updates itself with [AppImageUpdate](https://github.com/AppImageCommunity/AppImageUpdate) (`.zsync` files) |
+| Flatpak | `photocraft--linux-x86_64.flatpak` | `photocraft--linux-aarch64.flatpak` | Sandboxed; `flatpak install --user ` |
+| Debian/Ubuntu | `photocraft--linux-x86_64.deb` | `photocraft--linux-aarch64.deb` | |
+| Fedora/RHEL/openSUSE | `photocraft--linux-x86_64.rpm` | `photocraft--linux-aarch64.rpm` | |
+| Tarball | `photocraft--linux-x86_64.tar.gz` | `photocraft--linux-aarch64.tar.gz` | Unpack anywhere |
+
+### FreeBSD
+
+| Build | File |
+|---|---|
+| x86_64 | `photocraft--freebsd-x86_64.tar.gz` |
+
+### Web (WebAssembly)
+
+| Build | File | Notes |
+|---|---|---|
+| Static site | `photocraft-web-.zip` | Runs in a modern browser; host it on any static server |
+
## The Crafting Apps
PhotoCraft is one of the **Crafting Apps**: free, open-source creative tools from the
diff --git a/apps/photocraft/Cargo.toml b/apps/photocraft/Cargo.toml
index 219db34a9e..ed0d683d1d 100644
--- a/apps/photocraft/Cargo.toml
+++ b/apps/photocraft/Cargo.toml
@@ -52,6 +52,9 @@ fmv-macos-events = "=0.1.0"
objc2 = "=0.6.4"
objc2-foundation = { version = "=0.3.2", default-features = false, features = ["std", "NSArray", "NSEnumerator", "NSGeometry"] }
objc2-app-kit = { version = "=0.3.2", default-features = false, features = ["std", "NSApplication", "NSApplicationScripting", "NSEvent", "NSResponder", "NSView", "NSWindow"] }
+# The macOS menu bar (mac_menu.rs): Tauri's menu crate, AppKit menus behind a safe API (no GTK
+# with default features off). Pinned exactly: review the diff before bumping.
+muda = { version = "=0.21.1", default-features = false }
# Drop position on X11 (`cursor.rs`): pure-Rust X client, already in Cargo.lock; pinned exactly.
[target.'cfg(target_os = "linux")'.dependencies]
@@ -62,6 +65,15 @@ x11rb = { version = "=0.13.2", default-features = false }
[target.'cfg(target_os = "windows")'.dependencies]
winsafe = { version = "=0.0.29", default-features = false, features = ["user"] }
+# tests/mac_menu_appkit.rs: reads AppKit's menu bar back and sends it real key events.
+[target.'cfg(target_os = "macos")'.dev-dependencies]
+objc2-foundation = { version = "=0.3.2", default-features = false, features = ["std", "NSString"] }
+objc2-app-kit = { version = "=0.3.2", default-features = false, features = ["std", "NSApplication", "NSEvent", "NSGraphicsContext", "NSMenu", "NSMenuItem", "NSResponder"] }
+
+[[test]]
+name = "mac_menu_appkit"
+harness = false
+
[build-dependencies]
# Icon + VERSIONINFO for photocraft.exe; build.rs only uses it when targeting Windows.
winresource = "0.1"
diff --git a/apps/photocraft/src/mac_menu.rs b/apps/photocraft/src/mac_menu.rs
new file mode 100644
index 0000000000..a0f911a117
--- /dev/null
+++ b/apps/photocraft/src/mac_menu.rs
@@ -0,0 +1,359 @@
+//! The macOS menu bar, through muda (Tauri's menu crate: AppKit menus behind a safe API, no GTK on
+//! macOS). The menus themselves, their Mac layout and how their keys reach PhotoCraft are in
+//! `photocraft_ui_egui::native_menu`; this file only builds and updates the `NSMenu`s.
+//!
+//! - Item ids are command ids; a command in two menus (Keyboard Shortcuts is in Edit and Window)
+//! gets `id#2` for its second copy, as muda ids must be unique.
+//! - A structure change (a new Open Recent file, a language switch) rebuilds the menu; anything
+//! else (labels, enabled, checked) is updated in place.
+//! - A chosen item is a click or a key equivalent: AppKit's current event says which. Key
+//! equivalents go back to egui as the key press that was made (the event's modifiers, not the
+//! item's: AppKit may match ⌘R to a ⇧⌘R item), so PhotoCraft's key rules still apply.
+//! - Hide is a custom item calling `NSApplication hide:`, as the predefined one always takes ⌘H.
+
+use std::collections::HashMap;
+use std::sync::mpsc::{Receiver, channel};
+
+use muda::accelerator::{Accelerator, Code, Modifiers};
+use muda::{CheckMenuItem, Menu, MenuEvent, MenuItem, PredefinedMenuItem, Submenu};
+use objc2::MainThreadMarker;
+use objc2_app_kit::{NSApplication, NSEventModifierFlags, NSEventType};
+use photocraft_ui_egui::native_menu::{self, Backend, Chord, Event, MenuBar, MenuRole, Node, Standard};
+
+enum Handle {
+ Plain(MenuItem),
+ Check(CheckMenuItem),
+}
+
+/// One native item.
+struct Entry {
+ handle: Handle,
+ /// The command id (several entries can share one).
+ command: String,
+ chord: Option,
+ label: String,
+ enabled: bool,
+}
+
+/// How an item was chosen, read from AppKit's current event while it calls the handler.
+struct Chosen {
+ id: String,
+ /// A key press (not a mouse click), and the modifiers held: ⌘, ⌃, ⌥, ⇧.
+ key: bool,
+ mods: [bool; 4],
+}
+
+pub struct MacMenu {
+ menu: Option