diff --git a/Cargo.lock b/Cargo.lock index 064783fb91..a715ac36cb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3614,7 +3614,7 @@ dependencies = [ [[package]] name = "lightcraft" -version = "0.21.0" +version = "0.21.1" dependencies = [ "chrono", "craft-update", @@ -3643,7 +3643,7 @@ dependencies = [ [[package]] name = "lightcraft-catalog" -version = "0.21.0" +version = "0.21.1" dependencies = [ "chrono", "crc32fast", @@ -3664,7 +3664,7 @@ dependencies = [ [[package]] name = "lightcraft-cli" -version = "0.21.0" +version = "0.21.1" dependencies = [ "dhat", "lightcraft-codecs", @@ -3681,7 +3681,7 @@ dependencies = [ [[package]] name = "lightcraft-codecs" -version = "0.21.0" +version = "0.21.1" dependencies = [ "avif-serialize", "bytemuck", @@ -3713,7 +3713,7 @@ dependencies = [ [[package]] name = "lightcraft-color" -version = "0.21.0" +version = "0.21.1" dependencies = [ "lightcraft-geom", "proptest", @@ -3722,7 +3722,7 @@ dependencies = [ [[package]] name = "lightcraft-denoise" -version = "0.21.0" +version = "0.21.1" dependencies = [ "faer-core", "lightcraft-denoise-core", @@ -3739,7 +3739,7 @@ dependencies = [ [[package]] name = "lightcraft-denoise-core" -version = "0.21.0" +version = "0.21.1" dependencies = [ "dhat", "lightcraft-raster", @@ -3755,7 +3755,7 @@ dependencies = [ [[package]] name = "lightcraft-develop" -version = "0.21.0" +version = "0.21.1" dependencies = [ "lightcraft-color", "lightcraft-geom", @@ -3767,7 +3767,7 @@ dependencies = [ [[package]] name = "lightcraft-engine" -version = "0.21.0" +version = "0.21.1" dependencies = [ "ab_glyph", "chrono", @@ -3814,7 +3814,7 @@ dependencies = [ [[package]] name = "lightcraft-faces" -version = "0.21.0" +version = "0.21.1" dependencies = [ "lightcraft-testkit", "matrixmultiply", @@ -3829,7 +3829,7 @@ dependencies = [ [[package]] name = "lightcraft-fetch" -version = "0.21.0" +version = "0.21.1" dependencies = [ "log", "rustls", @@ -3840,14 +3840,14 @@ dependencies = [ [[package]] name = "lightcraft-film" -version = "0.21.0" +version = "0.21.1" dependencies = [ "libm", ] [[package]] name = "lightcraft-geocode" -version = "0.21.0" +version = "0.21.1" dependencies = [ "miniz_oxide 0.9.1", "serde", @@ -3855,7 +3855,7 @@ dependencies = [ [[package]] name = "lightcraft-geom" -version = "0.21.0" +version = "0.21.1" dependencies = [ "proptest", "serde", @@ -3863,7 +3863,7 @@ dependencies = [ [[package]] name = "lightcraft-gpu" -version = "0.21.0" +version = "0.21.1" dependencies = [ "bytemuck", "lightcraft-color", @@ -3883,14 +3883,14 @@ dependencies = [ [[package]] name = "lightcraft-inpaint" -version = "0.21.0" +version = "0.21.1" dependencies = [ "rayon", ] [[package]] name = "lightcraft-lensdb" -version = "0.21.0" +version = "0.21.1" dependencies = [ "lightcraft-develop", "lightcraft-geom", @@ -3899,7 +3899,7 @@ dependencies = [ [[package]] name = "lightcraft-mcp" -version = "0.21.0" +version = "0.21.1" dependencies = [ "lightcraft-codecs", "lightcraft-engine", @@ -3910,7 +3910,7 @@ dependencies = [ [[package]] name = "lightcraft-merge" -version = "0.21.0" +version = "0.21.1" dependencies = [ "lightcraft-codecs", "lightcraft-color", @@ -3926,7 +3926,7 @@ dependencies = [ [[package]] name = "lightcraft-meta" -version = "0.21.0" +version = "0.21.1" dependencies = [ "chrono", "craft-heif", @@ -3940,7 +3940,7 @@ dependencies = [ [[package]] name = "lightcraft-pipeline" -version = "0.21.0" +version = "0.21.1" dependencies = [ "dhat", "image", @@ -3959,7 +3959,7 @@ dependencies = [ [[package]] name = "lightcraft-preview" -version = "0.21.0" +version = "0.21.1" dependencies = [ "jpeg-encoder", "lightcraft-raster", @@ -3971,7 +3971,7 @@ dependencies = [ [[package]] name = "lightcraft-raster" -version = "0.21.0" +version = "0.21.1" dependencies = [ "libc", "lightcraft-color", @@ -3983,7 +3983,7 @@ dependencies = [ [[package]] name = "lightcraft-raw" -version = "0.21.0" +version = "0.21.1" dependencies = [ "chrono", "craft-crw", @@ -4009,7 +4009,7 @@ dependencies = [ [[package]] name = "lightcraft-scenes" -version = "0.21.0" +version = "0.21.1" dependencies = [ "image", "lightcraft-color", @@ -4020,7 +4020,7 @@ dependencies = [ [[package]] name = "lightcraft-segment" -version = "0.21.0" +version = "0.21.1" dependencies = [ "candle-core", "candle-nn", @@ -4034,7 +4034,7 @@ dependencies = [ [[package]] name = "lightcraft-slideshow" -version = "0.21.0" +version = "0.21.1" dependencies = [ "lightcraft-raster", "serde", @@ -4043,15 +4043,15 @@ dependencies = [ [[package]] name = "lightcraft-sysmem" -version = "0.21.0" +version = "0.21.1" [[package]] name = "lightcraft-testkit" -version = "0.21.0" +version = "0.21.1" [[package]] name = "lightcraft-ui-egui" -version = "0.21.0" +version = "0.21.1" dependencies = [ "craft-ui", "craft-update", @@ -4084,7 +4084,7 @@ dependencies = [ [[package]] name = "lightcraft-web" -version = "0.21.0" +version = "0.21.1" dependencies = [ "crc32fast", "eframe", @@ -4107,7 +4107,7 @@ dependencies = [ [[package]] name = "lightcraft-wincolor" -version = "0.21.0" +version = "0.21.1" dependencies = [ "lightcraft-testkit", "windows-sys 0.61.2", @@ -7926,7 +7926,7 @@ checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7" [[package]] name = "xtask" -version = "0.21.0" +version = "0.21.1" dependencies = [ "brotli", "flate2", diff --git a/Cargo.toml b/Cargo.toml index 427c091de8..f7dd56589e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "3" members = ["crates/*", "apps/*", "xtask"] [workspace.package] -version = "0.21.0" +version = "0.21.1" edition = "2024" license = "MIT OR Apache-2.0" rust-version = "1.95" diff --git a/crates/ui-egui/tests/flatpak_updates.rs b/crates/ui-egui/tests/flatpak_updates.rs new file mode 100644 index 0000000000..1708ee68c9 --- /dev/null +++ b/crates/ui-egui/tests/flatpak_updates.rs @@ -0,0 +1,27 @@ +//! Release and source Flatpaks must allow release checks and host update helpers. +fn finish_args(manifest: &str) -> Vec<&str> { + manifest + .split("finish-args:") + .nth(1) + .unwrap_or_default() + .lines() + .take_while(|line| line.is_empty() || line.starts_with(' ') || line.starts_with('#')) + .filter_map(|line| line.trim().strip_prefix("- ")) + .map(|arg| arg.trim_matches(['\'', '"'])) + .collect() +} + +#[test] +fn flatpak_update_permissions() { + let manifests = [ + include_str!("../../../packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml"), + include_str!("../../../packaging/linux/flatpak/ai.storyteller.lightcraft.yml"), + ]; + let args = manifests.map(finish_args); + assert_eq!(args[0], args[1], "source and release permissions must agree"); + for permissions in args { + for required in ["--share=network", "--talk-name=org.freedesktop.Flatpak"] { + assert!(permissions.contains(&required), "missing update permission: {required}"); + } + } +} diff --git a/docs/whats-new.md b/docs/whats-new.md index 566261ac06..c353441c03 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -2,6 +2,12 @@ ## Unreleased +### Flatpak updates +- Help ▸ Check for Updates can now reach the release service and update standalone Flatpak bundles. + This permissions repair must first arrive through your existing host-side update method. Flatpaks + managed by a software repository continue to use its package manager, and launcher-pinned versions + keep their selected version. + ### Export Effect Presets leaves your originals alone - Export Effect Presets… (`mask.exportEffects`) now refuses a path that is a photo's original or its XMP sidecar, as the other exports do, and writes the file atomically. It used to write the presets over whatever file it was given, diff --git a/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml b/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml index 00edc2f3b6..f2a3cdf11f 100644 --- a/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml +++ b/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml @@ -17,6 +17,8 @@ runtime-version: '25.08' sdk: org.freedesktop.Sdk command: lightcraft finish-args: + # The shared updater inspects and updates this installation via flatpak-spawn --host. + - --talk-name=org.freedesktop.Flatpak - --filesystem=xdg-data/ArtCraft/versions:ro # Display: Wayland first; X11 only when no Wayland compositor is running. - --socket=wayland diff --git a/packaging/linux/flatpak/ai.storyteller.lightcraft.yml b/packaging/linux/flatpak/ai.storyteller.lightcraft.yml index 7b959e3ec7..b6c0cf8efd 100644 --- a/packaging/linux/flatpak/ai.storyteller.lightcraft.yml +++ b/packaging/linux/flatpak/ai.storyteller.lightcraft.yml @@ -23,6 +23,8 @@ sdk-extensions: - org.freedesktop.Sdk.Extension.rust-stable command: lightcraft finish-args: + # The shared updater inspects and updates this installation via flatpak-spawn --host. + - --talk-name=org.freedesktop.Flatpak - --filesystem=xdg-data/ArtCraft/versions:ro # Display: Wayland first; X11 only when no Wayland compositor is running. - --socket=wayland diff --git a/xtask/src/ci_quick.rs b/xtask/src/ci_quick.rs index 21352f2f3b..fcfe4d9d64 100644 --- a/xtask/src/ci_quick.rs +++ b/xtask/src/ci_quick.rs @@ -39,6 +39,7 @@ const EMBEDDED: &[(&str, &[&str])] = &[ ("assets/fonts/", &["lightcraft-engine", "lightcraft-ui-egui"]), ("contributors/", &["lightcraft-ui-egui"]), ("docs/whats-new.md", &["lightcraft-ui-egui"]), + ("packaging/linux/flatpak/", &["lightcraft-ui-egui"]), ("docs/raw/coverage-sweep.tsv", &["lightcraft-raw"]), ("docs/raf-corpus.sha256", &["lightcraft-raw"]), ("xtask/src/raw_samples.rs", &["lightcraft-raw"]),