Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Release pipeline id renames and PhotoCraft branding

Brandon Thomas1f1ddb2a4705
diff --git a/.github/workflows/packaging-lint.yml b/.github/workflows/packaging-lint.yml
index e527e73f8..05b09c224 100644
--- a/.github/workflows/packaging-lint.yml
+++ b/.github/workflows/packaging-lint.yml
@@ -46,8 +46,8 @@ jobs:
}
- name: XML, desktop entry, AppStream, Flatpak manifest
run: |
- xmllint --noout packaging/windows/Photocraft.wxs packaging/macos/*.plist* packaging/linux/*.xml*
- desktop-file-validate packaging/linux/ai.storyteller.Photocraft.desktop
- sed -e 's/@VERSION@/0.0.0/' -e 's/@DATE@/2026-01-01/' packaging/linux/ai.storyteller.Photocraft.metainfo.xml.in >"$RUNNER_TEMP/ai.storyteller.Photocraft.metainfo.xml"
- appstreamcli validate --no-net --explain "$RUNNER_TEMP/ai.storyteller.Photocraft.metainfo.xml"
- python3 -c "import yaml; m = yaml.safe_load(open('packaging/linux/flatpak/ai.storyteller.Photocraft.yml')); assert m['id'] == 'ai.storyteller.Photocraft' and m['command'] == 'photocraft'"
+ xmllint --noout packaging/windows/photocraft.wxs packaging/macos/*.plist* packaging/linux/*.xml*
+ desktop-file-validate packaging/linux/ai.storyteller.photocraft.desktop
+ sed -e 's/@VERSION@/0.0.0/' -e 's/@DATE@/2026-01-01/' packaging/linux/ai.storyteller.photocraft.metainfo.xml.in >"$RUNNER_TEMP/ai.storyteller.photocraft.metainfo.xml"
+ appstreamcli validate --no-net --explain "$RUNNER_TEMP/ai.storyteller.photocraft.metainfo.xml"
+ python3 -c "import yaml; m = yaml.safe_load(open('packaging/linux/flatpak/ai.storyteller.photocraft.yml')); assert m['id'] == 'ai.storyteller.photocraft' and m['command'] == 'photocraft'"
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 644b90e90..065094f38 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,5 +1,5 @@
# Release pipeline: every push to `release` builds signed installers for every platform and
-# creates or updates the draft GitHub Release "Photocraft v<version>". See docs/releasing.md.
+# creates or updates the draft GitHub Release "PhotoCraft v<version>". See docs/releasing.md.
#
# All jobs run in the `release` environment (restricted to the `release` branch), which holds
# the signing secrets. Every secret is optional: missing ones produce unsigned artifacts and a
@@ -21,7 +21,8 @@ permissions:
concurrency:
group: release-${{ github.ref }}
- cancel-in-progress: true
+ # Never cancel a run mid-notarization or mid-upload; a newer push waits its turn.
+ cancel-in-progress: false
env:
CARGO_TERM_COLOR: always
@@ -57,7 +58,7 @@ jobs:
echo "date=$(date -u +%Y-%m-%d)"
echo "prerelease=$pre"
} >>"$GITHUB_OUTPUT"
- echo "### Photocraft v$v (\`${GITHUB_SHA::9}\`)" >>"$GITHUB_STEP_SUMMARY"
+ echo "### PhotoCraft v$v (\`${GITHUB_SHA::9}\`)" >>"$GITHUB_STEP_SUMMARY"
macos:
name: macOS universal
@@ -189,7 +190,7 @@ jobs:
dpkg-deb --info dist/release/*.deb
dpkg-deb --contents dist/release/*.deb | grep -E 'usr/bin/photocraft$|metainfo|applications'
ldd target/release/photocraft
- python3 -c "import yaml; m = yaml.safe_load(open('packaging/linux/flatpak/ai.storyteller.Photocraft.yml')); assert m['id'] == 'ai.storyteller.Photocraft'"
+ python3 -c "import yaml; m = yaml.safe_load(open('packaging/linux/flatpak/ai.storyteller.photocraft.yml')); assert m['id'] == 'ai.storyteller.photocraft'"
for appimage in dist/release/*.AppImage; do
chmod +x "$appimage"
APPIMAGE_EXTRACT_AND_RUN=1 "$appimage" --version
@@ -259,7 +260,7 @@ jobs:
working-directory: artifacts
run: |
tag="v$VERSION"
- title="Photocraft v$VERSION"
+ title="PhotoCraft v$VERSION"
pre=()
if [ "$PRERELEASE" = true ]; then pre=(--prerelease); fi
if draft="$(gh release view "$tag" --json isDraft --jq .isDraft 2>/dev/null)"; then
diff --git a/.gitignore b/.gitignore
index 34089cab5..f71f1685e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
*~
plan/
/target
+target/
/dist
/corpus
/log
diff --git a/AGENTS.md b/AGENTS.md
index cc07eac0c..f4f5c07ce 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,6 +1,6 @@
# AGENTS.md: guide for AI agents and contributors
-PhotoCraft is an open-source, native, Photoshop-comparable image editor written in **Rust only** (no JavaScript or TypeScript). The product name is always written **PhotoCraft** (PascalCase, like its siblings DrawCraft, FilmCraft, LightCraft, PrintCraft, DesignCraft, EffectsCraft, ArtCraft) in user-facing text: UI, window titles, About, installers, release names, docs prose. Machine names stay lowercase: crates (`photocraft-*`), binaries, file names, ids (`ai.storyteller.photocraft`). The goal is 1:1 Photoshop parity (same menus, shortcuts, behaviour and file fidelity) with better performance, and every feature drivable by agents. Read this file first, then `docs/`.
+PhotoCraft is an open-source, native, Photoshop-comparable image editor written in **Rust only** (no JavaScript or TypeScript). The product name is always written **PhotoCraft** (`{Function}Craft` in PascalCase, like its siblings ArtCraft, ArtCraftX, DesignCraft, DrawCraft, EffectCraft, FilmCraft, LightCraft, PrintCraft) in user-facing text: UI, window titles, About, installers, release names, docs prose. Machine names stay lowercase: crates (`photocraft-*`), binaries, file names, ids (`ai.storyteller.photocraft`). Standards and learnings shared across the crafting apps live in `../craftrules` (read its `README.md`). Contribute reusable learnings there, never code; repos don't share code. The goal is 1:1 Photoshop parity (same menus, shortcuts, behaviour and file fidelity) with better performance, and every feature drivable by agents. Read this file first, then `docs/`.
## 1. Orientation (5 minutes)
@@ -83,7 +83,7 @@ Then append a terse entry to `log/devlog.md` (what landed, numbers, what's still
- `docs/roadmap.md`: milestones M0–M12, status and the current focus.
- `docs/parity.md`: generated Photoshop menu coverage.
- `docs/releasing.md`: cutting a release (`cargo xtask version`, the `release` branch), signing secrets, packaging scripts in `packaging/`.
-- `docs/release-playbook.md`: how every storytold app builds signed release binaries (shared across photocraft, drawcraft, filmcraft, lightcraft, printcraft, designcraft, effectscraft); `docs/releasing.md` is Photocraft's specifics.
+- `docs/release-playbook.md`: how every storytold app builds signed release binaries (the recipe for every crafting app; moving to `craftrules/release/playbook.md`); `docs/releasing.md` is Photocraft's specifics.
- `plan/` (local, gitignored): research, parity plan, execution plan, estimates.
- `log/` (local, gitignored): the dev log.
diff --git a/README.md b/README.md
index 077b937e1..5aa501d35 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-<h1 align="center">📷 Photocraft</h1>
+<h1 align="center">📷 PhotoCraft</h1>
<p align="center">
<b>The image editor you already know how to use.</b><br>
@@ -23,7 +23,7 @@
</p>
<p align="center">
- <img src="docs/images/photocraft-demo.jpg" alt="Photocraft editing Hokusai's The Great Wave: a caption card with a drop shadow, type layers, Vibrance and Curves adjustment layers, and the Curves editor with its histogram" width="100%">
+ <img src="docs/images/photocraft-demo.jpg" alt="PhotoCraft editing Hokusai's The Great Wave: a caption card with a drop shadow, type layers, Vibrance and Curves adjustment layers, and the Curves editor with its histogram" width="100%">
<br>
<sub><i>The Great Wave off Kanagawa</i>, Katsushika Hokusai, c. 1831</sub>
</p>
@@ -34,7 +34,7 @@
<tr>
<td width="25%" valign="top">
<h3>🎛️ Familiar by design</h3>
- The menus, shortcuts, panels and tools are where your hands expect them, from ⌘J to ⇧⌘D. If you know Photoshop, you already know Photocraft.
+ The menus, shortcuts, panels and tools are where your hands expect them, from ⌘J to ⇧⌘D. If you know Photoshop, you already know PhotoCraft.
</td>
<td width="25%" valign="top">
<h3>⚡ Native and fast</h3>
@@ -189,7 +189,7 @@
## PSD without compromise
-Photocraft's PSD support is a standalone crate written from Adobe's public specification and tested against a corpus of real-world files.
+PhotoCraft's PSD support is a standalone crate written from Adobe's public specification and tested against a corpus of real-world files.
- **Byte-exact round trips:** 134 of 135 corpus files are written back identical, and anything we don't model yet (raw blocks, descriptors, extras) is preserved verbatim instead of being dropped.
- **Pixels that match:** a composite oracle compares our render with Photoshop's own merged image, covering gradient interpolation (Classic, Perceptual and Linear), layer effects, shape strokes, clipping and fill opacity.
@@ -222,7 +222,7 @@ The desktop app also listens on a local control channel (`photocraft --control`)
- **Copy-on-write tiles:** 256² sparse tiles make undo cheap and huge canvases light, and effect maps are cached per layer state.
- **Runs in the browser:** the whole engine and UI compile to WebAssembly.
- **Clean-room:** implemented from public specs and observed behaviour only. No proprietary code, shaders or assets.
-- **Tested:** more than 1,600 tests, including PSD round trips, synthetic generators, compositor oracles and multi-depth checks.
+- **Tested:** more than 1,700 tests, including PSD round trips, synthetic generators, compositor oracles and multi-depth checks.
## Get started
@@ -237,7 +237,7 @@ New contributors and AI agents: start with [`AGENTS.md`](AGENTS.md), then [`docs
Installers for macOS, Windows, Linux and the web are attached to each [GitHub release](https://github.com/storytold/photocraft/releases). Maintainers: [`docs/releasing.md`](docs/releasing.md) explains how releases are built, signed and published.
-> **Status:** Photocraft is in early alpha. The core editing workflow is here, and we're working toward full Photoshop parity milestone by milestone (see [`docs/roadmap.md`](docs/roadmap.md)). Progress is measured, not guessed: `cargo xtask parity` checks every item in Photoshop's menu tree against the live command registry and writes [`docs/parity.md`](docs/parity.md). Expect rough edges, and please file issues.
+> **Status:** PhotoCraft is in early alpha. The core editing workflow is here, and we're working toward full Photoshop parity milestone by milestone (see [`docs/roadmap.md`](docs/roadmap.md)). Progress is measured, not guessed: `cargo xtask parity` checks every item in Photoshop's menu tree against the live command registry and writes [`docs/parity.md`](docs/parity.md). Expect rough edges, and please file issues.
## Crafting Apps
@@ -273,5 +273,5 @@ Open-source, clean-room, pure-Rust creative apps that share the same conventions
<p align="center"><sub>
Built by the artcraft team. Licensed under MIT or Apache-2.0.<br>
Every artwork shown is in the public domain (Wikimedia Commons, NASA, U.S. National Archives); sources are listed in <a href="docs/images/SOURCES.md"><code>docs/images/SOURCES.md</code></a>.<br>
- Photoshop is a trademark of Adobe Inc. Photocraft is an independent project, not affiliated with or endorsed by Adobe.
+ Photoshop is a trademark of Adobe Inc. PhotoCraft is an independent project, not affiliated with or endorsed by Adobe.
</sub></p>
diff --git a/apps/photocraft-web/index.html b/apps/photocraft-web/index.html
index f97088ecc..befbd8803 100644
--- a/apps/photocraft-web/index.html
+++ b/apps/photocraft-web/index.html
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
- <title>Photocraft</title>
+ <title>PhotoCraft</title>
<link data-trunk rel="rust" data-bin="photocraft-web" data-wasm-opt="z" data-weak-refs />
<style>
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #262626; }
@@ -14,6 +14,6 @@
</head>
<body>
<canvas id="photocraft_canvas"></canvas>
- <div id="photocraft_loading">Loading Photocraft&hellip;</div>
+ <div id="photocraft_loading">Loading PhotoCraft&hellip;</div>
</body>
</html>
diff --git a/apps/photocraft-web/src/web.rs b/apps/photocraft-web/src/web.rs
index 0ddd6b7e8..57d9569c1 100644
--- a/apps/photocraft-web/src/web.rs
+++ b/apps/photocraft-web/src/web.rs
@@ -68,7 +68,7 @@ pub fn start() {
if let Some(el) = document.get_element_by_id("photocraft_loading") {
match result {
Ok(()) => el.remove(),
- Err(e) => el.set_inner_html(&format!("<p>Photocraft failed to start: {e:?}</p><p>A browser with WebGPU or WebGL2 is required.</p>")),
+ Err(e) => el.set_inner_html(&format!("<p>PhotoCraft failed to start: {e:?}</p><p>A browser with WebGPU or WebGL2 is required.</p>")),
}
}
});
diff --git a/apps/photocraft/build.rs b/apps/photocraft/build.rs
index cb6219497..cbba62258 100644
--- a/apps/photocraft/build.rs
+++ b/apps/photocraft/build.rs
@@ -13,10 +13,10 @@ fn main() {
}
let mut res = winresource::WindowsResource::new();
res.set_icon("../../assets/app-icon/photocraft.ico")
- .set("ProductName", "Photocraft")
- .set("FileDescription", "Photocraft image editor")
+ .set("ProductName", "PhotoCraft")
+ .set("FileDescription", "PhotoCraft image editor")
.set("CompanyName", "Learning Machines LLC")
- .set("LegalCopyright", "Copyright (c) the Photocraft authors. MIT OR Apache-2.0.")
+ .set("LegalCopyright", "Copyright (c) the PhotoCraft authors. MIT OR Apache-2.0.")
.set("OriginalFilename", "photocraft.exe")
.set("InternalName", "photocraft");
if let Err(e) = res.compile() {
diff --git a/assets/app-icon/hicolor/128x128/apps/ai.storyteller.Photocraft.png b/assets/app-icon/hicolor/128x128/apps/ai.storyteller.photocraft.png
similarity index 100%
rename from assets/app-icon/hicolor/128x128/apps/ai.storyteller.Photocraft.png
rename to assets/app-icon/hicolor/128x128/apps/ai.storyteller.photocraft.png
diff --git a/assets/app-icon/hicolor/16x16/apps/ai.storyteller.Photocraft.png b/assets/app-icon/hicolor/16x16/apps/ai.storyteller.photocraft.png
similarity index 100%
rename from assets/app-icon/hicolor/16x16/apps/ai.storyteller.Photocraft.png
rename to assets/app-icon/hicolor/16x16/apps/ai.storyteller.photocraft.png
diff --git a/assets/app-icon/hicolor/24x24/apps/ai.storyteller.Photocraft.png b/assets/app-icon/hicolor/24x24/apps/ai.storyteller.photocraft.png
similarity index 100%
rename from assets/app-icon/hicolor/24x24/apps/ai.storyteller.Photocraft.png
rename to assets/app-icon/hicolor/24x24/apps/ai.storyteller.photocraft.png
diff --git a/assets/app-icon/hicolor/256x256/apps/ai.storyteller.Photocraft.png b/assets/app-icon/hicolor/256x256/apps/ai.storyteller.photocraft.png
similarity index 100%
rename from assets/app-icon/hicolor/256x256/apps/ai.storyteller.Photocraft.png
rename to assets/app-icon/hicolor/256x256/apps/ai.storyteller.photocraft.png
diff --git a/assets/app-icon/hicolor/32x32/apps/ai.storyteller.Photocraft.png b/assets/app-icon/hicolor/32x32/apps/ai.storyteller.photocraft.png
similarity index 100%
rename from assets/app-icon/hicolor/32x32/apps/ai.storyteller.Photocraft.png
rename to assets/app-icon/hicolor/32x32/apps/ai.storyteller.photocraft.png
diff --git a/assets/app-icon/hicolor/48x48/apps/ai.storyteller.Photocraft.png b/assets/app-icon/hicolor/48x48/apps/ai.storyteller.photocraft.png
similarity index 100%
rename from assets/app-icon/hicolor/48x48/apps/ai.storyteller.Photocraft.png
rename to assets/app-icon/hicolor/48x48/apps/ai.storyteller.photocraft.png
diff --git a/assets/app-icon/hicolor/512x512/apps/ai.storyteller.Photocraft.png b/assets/app-icon/hicolor/512x512/apps/ai.storyteller.photocraft.png
similarity index 100%
rename from assets/app-icon/hicolor/512x512/apps/ai.storyteller.Photocraft.png
rename to assets/app-icon/hicolor/512x512/apps/ai.storyteller.photocraft.png
diff --git a/assets/app-icon/hicolor/64x64/apps/ai.storyteller.Photocraft.png b/assets/app-icon/hicolor/64x64/apps/ai.storyteller.photocraft.png
similarity index 100%
rename from assets/app-icon/hicolor/64x64/apps/ai.storyteller.Photocraft.png
rename to assets/app-icon/hicolor/64x64/apps/ai.storyteller.photocraft.png
diff --git a/assets/app-icon/hicolor/scalable/apps/ai.storyteller.Photocraft.svg b/assets/app-icon/hicolor/scalable/apps/ai.storyteller.photocraft.svg
similarity index 100%
rename from assets/app-icon/hicolor/scalable/apps/ai.storyteller.Photocraft.svg
rename to assets/app-icon/hicolor/scalable/apps/ai.storyteller.photocraft.svg
diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs
index deeeff9f1..1cb34a5f3 100644
--- a/crates/ui-egui/src/canvas.rs
+++ b/crates/ui-egui/src/canvas.rs
@@ -563,7 +563,7 @@ fn start_screen(app: &mut PhotocraftApp, ui: &mut egui::Ui) {
ui.scope_builder(egui::UiBuilder::new().max_rect(card), |ui| {
ui.vertical_centered(|ui| {
ui.horizontal(|ui| {
- let title = ui.painter().layout_no_wrap("Photocraft".into(), crate::theme::semibold(38.0), t.text);
+ let title = ui.painter().layout_no_wrap("PhotoCraft".into(), crate::theme::semibold(38.0), t.text);
let by = ui.painter().layout_no_wrap("open source".into(), egui::FontId::proportional(13.0), t.text_faint);
let total = title.size().x + by.size().x + 10.0;
ui.add_space(((card.width() - total) / 2.0).max(0.0));
diff --git a/crates/ui-egui/src/panels.rs b/crates/ui-egui/src/panels.rs
index 32aa67f26..d7bf28350 100644
--- a/crates/ui-egui/src/panels.rs
+++ b/crates/ui-egui/src/panels.rs
@@ -202,7 +202,7 @@ pub fn title_bar(app: &mut PhotocraftApp, ui: &mut egui::Ui) {
let max = ui.ctx().input(|i| i.viewport().maximized.unwrap_or(false));
ui.ctx().send_viewport_cmd(egui::ViewportCommand::Maximized(!max));
}
- let title = app.session.active().map(|d| format!("{}{}", d.doc.name, if d.is_dirty() { " •" } else { "" })).unwrap_or_else(|| "Photocraft".into());
+ let title = app.session.active().map(|d| format!("{}{}", d.doc.name, if d.is_dirty() { " •" } else { "" })).unwrap_or_else(|| "PhotoCraft".into());
ui.painter().text(full.center(), Align2::CENTER_CENTER, title, theme::medium(13.0), t.text_dim);
ui.horizontal_centered(|ui| {
crate::menus::menu_bar(app, ui);
diff --git a/docs/release-playbook.md b/docs/release-playbook.md
index 9c3a0d76e..c6724ece3 100644
--- a/docs/release-playbook.md
+++ b/docs/release-playbook.md
@@ -1,15 +1,21 @@
# Release playbook for storytold apps
-How every storytold desktop/web app (PhotoCraft, DrawCraft, FilmCraft, LightCraft, PrintCraft,
-DesignCraft, EffectsCraft, and later ArtCraft) builds signed release binaries in CI. Photocraft is
-the reference implementation: copy its `.github/workflows/release.yml`, `packaging/` and
-`xtask version` code, then rename. Photocraft-specific details live in its `docs/releasing.md`.
+How every crafting app (DesignCraft, DrawCraft, EffectCraft, FilmCraft, LightCraft,
+PhotoCraft, PrintCraft; later ArtCraft and ArtCraftX) builds signed release binaries in CI.
+PhotoCraft is the reference implementation: copy its `.github/workflows/release.yml`, `packaging/`
+and `xtask version` code into your repo, then rename. Repos never share code (see
+`../craftrules/README.md`): each app keeps and evolves its own copy. PhotoCraft-specific details
+live in its `docs/releasing.md`.
+
+This playbook is meant to move to `craftrules/release/playbook.md` as the canonical shared copy.
+Until then, this file is the source.
Agents: follow this document step by step, and keep each app's setup identical to it except for
-the names in §9. If you improve the recipe in one app, update this playbook in photocraft too.
+the names in §9. If you improve the recipe in one app, update the playbook too.
-**Naming.** Display names are PascalCase with a capital "C": **PhotoCraft, DrawCraft, FilmCraft,
-LightCraft, PrintCraft, DesignCraft, EffectsCraft, ArtCraft**. Use them for:
+**Naming.** Display names follow `{Function}Craft`, PascalCase with a capital "C": **ArtCraft,
+ArtCraftX, DesignCraft, DrawCraft, EffectCraft, FilmCraft, LightCraft, PhotoCraft, PrintCraft**.
+Use them for:
- release names (`PhotoCraft v0.2.0`);
- the macOS bundle (`PhotoCraft.app`, `CFBundleName`/`CFBundleDisplayName`), the DMG volume name;
- the Windows product name, Start Menu shortcut and installer title;
@@ -212,28 +218,14 @@ signing material is still being identified, because artcraft never signed its Wi
6. Document anything app-specific in that app's `docs/releasing.md`. Improvements to the recipe
itself go back into this playbook.
-## 10. Shared reusable workflow (planned)
-
-So apps don't each carry a copy of the pipeline, the photocraft workflow will be lifted into a
-reusable workflow in a shared repo (`storytold/release-kit`, `on: workflow_call`). Each app's
-`release.yml` then shrinks to a caller:
-
-```yaml
-jobs:
- release:
- uses: storytold/release-kit/.github/workflows/rust-app-release.yml@v1
- with:
- app-name: DrawCraft # display name (PascalCase), release name "DrawCraft v<version>"
- package: drawcraft # cargo package of the desktop app
- bundle-id: ai.storyteller.drawcraft
- web-dir: apps/drawcraft-web # omit if there is no web build
- wix-upgrade-code: "<GUID generated once for this app>"
- secrets: inherit
-```
+## 10. Copy, don't depend
-The called jobs declare `environment: release`, so they read the *caller's* `release`
-environment secrets, and the branch rule from §3 still applies. Until release-kit exists, copy the
-files from photocraft as described in §9.
+Crafting apps never share code (craftrules README). There is deliberately **no** shared reusable
+workflow or packaging library: each app copies PhotoCraft's files and owns them. To make copying
+easy, the reference implementation keeps every app-specific value (display name, package, bundle
+id, web dir, WiX upgrade GUID, file types) in one clearly marked place at the top of the workflow
+and scripts. When an app finds a better recipe, it updates this playbook (and a learning in
+craftrules) so the others can adopt the idea in their own copies.
## 11. Prompt for an app's agent
diff --git a/docs/releasing.md b/docs/releasing.md
index 2d7562880..2bfb795ee 100644
--- a/docs/releasing.md
+++ b/docs/releasing.md
@@ -1,8 +1,12 @@
-# Releasing Photocraft
+# Releasing PhotoCraft
Every push to the `release` branch runs `.github/workflows/release.yml`. The workflow builds
signed installers for macOS, Windows, Linux and the web, then creates or updates a **draft**
-GitHub Release named `Photocraft v<version>`. Nobody sees a draft until a maintainer publishes it.
+GitHub Release named `PhotoCraft v<version>`. Nobody sees a draft until a maintainer publishes it.
+
+This is PhotoCraft's implementation of the shared
+[release playbook](release-playbook.md). User-facing names say **PhotoCraft**. Files, binaries
+and ids stay lowercase (`photocraft-<version>-<platform>-<arch>.<ext>`, `ai.storyteller.photocraft`).
## Cutting a release
@@ -17,7 +21,7 @@ GitHub Release named `Photocraft v<version>`. Nobody sees a draft until a mainta
Commit the change (`Cargo.toml` + `Cargo.lock`) through the normal review flow.
2. **Merge `main` into `release`** (or fast-forward it) and push. The workflow starts by itself.
3. **Wait for the draft.** After about 30 to 45 minutes (notarization is the slow part), the
- Releases page has a draft `Photocraft v0.2.0`, tagged `v0.2.0` on the pushed commit, with
+ Releases page has a draft `PhotoCraft v0.2.0`, tagged `v0.2.0` on 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 look at the job summaries. Any
`::warning::` there means a signing secret was missing and that artifact is unsigned.
@@ -37,26 +41,26 @@ in the dialog.
| Platform | Artifacts | Built on |
|---|---|---|
-| macOS 11+ (universal: Apple silicon + Intel) | `Photocraft-<v>-macos-universal.dmg`, `photocraft-cli-<v>-macos-universal.zip` | `macos-15` |
-| Windows 10+ x64 | `Photocraft-<v>-windows-x64.msi`, `…-windows-x64-portable.zip` | `windows-latest` |
-| Windows 10+ x86 (32-bit) | `Photocraft-<v>-windows-x86.msi`, `…-windows-x86-portable.zip` | `windows-latest` |
-| Linux x86_64 | `Photocraft-<v>-x86_64.AppImage`, `photocraft_<v>-1_amd64.deb`, `photocraft-<v>-1.x86_64.rpm`, `photocraft-<v>-linux-x86_64.tar.gz` | `ubuntu-22.04` |
-| Linux aarch64 | the same four, for `aarch64` / `arm64` | `ubuntu-22.04-arm` |
+| macOS 11+ (universal: Apple silicon + Intel) | `photocraft-<v>-macos-universal.dmg`, `photocraft-cli-<v>-macos-universal.zip` | `macos-15` |
+| Windows 10+ x64 | `photocraft-<v>-windows-x64.msi`, `photocraft-<v>-windows-x64-portable.zip` | `windows-latest` |
+| Windows 10+ x86 (32-bit) | `photocraft-<v>-windows-x86.msi`, `photocraft-<v>-windows-x86-portable.zip` | `windows-latest` |
+| Linux x86_64 | `photocraft-<v>-linux-x86_64.{AppImage,deb,rpm,tar.gz}` | `ubuntu-22.04` |
+| Linux aarch64 | `photocraft-<v>-linux-aarch64.{AppImage,deb,rpm,tar.gz}` | `ubuntu-22.04-arm` |
| Web | `photocraft-web-<v>.zip` (static site; see [`packaging/web/README.md`](../packaging/web/README.md)) | `ubuntu-latest` |
Every binary reports its version, the commit and the build date: `photocraft --version`,
-`photocraft-cli --version`, and *Help › About Photocraft*. CI sets `PHOTOCRAFT_BUILD_SHA` and
+`photocraft-cli --version`, and *Help › About PhotoCraft*. CI sets `PHOTOCRAFT_BUILD_SHA` and
`PHOTOCRAFT_BUILD_DATE`, and `crates/engine/src/build_info.rs` reads them at compile time. A plain
`cargo build` doesn't set them and reports `0.2.0 (dev build)`.
### macOS
`packaging/macos/package.sh` builds `aarch64-apple-darwin` and `x86_64-apple-darwin` with
-`MACOSX_DEPLOYMENT_TARGET=11.0`, joins them with `lipo`, and assembles `Photocraft.app`:
+`MACOSX_DEPLOYMENT_TARGET=11.0`, joins them with `lipo`, and assembles `PhotoCraft.app`:
- `Info.plist` is generated from `Info.plist.in`. The bundle id is `ai.storyteller.photocraft`.
The plist sets `LSMinimumSystemVersion` 11.0, `NSHighResolutionCapable`, and document types:
- `.pcraft` (Owner), plus PSD/PSB and the image formats Photocraft reads (Alternate, so it never
+ `.pcraft` (Owner), plus PSD/PSB and the image formats PhotoCraft reads (Alternate, so it never
takes over Preview's defaults). The icon is `assets/app-icon/photocraft.icns`.
- **Signing** goes inside-out with the hardened runtime and a secure timestamp. The executable
is signed first, then the bundle. There's no `--deep` on the final signature. The
@@ -74,7 +78,7 @@ That's enough to check the bundle and the DMG on your own Mac:
```sh
packaging/macos/package.sh # universal; needs both rustup targets
packaging/macos/package.sh --arch aarch64 # quicker, host-only
-open dist/release/Photocraft-*-macos-*.dmg
+open dist/release/photocraft-*-macos-*.dmg
```
### Windows
@@ -88,8 +92,8 @@ goes in `CARGO_TARGET_<TRIPLE>_RUSTFLAGS`, so host build scripts aren't affected
VERSIONINFO with the `winresource` crate. It only does this when targeting Windows. Elsewhere
it's a no-op, and the web build doesn't touch that crate.
- Release builds use the GUI subsystem, so Start Menu launches don't open a console window.
-- `Photocraft.wxs` (WiX v5) is a per-machine install into Program Files with an advertised
- Start Menu shortcut. Photocraft becomes the default app for `.pcraft` and is listed under
+- `photocraft.wxs` (WiX v5) is a per-machine install into Program Files with an advertised
+ Start Menu shortcut. PhotoCraft becomes the default app for `.pcraft` and is listed under
"Open with" for PSD/PSB and image files. It also registers App Paths (Win+R `photocraft`).
The MSI version is the numeric `X.Y.Z`, because MSI has no pre-release field. Same-version
upgrades are allowed so that release candidates replace each other.
@@ -108,7 +112,7 @@ Locally on Windows: `dotnet tool install -g wix --version 5.0.2`, then
### Linux
`packaging/linux/package.sh` stages one FHS tree and makes every format from it. The tree
-holds both binaries, `ai.storyteller.Photocraft.desktop`, hicolor icons from 16 px to 512 px
+holds both binaries, `ai.storyteller.photocraft.desktop`, hicolor icons from 16 px to 512 px
plus a scalable SVG, AppStream metainfo, and a shared-mime-info file for `.pcraft`, `.psb` and
`.qoi`.
@@ -125,7 +129,7 @@ Why these formats:
it can build both formats on Ubuntu.
- **.tar.gz** is for people who manage their own `/opt` or `~/.local`.
- **Flatpak** is the route into Flathub, GNOME Software and KDE Discover.
- `packaging/linux/flatpak/ai.storyteller.Photocraft.yml` is ready for a Flathub submission.
+ `packaging/linux/flatpak/ai.storyteller.photocraft.yml` is ready for a Flathub submission.
CI only validates it. A real build needs vendored crate sources (`cargo-sources.json` from
`flatpak-cargo-generator.py`) and adds 20+ minutes per architecture. Build it by hand with
the commands in the manifest's header.
diff --git a/docs/roadmap.md b/docs/roadmap.md
index 54756799b..bcca47709 100644
--- a/docs/roadmap.md
+++ b/docs/roadmap.md
@@ -1,6 +1,6 @@
# Roadmap
-Status legend: ✅ done · 🟡 in progress · ⬜ not started. Updated 2026-09-30.
+Status legend: ✅ done · 🟡 in progress · ⬜ not started. Updated 2026-10-01.
**Parity metric:** `cargo xtask parity` measures how much of Photoshop's menu tree is live and
writes [`parity.md`](parity.md). It is the headline number for "how close are we", next to the PSD
@@ -20,22 +20,28 @@ composite oracle and the test count.
| M9 Text, vector, styles | 🟡 | type engine + Warp Text, shapes / pen / paths, all 10 effects on CPU and GPU (parity ≤1/255, 30/31 corpus effect files on the GPU) |
| M10 Smart features | 🟡 | classical Select Subject / Object, content-aware fill and scale, healing, auto-align / auto-blend; ML backend not started |
| M11 Automation + formats | 🟡 | MCP (headless + live bridge), batch, Image Processor, prefs over MCP; DoD test passes (10 agent tasks over MCP, `automation/tests/agent_tasks.rs`); JP2 / DICOM / DPX / C2PA pending |
-| M12 Pro parity | 🟡 | CMYK / Lab / Indexed / Bitmap / Duotone, ICC + soft proofing, channels + Quick Mask, smart-object stack modes; print, HDR, photomerge, timeline, artboards, layer comps pending |
+| M12 Pro parity | 🟡 | CMYK / Lab / Indexed / Bitmap / Duotone, ICC + soft proofing, channels + Quick Mask, smart-object stack modes, artboards, layer comps; print, HDR, photomerge, timeline pending |
-**Menu parity: 518 / 625 (82.9%)** on 2026-10-01, up from 224 (35.8%) the day before. See [`parity.md`](parity.md).
+**Menu parity: 532 / 625 (85.1%)** on 2026-10-01, up from 224 (35.8%) the day before. See [`parity.md`](parity.md).
## Current focus (infrastructure before the long tail)
-Landed on 2026-10-01: multi-layer selection, live smart objects + smart filters, alpha channels +
-Quick Mask, patterns, Warp, preferences, snapping, ~33 filters, the remaining core adjustments.
+Landed on 2026-10-01:
+- multi-layer selection, live smart objects + smart filters, alpha channels + Quick Mask;
+- patterns, Warp, preferences, snapping, ~33 filters, the remaining core adjustments;
+- Layer Comps and Artboards, GPU layer effects, Liquify / Puppet Warp / Perspective Warp;
+- the PSD fidelity pass (oracle 102 → 111), the M11 MCP acceptance test, and the release pipeline
+ (`docs/releasing.md`).
Next:
-1. **Fidelity**: the PSD oracle (111/170). Bevel/emboss, satin, inner glow; modern
+1. **First signed release**: push to `release`, verify notarization and the installers, and fix CI
+ (`docs/releasing.md`). Windows code-signing material still needs to be obtained.
+2. **Fidelity**: the PSD oracle (111/170). Bevel/emboss, satin, inner glow; modern
Brightness/Contrast and grayscale Levels curves; channel restrictions (`brst`); Lab-space
- blending; Photoshop smart filters in `SoLd`.
-2. **Layer Comps and Artboards** (File/Layer/View items and export depend on them).
-3. **GPU layer effects** (the last big CPU fallback on the canvas).
-4. **Puppet Warp, Perspective Warp, Liquify, Vanishing Point, Camera Raw / Lens Correction**.
+ blending; Photoshop smart filters in `SoLd`. Also the GPU/CPU Color Burn edge case (51/255 at
+ backdrop 1, source 0).
+3. **Remaining GPU fallbacks**: vector masks, layers clipped to pass-through groups, artboards.
+4. **Vanishing Point, Camera Raw / Lens Correction, Face-Aware Liquify** (needs a landmark model).
5. **Panels**: Patterns, Styles, Glyphs, Character/Paragraph Styles, Timeline; Custom Shape tool.
6. Print, Photomerge, Merge to HDR, video layers.
diff --git a/packaging/icons.sh b/packaging/icons.sh
index 43bdd5b37..de84786e7 100755
--- a/packaging/icons.sh
+++ b/packaging/icons.sh
@@ -26,10 +26,10 @@ render "$SVG" 1024 "$DIR/photocraft-1024.png"
# Linux hicolor theme.
for s in 16 24 32 48 64 128 256 512; do
mkdir -p "$DIR/hicolor/${s}x${s}/apps"
- render "$TIGHT" "$s" "$DIR/hicolor/${s}x${s}/apps/ai.storyteller.Photocraft.png"
+ render "$TIGHT" "$s" "$DIR/hicolor/${s}x${s}/apps/ai.storyteller.photocraft.png"
done
mkdir -p "$DIR/hicolor/scalable/apps"
-cp "$SVG" "$DIR/hicolor/scalable/apps/ai.storyteller.Photocraft.svg"
+cp "$SVG" "$DIR/hicolor/scalable/apps/ai.storyteller.photocraft.svg"
# Windows .ico.
ICO_PNGS=()
diff --git a/packaging/linux/ai.storyteller.Photocraft.desktop b/packaging/linux/ai.storyteller.photocraft.desktop
similarity index 93%
rename from packaging/linux/ai.storyteller.Photocraft.desktop
rename to packaging/linux/ai.storyteller.photocraft.desktop
index bff6be4cf..d4b6393dd 100644
--- a/packaging/linux/ai.storyteller.Photocraft.desktop
+++ b/packaging/linux/ai.storyteller.photocraft.desktop
@@ -1,11 +1,11 @@
[Desktop Entry]
Type=Application
-Name=Photocraft
+Name=PhotoCraft
GenericName=Image Editor
Comment=Edit photos and layered PSD documents
Exec=photocraft %F
TryExec=photocraft
-Icon=ai.storyteller.Photocraft
+Icon=ai.storyteller.photocraft
Terminal=false
StartupNotify=true
StartupWMClass=photocraft
diff --git a/packaging/linux/ai.storyteller.Photocraft.metainfo.xml.in b/packaging/linux/ai.storyteller.photocraft.metainfo.xml.in
similarity index 91%
rename from packaging/linux/ai.storyteller.Photocraft.metainfo.xml.in
rename to packaging/linux/ai.storyteller.photocraft.metainfo.xml.in
index aed13cd3a..2bd2d0227 100644
--- a/packaging/linux/ai.storyteller.Photocraft.metainfo.xml.in
+++ b/packaging/linux/ai.storyteller.photocraft.metainfo.xml.in
@@ -2,17 +2,17 @@
<!-- AppStream metadata (software centres, Flathub). Template: package.sh and the Flatpak
manifest substitute @VERSION@ and @DATE@ from Cargo.toml and the build date. -->
<component type="desktop-application">
- <id>ai.storyteller.Photocraft</id>
+ <id>ai.storyteller.photocraft</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT OR Apache-2.0</project_license>
- <name>Photocraft</name>
+ <name>PhotoCraft</name>
<summary>Edit photos and layered Photoshop documents</summary>
<developer id="ai.storyteller">
<name>Learning Machines LLC</name>
</developer>
<description>
<p>
- Photocraft is an open-source, native image editor that works the way Photoshop users
+ PhotoCraft is an open-source, native image editor that works the way Photoshop users
expect: familiar menus, shortcuts, panels and tools, with layers, masks, adjustment
layers, layer styles, type and brushes.
</p>
@@ -23,8 +23,8 @@
<li>Every action is a command, scriptable from a CLI, a JSON control channel and an MCP server</li>
</ul>
</description>
- <launchable type="desktop-id">ai.storyteller.Photocraft.desktop</launchable>
- <icon type="stock">ai.storyteller.Photocraft</icon>
+ <launchable type="desktop-id">ai.storyteller.photocraft.desktop</launchable>
+ <icon type="stock">ai.storyteller.photocraft</icon>
<url type="homepage">https://github.com/storytold/photocraft</url>
<url type="bugtracker">https://github.com/storytold/photocraft/issues</url>
<url type="vcs-browser">https://github.com/storytold/photocraft</url>
diff --git a/packaging/linux/ai.storyteller.Photocraft.mime.xml b/packaging/linux/ai.storyteller.photocraft.mime.xml
similarity index 91%
rename from packaging/linux/ai.storyteller.Photocraft.mime.xml
rename to packaging/linux/ai.storyteller.photocraft.mime.xml
index 4f640963e..084a13438 100644
--- a/packaging/linux/ai.storyteller.Photocraft.mime.xml
+++ b/packaging/linux/ai.storyteller.photocraft.mime.xml
@@ -3,8 +3,8 @@
Installed to /usr/share/mime/packages/ (update-mime-database runs on install). -->
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-photocraft">
- <comment>Photocraft document</comment>
- <icon name="ai.storyteller.Photocraft"/>
+ <comment>PhotoCraft document</comment>
+ <icon name="ai.storyteller.photocraft"/>
<glob pattern="*.pcraft"/>
</mime-type>
<mime-type type="image/x-psb">
diff --git a/packaging/linux/flatpak/ai.storyteller.Photocraft.yml b/packaging/linux/flatpak/ai.storyteller.photocraft.yml
similarity index 76%
rename from packaging/linux/flatpak/ai.storyteller.Photocraft.yml
rename to packaging/linux/flatpak/ai.storyteller.photocraft.yml
index a6fbe1945..c05ea7240 100644
--- a/packaging/linux/flatpak/ai.storyteller.Photocraft.yml
+++ b/packaging/linux/flatpak/ai.storyteller.photocraft.yml
@@ -1,14 +1,14 @@
-# Flatpak manifest for Photocraft, ready for a Flathub submission.
+# Flatpak manifest for PhotoCraft, ready for a Flathub submission.
#
# Flatpak builds run offline, so the crate sources must be vendored first. From the repo root:
#
# curl -fsSLO https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/master/cargo/flatpak-cargo-generator.py
# python3 flatpak-cargo-generator.py Cargo.lock -o packaging/linux/flatpak/cargo-sources.json
-# flatpak-builder --user --install --force-clean build-flatpak packaging/linux/flatpak/ai.storyteller.Photocraft.yml
-# flatpak run ai.storyteller.Photocraft
+# flatpak-builder --user --install --force-clean build-flatpak packaging/linux/flatpak/ai.storyteller.photocraft.yml
+# flatpak run ai.storyteller.photocraft
#
# For Flathub, replace the `dir` source with a `git` source pinned to a release tag and commit.
-id: ai.storyteller.Photocraft
+id: ai.storyteller.photocraft
runtime: org.freedesktop.Platform
runtime-version: '25.08'
sdk: org.freedesktop.Sdk
@@ -36,14 +36,14 @@ modules:
build-commands:
- cargo --offline build --release --locked -p photocraft
- install -Dm755 target/release/photocraft /app/bin/photocraft
- - install -Dm644 packaging/linux/ai.storyteller.Photocraft.desktop /app/share/applications/ai.storyteller.Photocraft.desktop
- - install -Dm644 packaging/linux/ai.storyteller.Photocraft.mime.xml /app/share/mime/packages/ai.storyteller.Photocraft.xml
+ - install -Dm644 packaging/linux/ai.storyteller.photocraft.desktop /app/share/applications/ai.storyteller.photocraft.desktop
+ - install -Dm644 packaging/linux/ai.storyteller.photocraft.mime.xml /app/share/mime/packages/ai.storyteller.photocraft.xml
- mkdir -p /app/share/icons && cp -R assets/app-icon/hicolor /app/share/icons/
- >-
version=$(awk '/^\[/{p=($0=="[workspace.package]");next} p&&$1=="version"{gsub(/[" ]/,"",$3);print $3;exit}' Cargo.toml);
install -d /app/share/metainfo;
sed -e "s/@VERSION@/$version/" -e "s/@DATE@/$(date -u +%Y-%m-%d)/"
- packaging/linux/ai.storyteller.Photocraft.metainfo.xml.in > /app/share/metainfo/ai.storyteller.Photocraft.metainfo.xml
+ packaging/linux/ai.storyteller.photocraft.metainfo.xml.in > /app/share/metainfo/ai.storyteller.photocraft.metainfo.xml
sources:
- type: dir
path: ../../..
diff --git a/packaging/linux/package.sh b/packaging/linux/package.sh
index 0f4dd7b20..4b1dfe823 100755
--- a/packaging/linux/package.sh
+++ b/packaging/linux/package.sh
@@ -1,10 +1,10 @@
#!/usr/bin/env bash
-# Build and package Photocraft for Linux:
+# Build and package PhotoCraft for Linux (<arch> is x86_64 or aarch64):
#
-# $DIST/Photocraft-<version>-<arch>.AppImage runs on any distro with glibc >= the build host's
-# $DIST/photocraft_<version>-1_<debarch>.deb Debian, Ubuntu, Mint, Pop!_OS, ...
-# $DIST/photocraft-<version>-1.<arch>.rpm Fedora, openSUSE, RHEL, ...
-# $DIST/photocraft-<version>-linux-<arch>.tar.gz plain FHS-style tree (bin/, share/)
+# $DIST/photocraft-<version>-linux-<arch>.AppImage any distro with glibc >= the build host's
+# $DIST/photocraft-<version>-linux-<arch>.deb Debian, Ubuntu, Mint, Pop!_OS, ...
+# $DIST/photocraft-<version>-linux-<arch>.rpm Fedora, openSUSE, RHEL, ...
+# $DIST/photocraft-<version>-linux-<arch>.tar.gz plain FHS-style tree (bin/, share/)
#
# Usage: packaging/linux/package.sh [--skip-build] [--formats "appimage deb rpm tar"]
#
@@ -15,7 +15,7 @@ set -euo pipefail
# shellcheck source=../env.sh
. "$(dirname "${BASH_SOURCE[0]}")/../env.sh"
HERE="$ROOT/packaging/linux"
-APP_ID=ai.storyteller.Photocraft
+APP_ID=ai.storyteller.photocraft
SKIP_BUILD=0
FORMATS="appimage deb rpm tar"
@@ -34,9 +34,10 @@ case "$ARCH" in
aarch64 | arm64) ARCH=aarch64; DEB_ARCH=arm64 ;;
*) echo "unsupported architecture $ARCH" >&2; exit 2 ;;
esac
-export PHOTOCRAFT_MAINTAINER="${PHOTOCRAFT_MAINTAINER:-Photocraft maintainers <[email protected]>}"
+export PHOTOCRAFT_MAINTAINER="${PHOTOCRAFT_MAINTAINER:-PhotoCraft maintainers <[email protected]>}"
+BASENAME="photocraft-$VERSION-linux-$ARCH"
-echo "==> Photocraft $VERSION for Linux $ARCH ($FORMATS)"
+echo "==> PhotoCraft $VERSION for Linux $ARCH ($FORMATS)"
if [ "$SKIP_BUILD" = 0 ]; then
(cd "$ROOT" && cargo build --release --locked -p photocraft -p photocraft-cli)
@@ -71,11 +72,10 @@ has() { case " $FORMATS " in *" $1 "*) return 0 ;; *) return 1 ;; esac; }
# ---- .tar.gz ------------------------------------------------------------------------------------
if has tar; then
- NAME="photocraft-$VERSION-linux-$ARCH"
mkdir -p "$WORK/tar"
- cp -R "$STAGE/usr" "$WORK/tar/$NAME"
- tar -C "$WORK/tar" -czf "$DIST/$NAME.tar.gz" "$NAME"
- echo "wrote $DIST/$NAME.tar.gz"
+ cp -R "$STAGE/usr" "$WORK/tar/$BASENAME"
+ tar -C "$WORK/tar" -czf "$DIST/$BASENAME.tar.gz" "$BASENAME"
+ echo "wrote $DIST/$BASENAME.tar.gz"
fi
# ---- .deb / .rpm --------------------------------------------------------------------------------
@@ -84,13 +84,13 @@ if has deb || has rpm; then
export STAGE VERSION
export NFPM_ARCH="$DEB_ARCH"
for fmt in deb rpm; do
- if has "$fmt"; then (cd "$ROOT" && nfpm package -f "$HERE/nfpm.yaml" -p "$fmt" -t "$DIST/"); fi
+ if has "$fmt"; then (cd "$ROOT" && nfpm package -f "$HERE/nfpm.yaml" -p "$fmt" -t "$DIST/$BASENAME.$fmt"); fi
done
fi
# ---- AppImage -----------------------------------------------------------------------------------
if has appimage; then
- APPDIR="$WORK/Photocraft.AppDir"
+ APPDIR="$WORK/PhotoCraft.AppDir"
cp -R "$STAGE" "$APPDIR"
mv "$APPDIR/usr/share/doc" "$WORK/doc-unused"
ln -s usr/bin/photocraft "$APPDIR/AppRun"
@@ -106,7 +106,7 @@ if has appimage; then
chmod +x "$TOOL"
fi
fi
- OUT="$DIST/Photocraft-$VERSION-$ARCH.AppImage"
+ OUT="$DIST/$BASENAME.AppImage"
# Extract-and-run: works without FUSE (containers, CI). The output embeds the static runtime,
# so users don't need libfuse2 either.
ARCH="$ARCH" APPIMAGE_EXTRACT_AND_RUN=1 "$TOOL" --no-appstream "$APPDIR" "$OUT"
diff --git a/packaging/macos/Info.plist.in b/packaging/macos/Info.plist.in
index bfba49860..14e4d5a04 100644
--- a/packaging/macos/Info.plist.in
+++ b/packaging/macos/Info.plist.in
@@ -7,11 +7,11 @@
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
- <string>Photocraft</string>
+ <string>PhotoCraft</string>
<key>CFBundleName</key>
- <string>Photocraft</string>
+ <string>PhotoCraft</string>
<key>CFBundleExecutable</key>
- <string>photocraft</string>
+ <string>PhotoCraft</string>
<key>CFBundleIdentifier</key>
<string>ai.storyteller.photocraft</string>
<key>CFBundleInfoDictionaryVersion</key>
@@ -24,12 +24,12 @@
<string>@SHORT_VERSION@</string>
<key>CFBundleVersion</key>
<string>@SHORT_VERSION@</string>
- <key>PhotocraftVersion</key>
+ <key>PhotoCraftVersion</key>
<string>@VERSION@</string>
- <key>PhotocraftBuildCommit</key>
+ <key>PhotoCraftBuildCommit</key>
<string>@BUILD_SHA@</string>
<key>CFBundleIconFile</key>
- <string>photocraft</string>
+ <string>PhotoCraft</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.graphics-design</string>
<!-- Must match MACOSX_DEPLOYMENT_TARGET in package.sh. Big Sur is the first release on
@@ -43,7 +43,7 @@
<key>NSRequiresAquaSystemAppearance</key>
<false/>
<key>NSHumanReadableCopyright</key>
- <string>Copyright © the Photocraft authors. MIT OR Apache-2.0.</string>
+ <string>Copyright © the PhotoCraft authors. MIT OR Apache-2.0.</string>
<!-- Photocraft's own format. -->
<key>UTExportedTypeDeclarations</key>
@@ -52,14 +52,14 @@
<key>UTTypeIdentifier</key>
<string>ai.storyteller.photocraft.document</string>
<key>UTTypeDescription</key>
- <string>Photocraft Document</string>
+ <string>PhotoCraft Document</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
<string>public.image</string>
</array>
<key>UTTypeIconFile</key>
- <string>photocraft</string>
+ <string>PhotoCraft</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
@@ -110,13 +110,13 @@
<array>
<dict>
<key>CFBundleTypeName</key>
- <string>Photocraft Document</string>
+ <string>PhotoCraft Document</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>CFBundleTypeIconFile</key>
- <string>photocraft</string>
+ <string>PhotoCraft</string>
<key>LSItemContentTypes</key>
<array><string>ai.storyteller.photocraft.document</string></array>
</dict>
diff --git a/packaging/macos/import-cert.sh b/packaging/macos/import-cert.sh
index d373672fa..236f44322 100755
--- a/packaging/macos/import-cert.sh
+++ b/packaging/macos/import-cert.sh
@@ -8,6 +8,7 @@
#
# Missing certificate: prints a warning and exits 0, so package.sh falls back to ad-hoc signing.
set -euo pipefail
+umask 077
# shellcheck source=../env.sh
. "$(dirname "${BASH_SOURCE[0]}")/../env.sh"
@@ -21,11 +22,12 @@ KEYCHAIN="$TMP/photocraft-signing.keychain-db"
CERT="$TMP/photocraft-signing.p12"
KC_PASS="${KEYCHAIN_PASSWORD:-$(openssl rand -hex 24)}"
+trap 'rm -f "$CERT"' EXIT
printf '%s' "$APPLE_CERTIFICATE" | base64 --decode >"$CERT"
security create-keychain -p "$KC_PASS" "$KEYCHAIN"
security set-keychain-settings -lut 21600 "$KEYCHAIN"
security unlock-keychain -p "$KC_PASS" "$KEYCHAIN"
-security import "$CERT" -P "${APPLE_CERTIFICATE_PASSWORD:-}" -A -t cert -f pkcs12 -k "$KEYCHAIN"
+security import "$CERT" -P "${APPLE_CERTIFICATE_PASSWORD:-}" -T /usr/bin/codesign -T /usr/bin/security -t cert -f pkcs12 -k "$KEYCHAIN"
rm -f "$CERT"
# Let codesign use the key without a UI prompt.
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$KC_PASS" "$KEYCHAIN" >/dev/null
diff --git a/packaging/macos/package.sh b/packaging/macos/package.sh
index 91b5f6d83..9e5bcb296 100755
--- a/packaging/macos/package.sh
+++ b/packaging/macos/package.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Build, sign and (optionally) notarize the macOS release artifacts:
#
-# $DIST/Photocraft-<version>-macos-<arch>.dmg Photocraft.app on a drag-to-Applications DMG
+# $DIST/photocraft-<version>-macos-<arch>.dmg PhotoCraft.app on a drag-to-Applications DMG
# $DIST/photocraft-cli-<version>-macos-<arch>.zip the headless CLI
#
# Usage: packaging/macos/package.sh [--arch universal|aarch64|x86_64] [--skip-build]
@@ -39,8 +39,8 @@ export MACOSX_DEPLOYMENT_TARGET=11.0
IDENTITY="${MACOS_SIGN_IDENTITY:--}"
SHORT_VERSION="${VERSION%%-*}"
WORK="$CARGO_TARGET_DIR/macos-package"
-APP="$WORK/Photocraft.app"
-DMG="$DIST/Photocraft-$VERSION-macos-$ARCH.dmg"
+APP="$WORK/PhotoCraft.app"
+DMG="$DIST/photocraft-$VERSION-macos-$ARCH.dmg"
CLI_ZIP="$DIST/photocraft-cli-$VERSION-macos-$ARCH.zip"
NOTARIZE=0
@@ -52,7 +52,7 @@ else
warn "macOS: APPLE_ID / APPLE_PASSWORD / APPLE_TEAM_ID incomplete; signed but not notarized"
fi
-echo "==> Photocraft $VERSION for macOS ($ARCH), identity: $IDENTITY, notarize: $NOTARIZE"
+echo "==> PhotoCraft $VERSION for macOS ($ARCH), identity: $IDENTITY, notarize: $NOTARIZE"
# ---- build -------------------------------------------------------------------------------------
if [ "$SKIP_BUILD" = 0 ]; then
@@ -97,11 +97,12 @@ notarize() {
fi
}
-# ---- Photocraft.app ----------------------------------------------------------------------------
+# ---- PhotoCraft.app ----------------------------------------------------------------------------
echo "==> assembling $APP"
mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources"
-cp "$WORK/bin/photocraft" "$APP/Contents/MacOS/photocraft"
-cp "$ROOT/assets/app-icon/photocraft.icns" "$APP/Contents/Resources/photocraft.icns"
+# Executable and icon carry the display name (CFBundleExecutable / CFBundleIconFile).
+cp "$WORK/bin/photocraft" "$APP/Contents/MacOS/PhotoCraft"
+cp "$ROOT/assets/app-icon/photocraft.icns" "$APP/Contents/Resources/PhotoCraft.icns"
sed -e "s/@VERSION@/$VERSION/g" -e "s/@SHORT_VERSION@/$SHORT_VERSION/g" \
-e "s/@BUILD_SHA@/${PHOTOCRAFT_BUILD_SHA:-unknown}/g" \
"$HERE/Info.plist.in" >"$APP/Contents/Info.plist"
@@ -110,13 +111,13 @@ printf 'APPL????' >"$APP/Contents/PkgInfo"
# Sign inside-out: nested code first, then the bundle itself (no --deep on the final signature).
# Today the only nested code is the main executable; frameworks/helpers would be signed here too.
-sign --options runtime --entitlements "$HERE/entitlements.plist" "$APP/Contents/MacOS/photocraft"
+sign --options runtime --entitlements "$HERE/entitlements.plist" "$APP/Contents/MacOS/PhotoCraft"
sign --options runtime --entitlements "$HERE/entitlements.plist" "$APP"
codesign --verify --strict --deep --verbose=2 "$APP"
if [ "$NOTARIZE" = 1 ]; then
- ditto -c -k --keepParent "$APP" "$WORK/Photocraft-notarize.zip"
- notarize "$WORK/Photocraft-notarize.zip"
+ ditto -c -k --keepParent "$APP" "$WORK/PhotoCraft-notarize.zip"
+ notarize "$WORK/PhotoCraft-notarize.zip"
xcrun stapler staple "$APP"
xcrun stapler validate "$APP"
spctl --assess --type execute -vvv "$APP"
@@ -126,10 +127,14 @@ fi
echo "==> building $DMG"
STAGE="$WORK/dmg"
mkdir -p "$STAGE"
-ditto "$APP" "$STAGE/Photocraft.app"
+ditto "$APP" "$STAGE/PhotoCraft.app"
ln -s /Applications "$STAGE/Applications"
-rm -f "$DMG"
-hdiutil create -volname "Photocraft $VERSION" -srcfolder "$STAGE" -fs HFS+ -format UDZO -imagekey zlib-level=9 -ov "$DMG"
+rm -f "$DMG" "$WORK/raw.dmg"
+# makehybrid + convert builds the image without attaching a device, unlike `create -srcfolder`,
+# which is flaky on CI runners ("Resource busy") and hangs in sandboxed sessions.
+hdiutil makehybrid -hfs -hfs-volume-name "PhotoCraft $VERSION" -hfs-openfolder "$STAGE" -o "$WORK/raw.dmg" "$STAGE"
+hdiutil convert "$WORK/raw.dmg" -format UDZO -imagekey zlib-level=9 -o "$DMG"
+rm -f "$WORK/raw.dmg"
sign "$DMG"
codesign --verify --strict --verbose=2 "$DMG"
if [ "$NOTARIZE" = 1 ]; then
diff --git a/packaging/web/README.md b/packaging/web/README.md
index 783bfa0aa..a1425b0f8 100644
--- a/packaging/web/README.md
+++ b/packaging/web/README.md
@@ -1,4 +1,4 @@
-# Hosting Photocraft for the web
+# Hosting PhotoCraft for the web
`photocraft-web-<version>.zip` (from the GitHub release, or `packaging/web/package.sh`) holds a
static site in `photocraft-web-<version>/`:
@@ -31,7 +31,7 @@ hash, so they can be cached forever. Only `index.html` needs revalidation.
`.js` files, and `no-cache` on `index.html`.
- **HTTPS:** WebGPU (and the clipboard) only work in a secure context, which means `https://`
or `http://localhost`. Over plain HTTP elsewhere, the app falls back to WebGL2.
-- **No special isolation headers:** Photocraft doesn't use `SharedArrayBuffer`, so it doesn't
+- **No special isolation headers:** PhotoCraft doesn't use `SharedArrayBuffer`, so it doesn't
need `Cross-Origin-Opener-Policy` or `Cross-Origin-Embedder-Policy`. If your site already sends
COEP `require-corp`, also send `Cross-Origin-Resource-Policy: same-origin` (or `cross-origin`
when the files live on a CDN) on the app's files.
@@ -55,7 +55,7 @@ Local test: `python3 -m http.server 8765` inside the folder, then open http://lo
```html
<iframe
src="https://example.com/photocraft/"
- title="Photocraft image editor"
+ title="PhotoCraft image editor"
style="width: 100%; height: 720px; border: 0;"
allow="fullscreen; clipboard-read; clipboard-write"
allowfullscreen>
@@ -75,7 +75,7 @@ Local test: `python3 -m http.server 8765` inside the folder, then open http://lo
## Renderer selection and fallback flags
-Photocraft renders with wgpu. It uses **WebGPU** when the browser has it and falls back to
+PhotoCraft renders with wgpu. It uses **WebGPU** when the browser has it and falls back to
**WebGL2** on its own. URL query flags override this, and they work on the iframe `src` too:
| Flag | Effect |
diff --git a/packaging/windows/package.ps1 b/packaging/windows/package.ps1
index f4fc3f23c..0d156acab 100644
--- a/packaging/windows/package.ps1
+++ b/packaging/windows/package.ps1
@@ -1,11 +1,11 @@
<#
.SYNOPSIS
- Build, sign and package Photocraft for Windows.
+ Build, sign and package PhotoCraft for Windows.
.DESCRIPTION
Produces, in $env:DIST (default: dist/release):
- Photocraft-<version>-windows-<arch>.msi per-machine installer (WiX v5)
- Photocraft-<version>-windows-<arch>-portable.zip photocraft.exe + photocraft-cli.exe
+ photocraft-<version>-windows-<arch>.msi per-machine installer (WiX v5)
+ photocraft-<version>-windows-<arch>-portable.zip photocraft.exe + photocraft-cli.exe
The binaries link the C runtime statically (+crt-static), so neither the MSI nor the portable
zip needs the Visual C++ redistributable. Signing is delegated to sign.ps1 (skipped with a
@@ -52,7 +52,7 @@ New-Item -ItemType Directory -Force -Path $Dist | Out-Null
if (-not $env:PHOTOCRAFT_BUILD_SHA) { $env:PHOTOCRAFT_BUILD_SHA = (git -C $Root rev-parse HEAD 2>$null) }
if (-not $env:PHOTOCRAFT_BUILD_DATE) { $env:PHOTOCRAFT_BUILD_DATE = (Get-Date).ToUniversalTime().ToString('yyyy-MM-dd') }
-Write-Output "Photocraft $Version for Windows $Arch ($Target)"
+Write-Output "PhotoCraft $Version for Windows $Arch ($Target)"
if (-not $SkipBuild) {
# Static CRT: no VC++ redistributable needed. Scoped to the target so host build scripts and
@@ -73,16 +73,16 @@ Copy-Item (Join-Path $Bin 'photocraft.exe'), (Join-Path $Bin 'photocraft-cli.exe
& (Join-Path $PSScriptRoot 'sign.ps1') (Join-Path $Stage 'photocraft.exe') (Join-Path $Stage 'photocraft-cli.exe')
# ---- MSI ---------------------------------------------------------------------------------------
-$Msi = Join-Path $Dist "Photocraft-$Version-windows-$Arch.msi"
+$Msi = Join-Path $Dist "photocraft-$Version-windows-$Arch.msi"
Invoke-Native 'wix build' {
- wix build (Join-Path $PSScriptRoot 'Photocraft.wxs') -arch $Arch `
+ wix build (Join-Path $PSScriptRoot 'photocraft.wxs') -arch $Arch `
-d "Version=$MsiVersion" -d "BinDir=$Stage" -d "IconPath=$(Join-Path $Root 'assets\app-icon\photocraft.ico')" `
-o $Msi
}
& (Join-Path $PSScriptRoot 'sign.ps1') $Msi
# ---- portable zip ------------------------------------------------------------------------------
-$Portable = Join-Path $TargetDir "windows-package\Photocraft-$Version-windows-$Arch-portable"
+$Portable = Join-Path $TargetDir "windows-package\photocraft-$Version-windows-$Arch-portable"
Remove-Item -Recurse -Force $Portable -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Force -Path $Portable | Out-Null
Copy-Item (Join-Path $Stage '*.exe') $Portable
@@ -90,7 +90,7 @@ foreach ($f in 'README.md', 'LICENSE', 'LICENSE-MIT', 'LICENSE-APACHE') {
$p = Join-Path $Root $f
if (Test-Path $p) { Copy-Item $p $Portable }
}
-$Zip = Join-Path $Dist "Photocraft-$Version-windows-$Arch-portable.zip"
+$Zip = Join-Path $Dist "photocraft-$Version-windows-$Arch-portable.zip"
Remove-Item -Force $Zip -ErrorAction SilentlyContinue
Compress-Archive -Path $Portable -DestinationPath $Zip
diff --git a/packaging/windows/Photocraft.wxs b/packaging/windows/photocraft.wxs
similarity index 91%
rename from packaging/windows/Photocraft.wxs
rename to packaging/windows/photocraft.wxs
index ef73beee0..c6e3910e3 100644
--- a/packaging/windows/Photocraft.wxs
+++ b/packaging/windows/photocraft.wxs
@@ -1,27 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
- Photocraft MSI (WiX Toolset v5: `dotnet tool install -g wix`). Built by package.ps1:
+ PhotoCraft MSI (WiX Toolset v5: `dotnet tool install -g wix`). Built by package.ps1:
- wix build Photocraft.wxs -arch x64 -d Version=1.2.3 -d BinDir=... -d IconPath=... -o out.msi
+ wix build photocraft.wxs -arch x64 -d Version=1.2.3 -d BinDir=... -d IconPath=... -o out.msi
- Per-machine install into Program Files, a Start Menu shortcut, `.pcraft` owned by Photocraft,
- and Photocraft offered under "Open with" for PSD/PSB and the image formats it reads (without
+ Per-machine install into Program Files, a Start Menu shortcut, `.pcraft` owned by PhotoCraft,
+ and PhotoCraft offered under "Open with" for PSD/PSB and the image formats it reads (without
taking over the user's default app for them).
-->
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Package
- Name="Photocraft"
+ Name="PhotoCraft"
Manufacturer="Learning Machines LLC"
Version="$(var.Version)"
UpgradeCode="D9660F32-2D0A-4ABE-B73D-17BE25F1542C"
Scope="perMachine"
Compressed="yes"
Language="1033">
- <SummaryInformation Description="Photocraft image editor" Manufacturer="Learning Machines LLC" />
+ <SummaryInformation Description="PhotoCraft image editor" Manufacturer="Learning Machines LLC" />
<!-- Same-version upgrades let successive pre-releases of one X.Y.Z replace each other
(MSI versions are numeric, so 1.2.3-rc.1 and 1.2.3-rc.2 are both 1.2.3). -->
<MajorUpgrade AllowSameVersionUpgrades="yes"
- DowngradeErrorMessage="A newer version of Photocraft is already installed." />
+ DowngradeErrorMessage="A newer version of PhotoCraft is already installed." />
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
<Icon Id="PhotocraftIcon" SourceFile="$(var.IconPath)" />
@@ -30,11 +30,11 @@
<Property Id="ARPHELPLINK" Value="https://github.com/storytold/photocraft/issues" />
<StandardDirectory Id="ProgramFiles6432Folder">
- <Directory Id="INSTALLFOLDER" Name="Photocraft" />
+ <Directory Id="INSTALLFOLDER" Name="PhotoCraft" />
</StandardDirectory>
<StandardDirectory Id="ProgramMenuFolder" />
- <Feature Id="Main" Title="Photocraft" Level="1">
+ <Feature Id="Main" Title="PhotoCraft" Level="1">
<ComponentGroupRef Id="PhotocraftFiles" />
</Feature>
</Package>
@@ -43,13 +43,13 @@
<ComponentGroup Id="PhotocraftFiles" Directory="INSTALLFOLDER">
<Component Id="PhotocraftApp" Guid="A6DE41B7-A80F-4C59-A17E-BB68065BF67E">
<File Id="PhotocraftExe" Source="$(var.BinDir)\photocraft.exe" KeyPath="yes">
- <Shortcut Id="StartMenuShortcut" Directory="ProgramMenuFolder" Name="Photocraft"
- Description="Photocraft image editor" WorkingDirectory="INSTALLFOLDER" Advertise="yes"
+ <Shortcut Id="StartMenuShortcut" Directory="ProgramMenuFolder" Name="PhotoCraft"
+ Description="PhotoCraft image editor" WorkingDirectory="INSTALLFOLDER" Advertise="yes"
Icon="PhotocraftIcon" IconIndex="0" />
</File>
- <!-- .pcraft: Photocraft's own format; Photocraft is its default app. -->
- <ProgId Id="Photocraft.Document" Description="Photocraft Document" Icon="PhotocraftExe" IconIndex="0">
+ <!-- .pcraft: PhotoCraft's own format; PhotoCraft is its default app. -->
+ <ProgId Id="Photocraft.Document" Description="PhotoCraft Document" Icon="PhotocraftExe" IconIndex="0">
<Extension Id="pcraft" ContentType="application/x-photocraft">
<Verb Id="open" Command="Open" TargetFile="PhotocraftExe" Argument="&quot;%1&quot;" />
</Extension>
@@ -77,7 +77,7 @@
<RegistryValue Root="HKLM" Key="Software\Classes\.ico\OpenWithProgids" Name="Photocraft.Image" Value="" Type="string" />
<!-- "Open with" app list and the Run dialog (Win+R "photocraft"). -->
- <RegistryValue Root="HKLM" Key="Software\Classes\Applications\photocraft.exe" Name="FriendlyAppName" Value="Photocraft" Type="string" />
+ <RegistryValue Root="HKLM" Key="Software\Classes\Applications\photocraft.exe" Name="FriendlyAppName" Value="PhotoCraft" Type="string" />
<RegistryValue Root="HKLM" Key="Software\Classes\Applications\photocraft.exe\shell\open\command" Value="&quot;[#PhotocraftExe]&quot; &quot;%1&quot;" Type="string" />
<RegistryValue Root="HKLM" Key="Software\Classes\Applications\photocraft.exe\SupportedTypes" Name=".pcraft" Value="" Type="string" />
<RegistryValue Root="HKLM" Key="Software\Classes\Applications\photocraft.exe\SupportedTypes" Name=".psd" Value="" Type="string" />
diff --git a/packaging/windows/sign.ps1 b/packaging/windows/sign.ps1
index fefeedd45..5dcefceb0 100644
--- a/packaging/windows/sign.ps1
+++ b/packaging/windows/sign.ps1
@@ -55,7 +55,7 @@ if (-not $haveCert -and -not $haveAzure) {
}
$script:SignTool = Find-SignTool
-$common = @('sign', '/v', '/fd', 'SHA256', '/td', 'SHA256', '/d', 'Photocraft', '/du', 'https://github.com/storytold/photocraft')
+$common = @('sign', '/v', '/fd', 'SHA256', '/td', 'SHA256', '/d', 'PhotoCraft', '/du', 'https://github.com/storytold/photocraft')
$tmp = Join-Path ([IO.Path]::GetTempPath()) "photocraft-sign-$PID"
New-Item -ItemType Directory -Force -Path $tmp | Out-Null