Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

Change the app id to io.tangencylabs.solidcraft, with aliases for existing installs (#7681)

bherbruck7a6c88441869
diff --git a/.github/release-notes.md b/.github/release-notes.md
index 05f7fd0f56..7a5c779c69 100644
--- a/.github/release-notes.md
+++ b/.github/release-notes.md
@@ -9,9 +9,10 @@ parameter to watch the timeline rebuild. [Documentation](https://docs.solidcraft
[ROADMAP](https://github.com/bherbruck/solidcraft/blob/main/ROADMAP.md#known-limitations) lists
the known limitations. Designs from every earlier version open in this one.
-**Upgrading from 0.7 or earlier.** 0.8 changed the Linux app ID to `ai.storyteller.solidcraft`:
-`flatpak update` offers to replace the old app, and the `.deb`, `.rpm` and AppImage remove the old
-menu entry.
+**New app ID.** The app ID is now `io.tangencylabs.solidcraft` (it was `ai.storyteller.solidcraft`,
+and `ai.storyteller.solvecraft` up to 0.7): `flatpak update` offers to replace the old app, the
+`.deb`, `.rpm` and AppImage remove the old menu entry, and settings stay. On macOS the bundle ID
+changed too, so macOS asks once more for the permissions it had granted.
**Upgrading from 0.5 or earlier.** 0.6 renamed SolveCraft to SolidCraft and made the zip
container the default save format. `.solvecraft` designs, old settings folders and
@@ -42,16 +43,16 @@ installing SolidCraft; keep both remotes in the same user installation:
```sh
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --user --if-not-exists solidcraft https://docs.solidcraft.io/flatpak/solidcraft.flatpakrepo
-flatpak install --user solidcraft ai.storyteller.solidcraft
-flatpak run ai.storyteller.solidcraft
+flatpak install --user solidcraft io.tangencylabs.solidcraft
+flatpak run io.tangencylabs.solidcraft
```
A remote added from the old `bherbruck.github.io` address no longer finds updates: run
`flatpak remote-modify --user --url=https://docs.solidcraft.io/flatpak/repo/ solidcraft`, then
`flatpak update --user`.
-Flatpak installs from 0.7 or earlier use the old ID `ai.storyteller.solvecraft`: `flatpak update --user`
-offers to replace it with `ai.storyteller.solidcraft`, and settings move along.
+Flatpak installs under an old ID (`ai.storyteller.solidcraft`, or `ai.storyteller.solvecraft` from 0.7 or
+earlier): `flatpak update --user` offers to replace it with `io.tangencylabs.solidcraft`, and settings move along.
Single-file `.flatpak` bundles include the runtime repository address; missing runtimes
still need an internet connection. [Linux installation details](https://docs.solidcraft.io/guide/getting-started.html#linux-flatpak).
diff --git a/.github/workflows/packaging-lint.yml b/.github/workflows/packaging-lint.yml
index a468e76ab5..80d396a426 100644
--- a/.github/workflows/packaging-lint.yml
+++ b/.github/workflows/packaging-lint.yml
@@ -55,13 +55,15 @@ jobs:
- name: XML, desktop entry, AppStream, Flatpak manifest
run: |
xmllint --noout assets/platforms/windows/solidcraft.wxs assets/platforms/windows/solidcraft.en-us.wxl assets/platforms/macos/*.plist* assets/platforms/linux/*.xml*
- desktop-file-validate assets/platforms/linux/ai.storyteller.solidcraft.desktop
- # The window's X11 class is its app id; the old id stays only as the rename shims.
- grep -qx 'StartupWMClass=ai.storyteller.solidcraft' assets/platforms/linux/ai.storyteller.solidcraft.desktop
- grep -q '<id>ai.storyteller.solvecraft</id>' assets/platforms/linux/ai.storyteller.solidcraft.metainfo.xml.in
+ desktop-file-validate assets/platforms/linux/io.tangencylabs.solidcraft.desktop
+ # The window's X11 class is its app id; the old ids stay only as the rename shims.
+ grep -qx 'StartupWMClass=io.tangencylabs.solidcraft' assets/platforms/linux/io.tangencylabs.solidcraft.desktop
+ grep -q '<id>ai.storyteller.solidcraft</id>' assets/platforms/linux/io.tangencylabs.solidcraft.metainfo.xml.in
+ grep -q '<id>ai.storyteller.solvecraft</id>' assets/platforms/linux/io.tangencylabs.solidcraft.metainfo.xml.in
+ grep -qx 'X-Flatpak-RenamedFrom=ai.storyteller.solidcraft.desktop;ai.storyteller.solvecraft.desktop;' assets/platforms/linux/io.tangencylabs.solidcraft.desktop
grep -qF -e '--end-of-life-rebase=' packaging/flatpak-site.sh
- sed -e 's/@VERSION@/0.0.0/' -e 's/@DATE@/2026-01-01/' assets/platforms/linux/ai.storyteller.solidcraft.metainfo.xml.in >"$RUNNER_TEMP/ai.storyteller.solidcraft.metainfo.xml"
- appstreamcli validate --no-net --explain "$RUNNER_TEMP/ai.storyteller.solidcraft.metainfo.xml"
- python3 -c "import yaml; m = yaml.safe_load(open('packaging/linux/flatpak/ai.storyteller.solidcraft.bundle.yml')); assert m['id'] == 'ai.storyteller.solidcraft' and m['command'] == 'solidcraft'"
+ sed -e 's/@VERSION@/0.0.0/' -e 's/@DATE@/2026-01-01/' assets/platforms/linux/io.tangencylabs.solidcraft.metainfo.xml.in >"$RUNNER_TEMP/io.tangencylabs.solidcraft.metainfo.xml"
+ appstreamcli validate --no-net --explain "$RUNNER_TEMP/io.tangencylabs.solidcraft.metainfo.xml"
+ python3 -c "import yaml; m = yaml.safe_load(open('packaging/linux/flatpak/io.tangencylabs.solidcraft.bundle.yml')); assert m['id'] == 'io.tangencylabs.solidcraft' and m['command'] == 'solidcraft'"
python3 -c "import yaml; m = yaml.safe_load(open('packaging/linux/snap/snapcraft.yaml')); assert m['name'] == 'solidcraft' and m['confinement'] == 'strict' and m['apps']['solidcraft']['command'] == 'usr/bin/solidcraft'"
python3 -m py_compile packaging/linux/snap-smoke.py
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 72c4a55859..6d44a02c42 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -297,7 +297,7 @@ jobs:
export CARGO_TARGET_DIR=/var/tmp/solidcraft-target CARGO_BUILD_JOBS=4
bash packaging/freebsd/package.sh
tar -tzf dist/release/solidcraft-*-freebsd-x86_64.tar.gz \
- | grep -E '/bin/solidcraft$|/bin/solidcraft-cli$|/share/applications/ai\.storyteller\.solvecraft\.desktop$|/share/doc/solidcraft/THIRD-PARTY-LICENSES\.txt$'
+ | grep -E '/bin/solidcraft$|/bin/solidcraft-cli$|/share/applications/io\.tangencylabs\.solidcraft\.desktop$|/share/doc/solidcraft/THIRD-PARTY-LICENSES\.txt$'
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: release-freebsd-x86_64
diff --git a/ATTRIBUTION.md b/ATTRIBUTION.md
index e1ce571468..716a1cd90f 100644
--- a/ATTRIBUTION.md
+++ b/ATTRIBUTION.md
@@ -128,14 +128,14 @@ Editable drawing code, native projects and shipped exports are collected under `
| assets/fonts/ibm-plex-mono/OFL.txt | IBM Corp. | Unmodified accompanying font licence | SIL OFL 1.1 |
| assets/fonts/ibm-plex-sans/OFL.txt | IBM Corp. | Unmodified accompanying font licence | SIL OFL 1.1 |
| assets/fonts/liberation-sans/OFL.txt | Red Hat, Inc.; Liberation Fonts contributors | Unmodified accompanying font licence | SIL OFL 1.1 |
-| assets/icons/app/linux/exports/hicolor/128x128/apps/ai.storyteller.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
-| assets/icons/app/linux/exports/hicolor/16x16/apps/ai.storyteller.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
-| assets/icons/app/linux/exports/hicolor/24x24/apps/ai.storyteller.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
-| assets/icons/app/linux/exports/hicolor/256x256/apps/ai.storyteller.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
-| assets/icons/app/linux/exports/hicolor/32x32/apps/ai.storyteller.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
-| assets/icons/app/linux/exports/hicolor/48x48/apps/ai.storyteller.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
-| assets/icons/app/linux/exports/hicolor/512x512/apps/ai.storyteller.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
-| assets/icons/app/linux/exports/hicolor/64x64/apps/ai.storyteller.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
+| assets/icons/app/linux/exports/hicolor/128x128/apps/io.tangencylabs.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
+| assets/icons/app/linux/exports/hicolor/16x16/apps/io.tangencylabs.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
+| assets/icons/app/linux/exports/hicolor/24x24/apps/io.tangencylabs.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
+| assets/icons/app/linux/exports/hicolor/256x256/apps/io.tangencylabs.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
+| assets/icons/app/linux/exports/hicolor/32x32/apps/io.tangencylabs.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
+| assets/icons/app/linux/exports/hicolor/48x48/apps/io.tangencylabs.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
+| assets/icons/app/linux/exports/hicolor/512x512/apps/io.tangencylabs.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
+| assets/icons/app/linux/exports/hicolor/64x64/apps/io.tangencylabs.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
| assets/icons/app/shared/source/app_icon.rs | SolidCraft contributors | Original SolidCraft drawing code: the borderless mark, drawn from the faces and gradients of assets/icons/app/macos/source/SolidCraft.icon/Assets/03-solid-blue-cutout.svg | MIT OR Apache-2.0 |
| assets/icons/app/shared/source/windows_ico.rs | SolidCraft contributors | Original SolidCraft resource data or drawing code, collected without redesign | MIT OR Apache-2.0 |
| assets/icons/app/windows/exports/solidcraft-executable.ico | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 |
@@ -171,9 +171,9 @@ Editable drawing code, native projects and shipped exports are collected under `
| assets/locales/zh.json | SolidCraft contributors | Original SolidCraft resource data or drawing code, collected without redesign | MIT OR Apache-2.0 |
| assets/locales/zh-TW.json | SolidCraft contributors | Original Traditional Chinese (Taiwan) translation of SolidCraft's English catalog; no commercial CAD text used | MIT OR Apache-2.0 |
| assets/materials/library.rs | SolidCraft contributors | Original SolidCraft resource data or drawing code, collected without redesign | MIT OR Apache-2.0 |
-| assets/platforms/linux/ai.storyteller.solidcraft.desktop | PhotoCraft / SolidCraft contributors | PhotoCraft packaging templates (https://github.com/storytold/photocraft), adapted for SolidCraft | Apache-2.0 |
-| assets/platforms/linux/ai.storyteller.solidcraft.metainfo.xml.in | PhotoCraft / SolidCraft contributors | PhotoCraft packaging templates (https://github.com/storytold/photocraft), adapted for SolidCraft | Apache-2.0 |
-| assets/platforms/linux/ai.storyteller.solidcraft.mime.xml | PhotoCraft / SolidCraft contributors | PhotoCraft packaging templates (https://github.com/storytold/photocraft), adapted for SolidCraft | Apache-2.0 |
+| assets/platforms/linux/io.tangencylabs.solidcraft.desktop | PhotoCraft / SolidCraft contributors | PhotoCraft packaging templates (https://github.com/storytold/photocraft), adapted for SolidCraft | Apache-2.0 |
+| assets/platforms/linux/io.tangencylabs.solidcraft.metainfo.xml.in | PhotoCraft / SolidCraft contributors | PhotoCraft packaging templates (https://github.com/storytold/photocraft), adapted for SolidCraft | Apache-2.0 |
+| assets/platforms/linux/io.tangencylabs.solidcraft.mime.xml | PhotoCraft / SolidCraft contributors | PhotoCraft packaging templates (https://github.com/storytold/photocraft), adapted for SolidCraft | Apache-2.0 |
| assets/platforms/macos/dmg/background.tiff | SolidCraft contributors | original disk image window background (blueprint sheet: grid, double border, circles, centre lines, leader arrow, title block) drawn by assets/platforms/macos/dmg/make_background.py in IBM Plex Sans/Mono; 1x and 2x representations | MIT OR Apache-2.0 |
| assets/platforms/macos/dmg/make_background.py | SolidCraft contributors | authoring script that draws the disk image background (Pillow); not part of any build | MIT OR Apache-2.0 |
| assets/platforms/macos/dmg/layout.json | SolidCraft contributors | disk image window size, icon size and icon positions shared by the background script and settings.py | MIT OR Apache-2.0 |
diff --git a/README.md b/README.md
index 8c1ca69a3b..d7a9f9c1cb 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
<p align="center">
- <img src="assets/icons/app/linux/exports/hicolor/256x256/apps/ai.storyteller.solidcraft.png" width="96" height="96" alt="SolidCraft" />
+ <img src="assets/icons/app/linux/exports/hicolor/256x256/apps/io.tangencylabs.solidcraft.png" width="96" height="96" alt="SolidCraft" />
</p>
<h1 align="center">SolidCraft</h1>
diff --git a/apps/solidcraft-web/index.html b/apps/solidcraft-web/index.html
index c1068d5bd3..90030947f6 100644
--- a/apps/solidcraft-web/index.html
+++ b/apps/solidcraft-web/index.html
@@ -27,12 +27,12 @@
<!-- Installable as an app (manifest.webmanifest); the icons are the Linux exports of the app mark. -->
<meta name="theme-color" content="#343840">
<link rel="manifest" href="manifest.webmanifest">
- <link rel="icon" type="image/png" sizes="32x32" href="icons/32x32/ai.storyteller.solidcraft.png">
- <link rel="apple-touch-icon" href="icons/256x256/ai.storyteller.solidcraft.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="icons/32x32/io.tangencylabs.solidcraft.png">
+ <link rel="apple-touch-icon" href="icons/256x256/io.tangencylabs.solidcraft.png">
<link data-trunk rel="copy-file" href="manifest.webmanifest" />
- <link data-trunk rel="copy-file" href="../../assets/icons/app/linux/exports/hicolor/32x32/apps/ai.storyteller.solidcraft.png" data-target-path="icons/32x32" />
- <link data-trunk rel="copy-file" href="../../assets/icons/app/linux/exports/hicolor/256x256/apps/ai.storyteller.solidcraft.png" data-target-path="icons/256x256" />
- <link data-trunk rel="copy-file" href="../../assets/icons/app/linux/exports/hicolor/512x512/apps/ai.storyteller.solidcraft.png" data-target-path="icons/512x512" />
+ <link data-trunk rel="copy-file" href="../../assets/icons/app/linux/exports/hicolor/32x32/apps/io.tangencylabs.solidcraft.png" data-target-path="icons/32x32" />
+ <link data-trunk rel="copy-file" href="../../assets/icons/app/linux/exports/hicolor/256x256/apps/io.tangencylabs.solidcraft.png" data-target-path="icons/256x256" />
+ <link data-trunk rel="copy-file" href="../../assets/icons/app/linux/exports/hicolor/512x512/apps/io.tangencylabs.solidcraft.png" data-target-path="icons/512x512" />
</head>
<body>
<canvas id="solidcraft_canvas"></canvas>
diff --git a/apps/solidcraft-web/manifest.webmanifest b/apps/solidcraft-web/manifest.webmanifest
index 54b56d5917..6b80eaf8aa 100644
--- a/apps/solidcraft-web/manifest.webmanifest
+++ b/apps/solidcraft-web/manifest.webmanifest
@@ -9,8 +9,8 @@
"theme_color": "#343840",
"categories": ["productivity", "utilities"],
"icons": [
- { "src": "icons/32x32/ai.storyteller.solidcraft.png", "sizes": "32x32", "type": "image/png" },
- { "src": "icons/256x256/ai.storyteller.solidcraft.png", "sizes": "256x256", "type": "image/png" },
- { "src": "icons/512x512/ai.storyteller.solidcraft.png", "sizes": "512x512", "type": "image/png" }
+ { "src": "icons/32x32/io.tangencylabs.solidcraft.png", "sizes": "32x32", "type": "image/png" },
+ { "src": "icons/256x256/io.tangencylabs.solidcraft.png", "sizes": "256x256", "type": "image/png" },
+ { "src": "icons/512x512/io.tangencylabs.solidcraft.png", "sizes": "512x512", "type": "image/png" }
]
}
diff --git a/apps/solidcraft/src/main.rs b/apps/solidcraft/src/main.rs
index 4045f1f738..fadaeb9e7b 100644
--- a/apps/solidcraft/src/main.rs
+++ b/apps/solidcraft/src/main.rs
@@ -615,26 +615,26 @@ fn graphics_path() -> Option<std::path::PathBuf> {
/// Compatibility shim (docs/compatibility.md): on the first launch after the rename, copy the
/// settings of earlier releases into the new folder. They kept `graphics.json` (and, on Linux
/// and macOS, the recovery folder) under the old product name, and eframe's `app.ron` under the
-/// window's old app id. In the Flatpak sandbox, releases before 0.8 kept everything under the
-/// old app id's `~/.var/app` folder; that copy comes first, as it is the newest. The old folders
+/// window's old app id. In the Flatpak sandbox, earlier releases kept everything under an
+/// old app id's `~/.var/app` folder; those copies come first, newest first. The old folders
/// are never changed.
fn adopt_legacy_settings() {
let (Some(current), Some(legacy)) = (settings_dir().ok().flatten(), eframe::storage_dir("SolveCraft")) else { return };
let legacy_eframe = eframe::storage_dir(solidcraft_engine::io::LEGACY_APP_ID);
- let old_flatpak = solidcraft_engine::io::legacy_flatpak_path(&current);
- if let Err(e) = adopt_settings(&current, old_flatpak.as_deref(), &legacy, legacy_eframe.as_deref()) {
+ let old_flatpak = solidcraft_engine::io::legacy_flatpak_paths(&current);
+ if let Err(e) = adopt_settings(&current, &old_flatpak, &legacy, legacy_eframe.as_deref()) {
log::warn!("settings: could not copy the previous release's settings into {}: {e}", current.display());
}
}
fn adopt_settings(
current: &std::path::Path,
- old_flatpak: Option<&std::path::Path>,
+ old_flatpak: &[std::path::PathBuf],
legacy: &std::path::Path,
legacy_eframe: Option<&std::path::Path>,
) -> std::io::Result<()> {
let fresh = !current.exists();
- if let Some(old) = old_flatpak {
+ for old in old_flatpak {
solidcraft_engine::io::adopt_legacy_dir(current, old)?;
}
solidcraft_engine::io::adopt_legacy_dir(current, legacy)?;
@@ -1388,14 +1388,14 @@ mod msaa_tests {
std::fs::create_dir_all(&legacy_eframe).unwrap();
std::fs::write(legacy.join("graphics.json"), r#"{"msaa":8}"#).unwrap();
std::fs::write(legacy_eframe.join("app.ron"), "(prefs)").unwrap();
- super::adopt_settings(&current, None, &legacy, Some(&legacy_eframe)).unwrap();
+ super::adopt_settings(&current, &[], &legacy, Some(&legacy_eframe)).unwrap();
assert_eq!(std::fs::read_to_string(current.join("graphics.json")).unwrap(), r#"{"msaa":8}"#);
assert_eq!(std::fs::read_to_string(current.join("app.ron")).unwrap(), "(prefs)");
assert!(legacy.join("graphics.json").is_file() && legacy_eframe.join("app.ron").is_file());
// Later launches leave the current settings alone.
std::fs::write(current.join("app.ron"), "(mine)").unwrap();
std::fs::remove_file(current.join("graphics.json")).unwrap();
- super::adopt_settings(&current, None, &legacy, Some(&legacy_eframe)).unwrap();
+ super::adopt_settings(&current, &[], &legacy, Some(&legacy_eframe)).unwrap();
assert_eq!(std::fs::read_to_string(current.join("app.ron")).unwrap(), "(mine)");
assert!(!current.join("graphics.json").exists());
let _ = std::fs::remove_dir_all(&d);
diff --git a/assets/README.md b/assets/README.md
index 604e41392a..d919883463 100644
--- a/assets/README.md
+++ b/assets/README.md
@@ -76,7 +76,7 @@ The CLI still supports arbitrary PNG/ICO exports with `solidcraft-cli icon`.
| macOS | Composer master and paired exports; bundle installs `Assets.car` and `SolidCraft.icns` |
| Windows executable | `solidcraft-executable.ico`: original DIB/mask representations at 16/24/32/48/64/128/256 px |
| Windows installer | `solidcraft.ico`: PNG representations at 16/20/24/32/40/48/64/128/256 px; `SOLIDCRAFT_ICONS` override retained |
-| Linux, Nix, deb/rpm, tar, Flatpak, Snap | Copy canonical hicolor images; icon name stays `ai.storyteller.solidcraft` |
+| Linux, Nix, deb/rpm, tar, Flatpak, Snap | Copy canonical hicolor images; icon name stays `io.tangencylabs.solidcraft` |
| AppImage | Uses the Linux 256 px image and `.DirIcon` alias |
| FreeBSD | Shares Linux hicolor images and freedesktop metadata |
| Web | HTML/Trunk and `manifest.webmanifest` stay in `apps/solidcraft-web/`; copies Japanese font/licence to `fonts/`, uses the collected CSS, and copies the Linux 32/256/512 px images to `icons/` for the favicon and installed app |
diff --git a/assets/icons/app/linux/exports/hicolor/128x128/apps/ai.storyteller.solidcraft.png b/assets/icons/app/linux/exports/hicolor/128x128/apps/io.tangencylabs.solidcraft.png
similarity index 100%
rename from assets/icons/app/linux/exports/hicolor/128x128/apps/ai.storyteller.solidcraft.png
rename to assets/icons/app/linux/exports/hicolor/128x128/apps/io.tangencylabs.solidcraft.png
diff --git a/assets/icons/app/linux/exports/hicolor/16x16/apps/ai.storyteller.solidcraft.png b/assets/icons/app/linux/exports/hicolor/16x16/apps/io.tangencylabs.solidcraft.png
similarity index 100%
rename from assets/icons/app/linux/exports/hicolor/16x16/apps/ai.storyteller.solidcraft.png
rename to assets/icons/app/linux/exports/hicolor/16x16/apps/io.tangencylabs.solidcraft.png
diff --git a/assets/icons/app/linux/exports/hicolor/24x24/apps/ai.storyteller.solidcraft.png b/assets/icons/app/linux/exports/hicolor/24x24/apps/io.tangencylabs.solidcraft.png
similarity index 100%
rename from assets/icons/app/linux/exports/hicolor/24x24/apps/ai.storyteller.solidcraft.png
rename to assets/icons/app/linux/exports/hicolor/24x24/apps/io.tangencylabs.solidcraft.png
diff --git a/assets/icons/app/linux/exports/hicolor/256x256/apps/ai.storyteller.solidcraft.png b/assets/icons/app/linux/exports/hicolor/256x256/apps/io.tangencylabs.solidcraft.png
similarity index 100%
rename from assets/icons/app/linux/exports/hicolor/256x256/apps/ai.storyteller.solidcraft.png
rename to assets/icons/app/linux/exports/hicolor/256x256/apps/io.tangencylabs.solidcraft.png
diff --git a/assets/icons/app/linux/exports/hicolor/32x32/apps/ai.storyteller.solidcraft.png b/assets/icons/app/linux/exports/hicolor/32x32/apps/io.tangencylabs.solidcraft.png
similarity index 100%
rename from assets/icons/app/linux/exports/hicolor/32x32/apps/ai.storyteller.solidcraft.png
rename to assets/icons/app/linux/exports/hicolor/32x32/apps/io.tangencylabs.solidcraft.png
diff --git a/assets/icons/app/linux/exports/hicolor/48x48/apps/ai.storyteller.solidcraft.png b/assets/icons/app/linux/exports/hicolor/48x48/apps/io.tangencylabs.solidcraft.png
similarity index 100%
rename from assets/icons/app/linux/exports/hicolor/48x48/apps/ai.storyteller.solidcraft.png
rename to assets/icons/app/linux/exports/hicolor/48x48/apps/io.tangencylabs.solidcraft.png
diff --git a/assets/icons/app/linux/exports/hicolor/512x512/apps/ai.storyteller.solidcraft.png b/assets/icons/app/linux/exports/hicolor/512x512/apps/io.tangencylabs.solidcraft.png
similarity index 100%
rename from assets/icons/app/linux/exports/hicolor/512x512/apps/ai.storyteller.solidcraft.png
rename to assets/icons/app/linux/exports/hicolor/512x512/apps/io.tangencylabs.solidcraft.png
diff --git a/assets/icons/app/linux/exports/hicolor/64x64/apps/ai.storyteller.solidcraft.png b/assets/icons/app/linux/exports/hicolor/64x64/apps/io.tangencylabs.solidcraft.png
similarity index 100%
rename from assets/icons/app/linux/exports/hicolor/64x64/apps/ai.storyteller.solidcraft.png
rename to assets/icons/app/linux/exports/hicolor/64x64/apps/io.tangencylabs.solidcraft.png
diff --git a/assets/platforms/linux/ai.storyteller.solidcraft.desktop b/assets/platforms/linux/io.tangencylabs.solidcraft.desktop
similarity index 62%
rename from assets/platforms/linux/ai.storyteller.solidcraft.desktop
rename to assets/platforms/linux/io.tangencylabs.solidcraft.desktop
index 818f5c78fd..789245ca90 100644
--- a/assets/platforms/linux/ai.storyteller.solidcraft.desktop
+++ b/assets/platforms/linux/io.tangencylabs.solidcraft.desktop
@@ -5,12 +5,12 @@ GenericName=3D CAD
Comment=Parametric 3D CAD: sketch, constrain, extrude, and change a parameter to rebuild
Exec=solidcraft %f
TryExec=solidcraft
-Icon=ai.storyteller.solidcraft
+Icon=io.tangencylabs.solidcraft
Terminal=false
StartupNotify=true
-StartupWMClass=ai.storyteller.solidcraft
+StartupWMClass=io.tangencylabs.solidcraft
Categories=Graphics;3DGraphics;Engineering;
Keywords=cad;3d;parametric;sketch;step;stl;modelling;modeling;
MimeType=application/x-solidcraft;model/step;model/iges;model/stl;model/3mf;
-# Releases before 0.8 used this desktop id; launchers keep pinned entries across the rename.
-X-Flatpak-RenamedFrom=ai.storyteller.solvecraft.desktop;
+# Desktop ids of earlier releases; launchers keep pinned entries across the renames.
+X-Flatpak-RenamedFrom=ai.storyteller.solidcraft.desktop;ai.storyteller.solvecraft.desktop;
diff --git a/assets/platforms/linux/ai.storyteller.solidcraft.metainfo.xml.in b/assets/platforms/linux/io.tangencylabs.solidcraft.metainfo.xml.in
similarity index 82%
rename from assets/platforms/linux/ai.storyteller.solidcraft.metainfo.xml.in
rename to assets/platforms/linux/io.tangencylabs.solidcraft.metainfo.xml.in
index ef9b2c237e..dfb5a2cf85 100644
--- a/assets/platforms/linux/ai.storyteller.solidcraft.metainfo.xml.in
+++ b/assets/platforms/linux/io.tangencylabs.solidcraft.metainfo.xml.in
@@ -2,7 +2,7 @@
<!-- AppStream metadata (software centres, Flathub). Template: package.sh substitutes @VERSION@
and @DATE@ from Cargo.toml and the build date. -->
<component type="desktop-application">
- <id>ai.storyteller.solidcraft</id>
+ <id>io.tangencylabs.solidcraft</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT OR Apache-2.0</project_license>
<name>SolidCraft</name>
@@ -24,8 +24,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.solidcraft.desktop</launchable>
- <icon type="stock">ai.storyteller.solidcraft</icon>
+ <launchable type="desktop-id">io.tangencylabs.solidcraft.desktop</launchable>
+ <icon type="stock">io.tangencylabs.solidcraft</icon>
<url type="homepage">https://docs.solidcraft.io/</url>
<url type="bugtracker">https://github.com/bherbruck/solidcraft/issues</url>
<url type="help">https://docs.solidcraft.io/</url>
@@ -56,11 +56,15 @@
<binary>solidcraft</binary>
<binary>solidcraft-cli</binary>
<mediatype>application/x-solidcraft</mediatype>
- <!-- The desktop id of releases before 0.8 (docs/compatibility.md). -->
+ <!-- The app and desktop ids of earlier releases (docs/compatibility.md). -->
+ <id>ai.storyteller.solidcraft</id>
+ <id>ai.storyteller.solidcraft.desktop</id>
<id>ai.storyteller.solvecraft.desktop</id>
</provides>
- <!-- Releases before 0.8 used the app id ai.storyteller.solvecraft (docs/compatibility.md). -->
+ <!-- Earlier app ids (docs/compatibility.md): ai.storyteller.solidcraft from 0.8 until the move
+ to Tangency Labs, ai.storyteller.solvecraft before 0.8. -->
<replaces>
+ <id>ai.storyteller.solidcraft</id>
<id>ai.storyteller.solvecraft</id>
</replaces>
<content_rating type="oars-1.1"/>
diff --git a/assets/platforms/linux/ai.storyteller.solidcraft.mime.xml b/assets/platforms/linux/io.tangencylabs.solidcraft.mime.xml
similarity index 93%
rename from assets/platforms/linux/ai.storyteller.solidcraft.mime.xml
rename to assets/platforms/linux/io.tangencylabs.solidcraft.mime.xml
index 15baa1891d..4a03d2caf9 100644
--- a/assets/platforms/linux/ai.storyteller.solidcraft.mime.xml
+++ b/assets/platforms/linux/io.tangencylabs.solidcraft.mime.xml
@@ -4,7 +4,7 @@
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-solidcraft">
<comment>SolidCraft design</comment>
- <icon name="ai.storyteller.solidcraft"/>
+ <icon name="io.tangencylabs.solidcraft"/>
<sub-class-of type="application/json"/>
<glob pattern="*.solidcraft"/>
<!-- Compatibility shim (docs/compatibility.md): designs saved before the rename. -->
diff --git a/assets/platforms/macos/Info.plist.in b/assets/platforms/macos/Info.plist.in
index f12ee746ad..40a20f7d17 100644
--- a/assets/platforms/macos/Info.plist.in
+++ b/assets/platforms/macos/Info.plist.in
@@ -13,7 +13,7 @@
<key>CFBundleExecutable</key>
<string>SolidCraft</string>
<key>CFBundleIdentifier</key>
- <string>ai.storyteller.solidcraft</string>
+ <string>io.tangencylabs.solidcraft</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
diff --git a/crates/engine/src/recovery.rs b/crates/engine/src/recovery.rs
index 336eadeda8..9c82b42f99 100644
--- a/crates/engine/src/recovery.rs
+++ b/crates/engine/src/recovery.rs
@@ -40,9 +40,9 @@ pub fn default_dir() -> Option<PathBuf> {
};
let (dir, legacy) = dirs_under(&long_names(&root), cfg!(windows) || cfg!(target_os = "macos"));
// Compatibility shim (docs/compatibility.md): autosaves made before the rename (or, in the
- // Flatpak sandbox, under the old app id) are copied to the new folder on first launch; the
+ // Flatpak sandbox, under an earlier app id) are copied to the new folder on first launch; the
// old folder is left as it was.
- for old in solidcraft_io::legacy_flatpak_path(&dir).into_iter().chain([legacy]) {
+ for old in solidcraft_io::legacy_flatpak_paths(&dir).into_iter().chain([legacy]) {
if let Err(e) = solidcraft_io::adopt_legacy_dir(&dir, &old) {
log::warn!("recovery: could not copy {} to {}: {e}", old.display(), dir.display());
}
diff --git a/crates/io/src/legacy_dir.rs b/crates/io/src/legacy_dir.rs
index 7dd70ea42f..0bd9315c01 100644
--- a/crates/io/src/legacy_dir.rs
+++ b/crates/io/src/legacy_dir.rs
@@ -6,9 +6,13 @@
use std::path::{Path, PathBuf};
/// The Linux app id (Flatpak, desktop entry, AppStream, Wayland `app_id`).
-pub const APP_ID: &str = "ai.storyteller.solidcraft";
-/// The app id of releases before 0.8 (compatibility shim, docs/compatibility.md).
+pub const APP_ID: &str = "io.tangencylabs.solidcraft";
+/// The app id of releases before 0.8 (compatibility shim, docs/compatibility.md). eframe kept
+/// the window state under it, so it is also the old settings key.
pub const LEGACY_APP_ID: &str = "ai.storyteller.solvecraft";
+/// Every earlier app id, newest first (compatibility shim, docs/compatibility.md): 0.8 until the
+/// move to Tangency Labs used `ai.storyteller.solidcraft`, releases before 0.8 `LEGACY_APP_ID`.
+pub const PREVIOUS_APP_IDS: [&str; 2] = ["ai.storyteller.solidcraft", LEGACY_APP_ID];
/// Most files and nesting copied from a legacy folder (it holds preferences, autosaves and
/// small caches; anything bigger is not ours).
@@ -27,23 +31,23 @@ pub fn adopt_legacy_dir(current: &Path, legacy: &Path) -> std::io::Result<bool>
Ok(true)
}
-/// In the Flatpak sandbox, the same `path` under the pre-rename app's data folder: Flatpak keeps
-/// each app's XDG folders under `~/.var/app/<app id>`, so after the app id changed, settings and
-/// autosaves of earlier Flatpak releases sit under the old id. `None` outside the sandbox or for
-/// paths outside our own `~/.var/app` folder. Flatpak moves that folder itself when an install
-/// follows the end-of-life rebase; this covers installs made next to the old app, which reach it
-/// read-only through the manifest's `--filesystem` grant.
-pub fn legacy_flatpak_path(path: &Path) -> Option<PathBuf> {
- flatpak_twin(path, &std::env::var_os("FLATPAK_ID")?, Path::new(&std::env::var_os("HOME")?))
+/// In the Flatpak sandbox, the same `path` under each earlier app id's data folder, newest first:
+/// Flatpak keeps each app's XDG folders under `~/.var/app/<app id>`, so after the app id changed,
+/// settings and autosaves of earlier Flatpak releases sit under the old id. Empty outside the
+/// sandbox or for paths outside our own `~/.var/app` folder. Flatpak moves that folder itself
+/// when an install follows the end-of-life rebase; this covers installs made next to the old
+/// app, which reach it read-only through the manifest's `--filesystem` grants.
+pub fn legacy_flatpak_paths(path: &Path) -> Vec<PathBuf> {
+ let (Some(id), Some(home)) = (std::env::var_os("FLATPAK_ID"), std::env::var_os("HOME")) else { return Vec::new() };
+ flatpak_twins(path, &id, Path::new(&home))
}
-fn flatpak_twin(path: &Path, flatpak_id: &std::ffi::OsStr, home: &Path) -> Option<PathBuf> {
- if flatpak_id != APP_ID {
- return None;
- }
+fn flatpak_twins(path: &Path, flatpak_id: &std::ffi::OsStr, home: &Path) -> Vec<PathBuf> {
let apps = home.join(".var").join("app");
- let rel = path.strip_prefix(apps.join(APP_ID)).ok()?;
- Some(apps.join(LEGACY_APP_ID).join(rel))
+ match path.strip_prefix(apps.join(APP_ID)) {
+ Ok(rel) if flatpak_id == APP_ID => PREVIOUS_APP_IDS.iter().map(|old| apps.join(old).join(rel)).collect(),
+ _ => Vec::new(),
+ }
}
fn copy_tree(from: &Path, to: &Path, depth: usize, budget: &mut usize) -> std::io::Result<()> {
@@ -100,14 +104,32 @@ mod tests {
}
#[test]
- fn flatpak_twin_maps_our_sandbox_data_to_the_old_app_id() {
+ fn flatpak_twins_map_our_sandbox_data_to_the_old_app_ids() {
let home = Path::new("/home/u");
- let ours = home.join(".var/app/ai.storyteller.solidcraft/data/solidcraft");
+ let ours = home.join(".var/app/io.tangencylabs.solidcraft/data/solidcraft");
let id = std::ffi::OsStr::new(APP_ID);
- assert_eq!(flatpak_twin(&ours, id, home), Some(home.join(".var/app/ai.storyteller.solvecraft/data/solidcraft")));
+ assert_eq!(
+ flatpak_twins(&ours, id, home),
+ [home.join(".var/app/ai.storyteller.solidcraft/data/solidcraft"), home.join(".var/app/ai.storyteller.solvecraft/data/solidcraft")]
+ );
// Outside our sandbox folder, or in another app's sandbox, there is nothing to map.
- assert_eq!(flatpak_twin(&home.join(".local/share/solidcraft"), id, home), None);
- assert_eq!(flatpak_twin(&ours, std::ffi::OsStr::new("org.example.Other"), home), None);
+ assert!(flatpak_twins(&home.join(".local/share/solidcraft"), id, home).is_empty());
+ assert!(flatpak_twins(&ours, std::ffi::OsStr::new("org.example.Other"), home).is_empty());
+ }
+
+ #[test]
+ fn the_desktop_entry_is_named_after_the_app_id() {
+ // The window's Wayland app_id / X11 class is APP_ID; the desktop names it and its file
+ // name, so docks find the entry and its icon.
+ let linux = Path::new(env!("CARGO_MANIFEST_DIR")).join("../../assets/platforms/linux");
+ let desktop = std::fs::read_to_string(linux.join(format!("{APP_ID}.desktop"))).unwrap();
+ assert!(desktop.lines().any(|l| l == format!("StartupWMClass={APP_ID}")));
+ assert!(desktop.lines().any(|l| l == format!("Icon={APP_ID}")));
+ let metainfo = std::fs::read_to_string(linux.join(format!("{APP_ID}.metainfo.xml.in"))).unwrap();
+ assert!(metainfo.contains(&format!("<id>{APP_ID}</id>")));
+ for old in PREVIOUS_APP_IDS {
+ assert!(metainfo.contains(&format!("<id>{old}</id>")) && desktop.contains(&format!("{old}.desktop;")));
+ }
}
#[test]
diff --git a/crates/io/src/lib.rs b/crates/io/src/lib.rs
index fa0c98622d..f0e98de480 100644
--- a/crates/io/src/lib.rs
+++ b/crates/io/src/lib.rs
@@ -32,7 +32,7 @@ pub mod vfs;
pub use dxf::{read_dxf, write_dxf};
pub use dxf_out::{DxfEntity, DxfLayer, DxfLinetype, DxfShape, loop_shapes, seg_shape, write_dxf_drawing};
-pub use legacy_dir::{APP_ID, LEGACY_APP_ID, adopt_legacy_dir, legacy_flatpak_path};
+pub use legacy_dir::{APP_ID, LEGACY_APP_ID, PREVIOUS_APP_IDS, adopt_legacy_dir, legacy_flatpak_paths};
pub use safe_write::{backup_path, write_atomic};
pub use sketch2d::{Geom2, MAX_DRAWING_BYTES};
pub use svg::read_svg;
diff --git a/crates/ui-egui/src/agent_chat/panel.rs b/crates/ui-egui/src/agent_chat/panel.rs
index d06925b5c4..88c0fcaf3c 100644
--- a/crates/ui-egui/src/agent_chat/panel.rs
+++ b/crates/ui-egui/src/agent_chat/panel.rs
@@ -1188,7 +1188,7 @@ fn switcher(app: &mut SolveApp, ui: &mut egui::Ui) {
}
#[cfg(not(target_arch = "wasm32"))]
-const FLATPAK_OVERRIDE: &str = "flatpak override --user ai.storyteller.solidcraft --filesystem=~/.nvm:ro --filesystem=~/.local/bin:ro --filesystem=~/.local/share/claude:ro --filesystem=~/.claude --filesystem=~/.claude.json --share=network";
+const FLATPAK_OVERRIDE: &str = "flatpak override --user io.tangencylabs.solidcraft --filesystem=~/.nvm:ro --filesystem=~/.local/bin:ro --filesystem=~/.local/share/claude:ro --filesystem=~/.claude --filesystem=~/.claude.json --share=network";
#[cfg(not(target_arch = "wasm32"))]
pub(super) fn no_agents_message() -> String {
@@ -1978,7 +1978,7 @@ mod tests {
child.args(["--exact", "agent_chat::panel::tests::empty_discovery_explains_flatpak_permissions", "--nocapture"]);
child.env(CHILD, case);
if case == "flatpak" {
- child.env("FLATPAK_ID", "ai.storyteller.solidcraft");
+ child.env("FLATPAK_ID", "io.tangencylabs.solidcraft");
} else {
child.env_remove("FLATPAK_ID");
}
diff --git a/crates/ui-egui/src/update.rs b/crates/ui-egui/src/update.rs
index a7ee2442d2..c6bdb59165 100644
--- a/crates/ui-egui/src/update.rs
+++ b/crates/ui-egui/src/update.rs
@@ -56,7 +56,7 @@ const MAX_ASSETS: usize = 400;
const TAB_ROOM: f32 = 300.0;
/// The Linux app ID (Flatpak, desktop files).
-pub const APP_ID: &str = "ai.storyteller.solidcraft";
+pub const APP_ID: &str = "io.tangencylabs.solidcraft";
/// Why a check failed. Automatic checks never show it; Check now does.
#[derive(Clone, Debug, PartialEq)]
diff --git a/crates/ui-egui/src/update/tests.rs b/crates/ui-egui/src/update/tests.rs
index c86ecc2ce2..690d70b21b 100644
--- a/crates/ui-egui/src/update/tests.rs
+++ b/crates/ui-egui/src/update/tests.rs
@@ -191,7 +191,7 @@ fn each_installation_gets_its_own_file() {
InstallKind::Snap { store: false }.update_command(Some("solidcraft-linux-x86_64.snap")).as_deref(),
Some("sudo snap install --dangerous ./solidcraft-linux-x86_64.snap")
);
- assert_eq!(InstallKind::Flatpak(APP_ID.into()).update_command(None).as_deref(), Some("flatpak update ai.storyteller.solidcraft"));
+ assert_eq!(InstallKind::Flatpak(APP_ID.into()).update_command(None).as_deref(), Some("flatpak update io.tangencylabs.solidcraft"));
assert_eq!(
InstallKind::Deb.update_command(Some("solidcraft-linux-x86_64.deb")).as_deref(),
Some("sudo apt install ./solidcraft-linux-x86_64.deb")
diff --git a/docs/agent-chat.md b/docs/agent-chat.md
index 2e067ad0d9..b3b4ba53f2 100644
--- a/docs/agent-chat.md
+++ b/docs/agent-chat.md
@@ -188,7 +188,7 @@ through nvm or `~/.local/bin` can therefore work in a terminal while SolidCraft
that no agent was found. For Claude Code and its ACP adapter, run:
```sh
-flatpak override --user ai.storyteller.solidcraft --filesystem=~/.nvm:ro --filesystem=~/.local/bin:ro --filesystem=~/.local/share/claude:ro --filesystem=~/.claude --filesystem=~/.claude.json --share=network
+flatpak override --user io.tangencylabs.solidcraft --filesystem=~/.nvm:ro --filesystem=~/.local/bin:ro --filesystem=~/.local/share/claude:ro --filesystem=~/.claude --filesystem=~/.claude.json --share=network
```
These permissions apply to SolidCraft for your user account:
diff --git a/docs/book/src/guide/getting-started.md b/docs/book/src/guide/getting-started.md
index 4bb2db13eb..58403bb69b 100644
--- a/docs/book/src/guide/getting-started.md
+++ b/docs/book/src/guide/getting-started.md
@@ -40,7 +40,7 @@ When updating from a build released under the previous product name, follow the
### Linux AppImage
The first time you open the AppImage it adds a menu entry and icons under `~/.local/share`
-(`applications/ai.storyteller.solidcraft.desktop`, `icons/hicolor`), so the desktop shows the
+(`applications/io.tangencylabs.solidcraft.desktop`, `icons/hicolor`), so the desktop shows the
right name and icon. It adds nothing if [appimaged](https://github.com/probonopd/go-appimage)
already made an entry for the file, or if a launcher such as Gear Lever or AppImageLauncher
started it (and removes the entry SolidCraft added before). To
@@ -61,8 +61,8 @@ to the same user installation:
```sh
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --user --if-not-exists solidcraft https://docs.solidcraft.io/flatpak/solidcraft.flatpakrepo
-flatpak install --user solidcraft ai.storyteller.solidcraft
-flatpak run ai.storyteller.solidcraft
+flatpak install --user solidcraft io.tangencylabs.solidcraft
+flatpak run io.tangencylabs.solidcraft
```
A SolidCraft remote added before the project moved to `docs.solidcraft.io` (from
@@ -70,17 +70,18 @@ A SolidCraft remote added before the project moved to `docs.solidcraft.io` (from
`flatpak remote-modify --user --url=https://docs.solidcraft.io/flatpak/repo/ solidcraft` and
`flatpak update --user`.
-Releases up to 0.7 used the application ID `ai.storyteller.solvecraft`. If you installed one
-of those from the SolidCraft remote, `flatpak update --user` reports it as end-of-life and offers
-to replace it with `ai.storyteller.solidcraft`; accept, and your settings and autosaves move with
-it. If you installed a `.flatpak` bundle, install the new bundle, launch it once (it copies your
-settings), then run `flatpak uninstall --user ai.storyteller.solvecraft` (see the
+Earlier releases used the application IDs `ai.storyteller.solidcraft` and, up to 0.7,
+`ai.storyteller.solvecraft`. If you installed one of those from the SolidCraft remote,
+`flatpak update --user` reports it as end-of-life and offers to replace it with
+`io.tangencylabs.solidcraft`; accept, and your settings and autosaves move with it. If you
+installed a `.flatpak` bundle, install the new bundle, launch it once (it copies your settings),
+then run `flatpak uninstall --user ai.storyteller.solidcraft` (or `ai.storyteller.solvecraft`; see the
[compatibility notes](https://github.com/bherbruck/solidcraft/blob/main/docs/compatibility.md#linux-app-id)).
Alternatively, download the release's `.flatpak` file for your architecture and run
`flatpak install --user ./solidcraft-VERSION-linux-ARCH.flatpak`. The bundle supplies the
Flathub runtime repository address; installation still needs internet access to fetch any
-missing runtime. Launch with `flatpak run ai.storyteller.solidcraft`, rather than looking for
+missing runtime. Launch with `flatpak run io.tangencylabs.solidcraft`, rather than looking for
a host `solidcraft` binary. Files chosen through Open/Save use the desktop file-chooser portal;
command-line paths outside Documents may need a specific additional filesystem permission.
diff --git a/docs/book/src/guide/troubleshooting.md b/docs/book/src/guide/troubleshooting.md
index 2a2fda414d..3762b8fa6f 100644
--- a/docs/book/src/guide/troubleshooting.md
+++ b/docs/book/src/guide/troubleshooting.md
@@ -15,7 +15,7 @@ start), skips the "Recover unsaved design?" offer and draws with the software re
- Windows: run `solidcraft.exe --safe-mode` from a terminal in the install folder, or add
` --safe-mode` to the end of a shortcut's *Target*.
- macOS: `open -a SolidCraft --args --safe-mode`
-- Linux: `solidcraft --safe-mode` (Flatpak: `flatpak run ai.storyteller.solidcraft --safe-mode`)
+- Linux: `solidcraft --safe-mode` (Flatpak: `flatpak run io.tangencylabs.solidcraft --safe-mode`)
Setting `SOLIDCRAFT_SAFE_MODE=1` does the same. From 0.10.2, if two launches in a row stop
before the window opens, the next one starts in safe mode by itself. `SOLIDCRAFT_RENDERER=cpu`
@@ -47,7 +47,7 @@ with a bug report.
| Windows | `%APPDATA%\SolidCraft` | `%LOCALAPPDATA%\SolidCraft` |
| macOS | `~/Library/Application Support/SolidCraft` | (the same folder) |
| Linux | `~/.local/share/solidcraft` | (the same folder); thumbnails in `$XDG_CACHE_HOME/SolidCraft` or `/tmp/SolidCraft` |
-| Linux (Flatpak) | `~/.var/app/ai.storyteller.solidcraft/data/solidcraft` | (the same folder) |
+| Linux (Flatpak) | `~/.var/app/io.tangencylabs.solidcraft/data/solidcraft` | (the same folder) |
On Windows, paste `%APPDATA%` or `%LOCALAPPDATA%` into the Explorer address bar to open the
folder. Releases before the rename used `SolveCraft` folders next to these; SolidCraft only
diff --git a/docs/book/src/guide/updates.md b/docs/book/src/guide/updates.md
index fa77b88027..b49b371192 100644
--- a/docs/book/src/guide/updates.md
+++ b/docs/book/src/guide/updates.md
@@ -98,7 +98,7 @@ and SolidCraft picks the one matching how it was installed:
| Installed as | Detected by | Download | How to update |
|---|---|---|---|
| AppImage | `APPIMAGE` is set | `solidcraft-linux-<arch>.AppImage` | Replace the old AppImage with the new one |
-| Flatpak | `FLATPAK_ID` is set | doesn't check (see below) | `flatpak update ai.storyteller.solidcraft` |
+| Flatpak | `FLATPAK_ID` is set | doesn't check (see below) | `flatpak update io.tangencylabs.solidcraft` |
| Snap from the Snap Store | `SNAP` is set | release page | `sudo snap refresh solidcraft` (snapd also refreshes by itself) |
| Snap from a downloaded file | `SNAP_REVISION` starts with `x` | `solidcraft-linux-<arch>.snap` | `sudo snap install --dangerous ./solidcraft-linux-<arch>.snap` |
| `.deb` | under `/usr`, dpkg knows `solidcraft` | `solidcraft-linux-<arch>.deb` | `sudo apt install ./solidcraft-linux-<arch>.deb` |
diff --git a/docs/compatibility.md b/docs/compatibility.md
index 9ecc3a6f0e..9cc17229ae 100644
--- a/docs/compatibility.md
+++ b/docs/compatibility.md
@@ -22,7 +22,7 @@ New designs are saved as `.solidcraft`. Files with the old extension still open
| Browser file picker | `apps/solidcraft-web/src/files.rs` (`accept`) |
| Windows | `assets/platforms/windows/solidcraft.wxs`: the `.solvecraft` extension on the design ProgId and in `SupportedTypes` |
| macOS | `assets/platforms/macos/Info.plist.in`: `solvecraft` in the design document type's extensions |
-| Linux / FreeBSD / Flatpak | `assets/platforms/linux/ai.storyteller.solidcraft.mime.xml`: `*.solvecraft` glob and the `application/x-solvecraft` alias |
+| Linux / FreeBSD / Flatpak | `assets/platforms/linux/io.tangencylabs.solidcraft.mime.xml`: `*.solvecraft` glob and the `application/x-solvecraft` alias |
Recent-files entries that point at a `.solvecraft` file keep working: they are plain paths and
open through the same detection. The browser app also lists designs it stored under the old
@@ -111,42 +111,45 @@ test `legacy_design_files_and_resource_uris`).
| Package | Decision | Why |
|---|---|---|
-| Flatpak app ID / Linux desktop ID | changed in 0.8 from `ai.storyteller.solvecraft` to `ai.storyteller.solidcraft` | The ID the ArtCraft launcher looks for (`ai.storyteller.<name>`). The `.desktop`, metainfo and MIME file names, the icon name, and the Wayland `app_id` / X11 class follow it. Existing installs are moved over; see [Linux app ID](#linux-app-id). |
+| Flatpak app ID / Linux desktop ID | changed in 0.8 from `ai.storyteller.solvecraft` to `ai.storyteller.solidcraft`, then with the move to Tangency Labs to `io.tangencylabs.solidcraft` | The project's own reverse-DNS domain. The `.desktop`, metainfo and MIME file names, the icon name, and the Wayland `app_id` / X11 class follow it. Existing installs are moved over; see [Linux app ID](#linux-app-id). |
| Flatpak remote file | `solidcraft.flatpakrepo`, plus a legacy `solvecraft.flatpakrepo` copy | Old links keep working; existing remotes point at the repo URL, which is unchanged. |
-| macOS bundle ID | changed to `ai.storyteller.solidcraft` | No updater depends on it; the app is drag-installed. macOS may ask again on first launch (unsigned builds). |
-| MSI `UpgradeCode` | **kept** | So the new MSI upgrades the old install in place. Product name is SolidCraft; the default folder becomes `Program Files\SolidCraft` (the major upgrade removes the old folder). A custom install folder isn't remembered across this one upgrade. |
+| macOS bundle ID | changed to `ai.storyteller.solidcraft`, then to `io.tangencylabs.solidcraft`; the CLI's signing identifier is `io.tangencylabs.solidcraft.cli` (was `ai.storyteller.solidcraft-cli`) | No updater depends on it; the app is drag-installed and replaces the old `SolidCraft.app`. Settings live in folders named after the product, not the bundle ID, so they stay. macOS ties privacy permissions (such as access to Documents or Downloads) to the bundle ID, so it asks for them once more after the update. |
+| MSI `UpgradeCode` | **kept** (also through the `io.tangencylabs` move; the Windows build sets no AppUserModelID and its ProgIDs `Solidcraft.Design` / `Solidcraft.Model` don't carry the app ID, so nothing there changes) | So the new MSI upgrades the old install in place. Product name is SolidCraft; the default folder becomes `Program Files\SolidCraft` (the major upgrade removes the old folder). A custom install folder isn't remembered across this one upgrade. |
| deb / rpm package name | renamed to `solidcraft`; deb `Replaces`/`Conflicts`/`Provides: solvecraft`, rpm `Obsoletes`/`Provides: solvecraft` | Installing the new package replaces the old one instead of installing side by side. |
| AppImage | `solidcraft-<version>-linux-<arch>.AppImage`; the release also carries a copy of its `.zsync` under the old `solvecraft-…` name | AppImages already installed look for the old-named `.zsync`, so AppImageUpdate keeps finding updates. |
## Linux app ID
-Releases up to 0.7 used `ai.storyteller.solvecraft`; 0.8 uses `ai.storyteller.solidcraft`
-everywhere (Flatpak, deb, rpm, AppImage, Snap, FreeBSD, Nix). The shims:
+Releases up to 0.7 used `ai.storyteller.solvecraft`; 0.8 until the move to Tangency Labs used
+`ai.storyteller.solidcraft`; releases since use `io.tangencylabs.solidcraft` everywhere (Flatpak,
+deb, rpm, AppImage, Snap, FreeBSD, Nix, and the macOS bundle). The settings and autosave folders
+(`solidcraft` / `SolidCraft`) are named after the product, not the app ID, so outside the Flatpak
+sandbox they don't move. The shims cover both earlier IDs:
| Shim | Where | What it does |
|---|---|---|
-| End-of-life rebase in the Flatpak repository | `packaging/flatpak-site.sh` | Each release's Pages deploy keeps the old `app/ai.storyteller.solvecraft/<arch>/stable` refs (mirrored from the previous deploy) and marks them once with `flatpak build-commit-from --end-of-life-rebase=ai.storyteller.solvecraft=ai.storyteller.solidcraft`. `flatpak update` then says the old app is end-of-life and offers to replace it with the new one; accepting installs `ai.storyteller.solidcraft`, uninstalls the old app, and Flatpak moves `~/.var/app/ai.storyteller.solvecraft` to the new id's folder (leaving a symlink at the old path) on the first launch, so settings and autosaves come along unchanged. |
-| AppStream `<replaces>` / `<provides>` | `assets/platforms/linux/ai.storyteller.solidcraft.metainfo.xml.in` | Software centres treat the new id as the successor of the old one and of `ai.storyteller.solvecraft.desktop`. |
-| `X-Flatpak-RenamedFrom` | `assets/platforms/linux/ai.storyteller.solidcraft.desktop` | Desktops that honour it (GNOME Shell) keep favourites and pinned launchers pointing at the renamed entry. |
-| Read-only access to the old Flatpak data folder | `--filesystem=~/.var/app/ai.storyteller.solvecraft:ro` in `packaging/linux/flatpak/ai.storyteller.solidcraft.bundle.yml`; `solidcraft_io::legacy_flatpak_path`, used by `adopt_legacy_settings` and `recovery::default_dir` | When the new app was installed next to the old one (for example from a `.flatpak` bundle, which has no update feed) instead of through the rebase, its first launch copies settings and autosaves from the old app's folder, as in section 4. The old folder is not changed. |
+| End-of-life rebase in the Flatpak repository | `packaging/flatpak-site.sh` | Each release's Pages deploy keeps the old `app/ai.storyteller.solidcraft/<arch>/stable` and `app/ai.storyteller.solvecraft/<arch>/stable` refs (mirrored from the previous deploy) and marks each with `flatpak build-commit-from --end-of-life-rebase=<old id>=io.tangencylabs.solidcraft` (once the repository has the new ref). A ref already marked with a rebase to an older id (`ai.storyteller.solvecraft` pointed at `ai.storyteller.solidcraft`) is marked again, so every old install moves in one step. `flatpak update` then says the old app is end-of-life and offers to replace it with the new one; accepting installs `io.tangencylabs.solidcraft`, uninstalls the old app, and Flatpak moves `~/.var/app/<old id>` to the new id's folder (leaving a symlink at the old path) on the first launch, so settings and autosaves come along unchanged. |
+| AppStream `<replaces>` / `<provides>` | `assets/platforms/linux/io.tangencylabs.solidcraft.metainfo.xml.in` | Software centres treat the new id as the successor of `ai.storyteller.solidcraft` and `ai.storyteller.solvecraft` and of their `.desktop` ids. |
+| `X-Flatpak-RenamedFrom` | `assets/platforms/linux/io.tangencylabs.solidcraft.desktop` (both old `.desktop` ids) | Desktops that honour it (GNOME Shell) keep favourites and pinned launchers pointing at the renamed entry. |
+| Read-only access to the old Flatpak data folders | `--filesystem=~/.var/app/ai.storyteller.solidcraft:ro` and `--filesystem=~/.var/app/ai.storyteller.solvecraft:ro` in `packaging/linux/flatpak/io.tangencylabs.solidcraft.bundle.yml`; `solidcraft_io::legacy_flatpak_paths` (`PREVIOUS_APP_IDS`, newest first), used by `adopt_legacy_settings` and `recovery::default_dir` | When the new app was installed next to an old one (for example from a `.flatpak` bundle, which has no update feed) instead of through the rebase, its first launch copies settings and autosaves from the newest old app's folder that exists, as in section 4. The old folders are not changed. |
| The old window `app_id` as eframe's legacy storage key | `adopt_legacy_settings` (`LEGACY_APP_ID`) | Window state that releases before the settings rename kept under `~/.local/share/ai.storyteller.solvecraft` is still copied (section 4). |
-| Old AppImage menu entries | `packaging/linux/AppRun` | An AppImage's first run removes the `ai.storyteller.solvecraft.desktop` entry and icons that an AppImage up to 0.7 installed in `~/.local/share`, so the menu doesn't show the app twice. |
+| Old AppImage menu entries | `packaging/linux/AppRun` | An AppImage's first run removes the `ai.storyteller.solidcraft.desktop` and `ai.storyteller.solvecraft.desktop` entries and icons that an earlier AppImage installed in `~/.local/share` (only entries it wrote itself), so the menu doesn't show the app twice. Test: `packaging/tests/apprun_test.py`. |
deb and rpm need no shim: the package (`solidcraft`) is unchanged, and an upgrade removes the old
-`/usr/share/applications/ai.storyteller.solvecraft.desktop`, metainfo, MIME and icon files
+`/usr/share/applications/ai.storyteller.*.desktop`, metainfo, MIME and icon files
because the new version doesn't ship them; the post-install script refreshes the desktop, MIME
and icon caches, so no stale menu entry is left. The Snap is unaffected apart from its
`common-id`: snapd names its menu entry after the snap.
Flatpak installed from a downloaded `.flatpak` bundle (no update feed): install the new bundle,
launch it once (settings and autosaves are copied), then
-`flatpak uninstall --user ai.storyteller.solvecraft`.
+`flatpak uninstall --user ai.storyteller.solidcraft` (or `ai.storyteller.solvecraft`).
**Removal:** keep the end-of-life refs in the Flatpak repository for at least six months after
-0.8.0 (until 2027-04) and at least two minor releases; removing them strands any install that
-hasn't run `flatpak update` since. The read-only filesystem grant and `legacy_flatpak_path` can go
-at the same time. `<replaces>`, `<provides>` and `X-Flatpak-RenamedFrom` are harmless and can stay.
-Tests: `flatpak_twin_maps_our_sandbox_data_to_the_old_app_id`,
+the release that moved to `io.tangencylabs.solidcraft` and at least two minor releases; removing
+them strands any install that hasn't run `flatpak update` since. The read-only filesystem grants
+and `legacy_flatpak_paths` can go at the same time. `<replaces>`, `<provides>` and `X-Flatpak-RenamedFrom` are harmless and can stay.
+Tests: `flatpak_twins_map_our_sandbox_data_to_the_old_app_ids`,
`first_launch_adopts_the_previous_release_settings`.
## macOS
diff --git a/docs/mcp.md b/docs/mcp.md
index d7e50c2c30..8b2026b158 100644
--- a/docs/mcp.md
+++ b/docs/mcp.md
@@ -133,7 +133,7 @@ not read-only, `destructiveHint` and `openWorldHint` are true.
### Client configuration
-`solidcraft-cli` is on `PATH` after every package install: the Windows installer adds its folder, the deb, rpm and FreeBSD packages install it in `/usr/bin`, the Homebrew cask links it, the AppImage writes a small `solidcraft-cli` launcher into `~/.local/bin` on its first run, and the macOS app links it into `/opt/homebrew/bin` or `/usr/local/bin` when it starts (Help > Install solidcraft-cli command does it with an administrator prompt when those are not writable). Two packages keep it out of `PATH` by design: Snap exposes it as `solidcraft.cli`, and Flatpak runs it as `flatpak run --command=solidcraft-cli ai.storyteller.solidcraft`; use those as the client's `command` (with `mcp` as the arguments).
+`solidcraft-cli` is on `PATH` after every package install: the Windows installer adds its folder, the deb, rpm and FreeBSD packages install it in `/usr/bin`, the Homebrew cask links it, the AppImage writes a small `solidcraft-cli` launcher into `~/.local/bin` on its first run, and the macOS app links it into `/opt/homebrew/bin` or `/usr/local/bin` when it starts (Help > Install solidcraft-cli command does it with an administrator prompt when those are not writable). Two packages keep it out of `PATH` by design: Snap exposes it as `solidcraft.cli`, and Flatpak runs it as `flatpak run --command=solidcraft-cli io.tangencylabs.solidcraft`; use those as the client's `command` (with `mcp` as the arguments).
The quickest way: **Help > Connect AI assistants…** in the app, or
diff --git a/flake.nix b/flake.nix
index 4b9d4650e4..65b2ac66a6 100644
--- a/flake.nix
+++ b/flake.nix
@@ -135,14 +135,14 @@
postInstall = ''
${pkgs.lib.optionalString pkgs.stdenv.isLinux ''
- install -Dm644 assets/platforms/linux/ai.storyteller.solidcraft.desktop \
- $out/share/applications/ai.storyteller.solidcraft.desktop
- install -Dm644 assets/platforms/linux/ai.storyteller.solidcraft.mime.xml \
- $out/share/mime/packages/ai.storyteller.solidcraft.xml
+ install -Dm644 assets/platforms/linux/io.tangencylabs.solidcraft.desktop \
+ $out/share/applications/io.tangencylabs.solidcraft.desktop
+ install -Dm644 assets/platforms/linux/io.tangencylabs.solidcraft.mime.xml \
+ $out/share/mime/packages/io.tangencylabs.solidcraft.xml
for size in 16 24 32 48 64 128 256 512; do
- icon=$out/share/icons/hicolor/''${size}x''${size}/apps/ai.storyteller.solidcraft.png
+ icon=$out/share/icons/hicolor/''${size}x''${size}/apps/io.tangencylabs.solidcraft.png
mkdir -p "$(dirname "$icon")"
- cp assets/icons/app/linux/exports/hicolor/''${size}x''${size}/apps/ai.storyteller.solidcraft.png "$icon" >/dev/null
+ cp assets/icons/app/linux/exports/hicolor/''${size}x''${size}/apps/io.tangencylabs.solidcraft.png "$icon" >/dev/null
done
''}
'';
diff --git a/packaging/env.sh b/packaging/env.sh
index 39408ae905..99a86a1d85 100644
--- a/packaging/env.sh
+++ b/packaging/env.sh
@@ -38,9 +38,10 @@ export DIST
export SOLIDCRAFT_BUILD_DATE="${SOLIDCRAFT_BUILD_DATE:-${SOLVECRAFT_BUILD_DATE:-$(date -u +%Y-%m-%d)}}"
export CARGO_TARGET_DIR="${CARGO_TARGET_DIR:-$ROOT/target}"
# The reverse-DNS id: Flatpak app id, desktop, metainfo and MIME file names, icon name and the
-# window's Wayland app_id / X11 class. Releases before 0.8 used ai.storyteller.solvecraft; the
-# Flatpak repository rebases that id to this one (packaging/flatpak-site.sh, docs/compatibility.md).
-APP_ID=ai.storyteller.solidcraft
+# window's Wayland app_id / X11 class. Earlier releases used ai.storyteller.solidcraft (0.8 until
+# the move to Tangency Labs) and ai.storyteller.solvecraft (before 0.8); the Flatpak repository
+# rebases both to this one (packaging/flatpak-site.sh, docs/compatibility.md).
+APP_ID=io.tangencylabs.solidcraft
export APP_ID
# Emit a GitHub Actions warning (plain stderr outside Actions).
diff --git a/packaging/flatpak-site.sh b/packaging/flatpak-site.sh
index 84e4d4ab06..045d886ddb 100644
--- a/packaging/flatpak-site.sh
+++ b/packaging/flatpak-site.sh
@@ -6,12 +6,13 @@ trap 'echo "flatpak-site.sh: line $LINENO: \"$BASH_COMMAND\" failed (exit $?)" >
site="${1:?site directory required}"
tag="${RELEASE_TAG:-}"
-app_id=ai.storyteller.solidcraft
-# Compatibility shim (docs/compatibility.md): releases before 0.8 used this app id. Its refs stay
-# in the repository, marked end-of-life with a rebase to $app_id once a release under $app_id
-# has been imported. Until then (the latest release is still from before the rename), the
-# release's bundles carry $legacy_id and are published as they are.
-legacy_id=ai.storyteller.solvecraft
+app_id=io.tangencylabs.solidcraft
+# Compatibility shim (docs/compatibility.md): earlier releases used these app ids (newest first:
+# 0.8 until the move to Tangency Labs, then releases before 0.8). Their refs stay in the
+# repository, marked end-of-life with a rebase to $app_id once a release under $app_id has been
+# imported. Until then (the latest release is still from before the move), the release's bundles
+# carry an old id and are published as they are.
+legacy_ids=(ai.storyteller.solidcraft ai.storyteller.solvecraft)
if [ -z "$tag" ]; then
tag="$(gh api "repos/$GITHUB_REPOSITORY/releases?per_page=100" \
--jq '[.[] | select(.draft == false and .prerelease == false)][0].tag_name // empty')"
@@ -56,12 +57,15 @@ for arch in x86_64 aarch64; do
ostree --repo="$validation_repo" init --mode=archive-z2
flatpak build-import-bundle "$validation_repo" "$bundles/$asset"
refs="$(ostree --repo="$validation_repo" refs)"
- if printf '%s\n' "$refs" | grep -Fxq "app/$app_id/$arch/stable"; then
- bundle_id=$app_id
- elif printf '%s\n' "$refs" | grep -Fxq "app/$legacy_id/$arch/stable"; then
- bundle_id=$legacy_id
- else
- echo "error: $asset holds neither app/$app_id/$arch/stable nor app/$legacy_id/$arch/stable; refs:" >&2
+ bundle_id=
+ for id in "$app_id" "${legacy_ids[@]}"; do
+ if printf '%s\n' "$refs" | grep -Fxq "app/$id/$arch/stable"; then
+ bundle_id=$id
+ break
+ fi
+ done
+ if [ -z "$bundle_id" ]; then
+ echo "error: $asset holds none of app/{$app_id,${legacy_ids[*]}}/$arch/stable; refs:" >&2
printf '%s\n' "$refs" >&2
exit 1
fi
@@ -73,22 +77,28 @@ for arch in x86_64 aarch64; do
echo "$asset: app/$bundle_id/$arch/stable"
flatpak build-import-bundle "$repo_dir" "$bundles/$asset"
done
-# `flatpak update` then offers existing installs of the old id the move to the new one, and
+# `flatpak update` then offers existing installs of an old id the move to the new one, and
# Flatpak moves their ~/.var/app data folder along. The mark is a new commit on the old ref (the
-# same app, so a skipped update changes nothing); it is made once and mirrored by later runs.
+# same app, so a skipped update changes nothing); it is made once and mirrored by later runs. A
+# ref already marked with a rebase to an older id (ai.storyteller.solvecraft pointed at
+# ai.storyteller.solidcraft) is marked again, so every old install moves straight to $app_id.
for arch in x86_64 aarch64; do
- legacy_ref="app/$legacy_id/$arch/stable"
- ostree --repo="$repo_dir" rev-parse "$legacy_ref" >/dev/null 2>&1 || continue
- # Only rebase to an app the repository has: a release from before the rename has no new ref.
- if ! ostree --repo="$repo_dir" rev-parse "app/$app_id/$arch/stable" >/dev/null 2>&1; then
- echo "$legacy_ref: no app/$app_id/$arch/stable yet, not marked end-of-life"
+ new_ref="app/$app_id/$arch/stable"
+ # Only rebase to an app the repository has: a release from before the move has no new ref.
+ if ! ostree --repo="$repo_dir" rev-parse "$new_ref" >/dev/null 2>&1; then
+ echo "$new_ref: not in the repository yet, old ids not marked end-of-life"
continue
fi
- if ! ostree --repo="$repo_dir" show --print-metadata-key=ostree.endoflife-rebase "$legacy_ref" >/dev/null 2>&1; then
- flatpak build-commit-from --no-update-summary --end-of-life-rebase="$legacy_id=$app_id" \
- --src-ref="$legacy_ref" "$repo_dir" "$legacy_ref"
- fi
- test "$(ostree --repo="$repo_dir" show --print-metadata-key=ostree.endoflife-rebase "$legacy_ref")" = "'app/$app_id/$arch/stable'"
+ for legacy_id in "${legacy_ids[@]}"; do
+ legacy_ref="app/$legacy_id/$arch/stable"
+ ostree --repo="$repo_dir" rev-parse "$legacy_ref" >/dev/null 2>&1 || continue
+ mark="$(ostree --repo="$repo_dir" show --print-metadata-key=ostree.endoflife-rebase "$legacy_ref" 2>/dev/null || true)"
+ if [ "$mark" != "'$new_ref'" ]; then
+ flatpak build-commit-from --no-update-summary --end-of-life-rebase="$legacy_id=$app_id" \
+ --src-ref="$legacy_ref" "$repo_dir" "$legacy_ref"
+ fi
+ test "$(ostree --repo="$repo_dir" show --print-metadata-key=ostree.endoflife-rebase "$legacy_ref")" = "'$new_ref'"
+ done
done
flatpak build-update-repo --title="SolidCraft" --comment='Official SolidCraft releases' \
--description='Official Flatpak repository for SolidCraft' \
diff --git a/packaging/linux/AppRun b/packaging/linux/AppRun
index 345091d5af..9d27aeee7f 100755
--- a/packaging/linux/AppRun
+++ b/packaging/linux/AppRun
@@ -3,7 +3,7 @@
# Adapted from PhotoCraft's AppRun (storytold/photocraft, Apache-2.0; see ATTRIBUTION.md).
#
# On Wayland the compositor resolves a window's dock icon by taking the window's
-# app_id (ai.storyteller.solidcraft) and looking up an installed .desktop file.
+# app_id (io.tangencylabs.solidcraft) and looking up an installed .desktop file.
# An AppImage installs nothing, so every AppImage run would otherwise show the
# generic "Wayland" icon. Best-effort desktop integration: on first run
# (and whenever the AppImage's path changes) install the .desktop entry and the
@@ -23,10 +23,11 @@
set -u
APPDIR="$(dirname "$(readlink -f "$0")")"
-DESK_ID=ai.storyteller.solidcraft
+DESK_ID=io.tangencylabs.solidcraft
CLI_MARKER="# solidcraft-cli wrapper written by the SolidCraft AppImage"
-# Compatibility shim (docs/compatibility.md): the desktop id of releases before 0.8.
-OLD_DESK_ID=ai.storyteller.solvecraft
+# Compatibility shim (docs/compatibility.md): the desktop ids of earlier releases (0.8 until the
+# move to Tangency Labs, and before 0.8).
+OLD_DESK_IDS="ai.storyteller.solidcraft ai.storyteller.solvecraft"
# The wrapper in ~/.local/bin: $1 is the AppImage's path, $2 the home folder.
install_cli() {
@@ -117,13 +118,15 @@ integrate() {
return 0
fi
- # An entry and icons that an AppImage before 0.8 installed under the old id would show a
- # second menu entry; remove them (only an entry this script wrote: it points Exec at a path).
- old="$apps/$OLD_DESK_ID.desktop"
- if [ -f "$old" ] && grep -q "^Icon=$OLD_DESK_ID\$" "$old" && grep -q '^Exec="' "$old"; then
- rm -f "$old" "$data"/icons/hicolor/*/apps/"$OLD_DESK_ID".png 2>/dev/null
- command -v update-desktop-database >/dev/null 2>&1 && update-desktop-database "$apps" >/dev/null 2>&1
- fi
+ # An entry and icons that an earlier AppImage installed under an old id would show a second
+ # menu entry; remove them (only an entry this script wrote: it points Exec at a path).
+ for old_id in $OLD_DESK_IDS; do
+ old="$apps/$old_id.desktop"
+ if [ -f "$old" ] && grep -q "^Icon=$old_id\$" "$old" && grep -q '^Exec="' "$old"; then
+ rm -f "$old" "$data"/icons/hicolor/*/apps/"$old_id".png 2>/dev/null
+ command -v update-desktop-database >/dev/null 2>&1 && update-desktop-database "$apps" >/dev/null 2>&1
+ fi
+ done
# Icons: per-file compare so an unchanged install costs a handful of cmp calls.
src_icons="$APPDIR/usr/share/icons/hicolor"
diff --git a/packaging/linux/flatpak-bundle.sh b/packaging/linux/flatpak-bundle.sh
index 95a5cbfd33..3444b25743 100755
--- a/packaging/linux/flatpak-bundle.sh
+++ b/packaging/linux/flatpak-bundle.sh
@@ -12,7 +12,7 @@
# installed per-user from Flathub. Unless --no-test, the bundle is installed per-user, the CLI
# is checked, and the desktop creates/measures a box on headless X11 and Wayland. The desktop
# check also needs python3, dbus-x11, xvfb, xauth and weston; no screenshots are produced.
-# Manifest: packaging/linux/flatpak/ai.storyteller.solidcraft.bundle.yml.
+# Manifest: packaging/linux/flatpak/io.tangencylabs.solidcraft.bundle.yml.
# Adapted from PhotoCraft's (storytold/photocraft, Apache-2.0; see ATTRIBUTION.md).
set -euo pipefail
# shellcheck source=../env.sh
diff --git a/packaging/linux/flatpak-smoke.py b/packaging/linux/flatpak-smoke.py
index 303a37fec5..2a6d81b1d6 100644
--- a/packaging/linux/flatpak-smoke.py
+++ b/packaging/linux/flatpak-smoke.py
@@ -19,7 +19,7 @@ import tempfile
import time
import zlib
-APP_ID = "ai.storyteller.solidcraft"
+APP_ID = "io.tangencylabs.solidcraft"
MAX_PIXELS = 16_000_000
MAX_PNG_BYTES = 70_000_000
SANDBOX_PROBE = r'''
diff --git a/packaging/linux/flatpak/ai.storyteller.solidcraft.bundle.yml b/packaging/linux/flatpak/io.tangencylabs.solidcraft.bundle.yml
similarity index 67%
rename from packaging/linux/flatpak/ai.storyteller.solidcraft.bundle.yml
rename to packaging/linux/flatpak/io.tangencylabs.solidcraft.bundle.yml
index a3cf3709e0..bc9f4cdbe4 100644
--- a/packaging/linux/flatpak/ai.storyteller.solidcraft.bundle.yml
+++ b/packaging/linux/flatpak/io.tangencylabs.solidcraft.bundle.yml
@@ -7,10 +7,11 @@
# during the build, and the same binaries as the AppImage/deb/rpm. The binaries need glibc >= 2.35
# and load X11, Wayland, xkbcommon and Vulkan at runtime; the freedesktop runtime has all of
# them, and the GPU driver comes from its org.freedesktop.Platform.GL extension.
-# Releases before 0.8 used the id ai.storyteller.solvecraft. The Flatpak repository marks that
-# id end-of-life with a rebase to this one, so `flatpak update` moves existing installs over
-# (packaging/flatpak-site.sh, docs/compatibility.md).
-id: ai.storyteller.solidcraft
+# Earlier releases used the ids ai.storyteller.solidcraft (0.8 until the move to Tangency Labs)
+# and ai.storyteller.solvecraft (before 0.8). The Flatpak repository marks both end-of-life with a
+# rebase to this one, so `flatpak update` moves existing installs over (packaging/flatpak-site.sh,
+# docs/compatibility.md).
+id: io.tangencylabs.solidcraft
runtime: org.freedesktop.Platform
runtime-version: '26.08'
sdk: org.freedesktop.Sdk
@@ -27,12 +28,13 @@ finish-args:
# files work anywhere without broad filesystem access. Documents is granted so files passed by
# path (the command line, recent designs) work in the usual place.
- --filesystem=xdg-documents
- # Compatibility shim (docs/compatibility.md): settings and autosaves of releases before 0.8,
- # kept under the old app id, read once on first launch when this app was installed next to
- # the old one instead of replacing it through `flatpak update`.
+ # Compatibility shim (docs/compatibility.md): settings and autosaves of earlier releases, kept
+ # under the old app ids, read once on first launch when this app was installed next to the old
+ # one instead of replacing it through `flatpak update`.
+ - --filesystem=~/.var/app/ai.storyteller.solidcraft:ro
- --filesystem=~/.var/app/ai.storyteller.solvecraft:ro
# Deliberately not granted: network (the optional --control server listens on 127.0.0.1 in
- # the sandbox; `flatpak override --user --share=network ai.storyteller.solidcraft` exposes it to
+ # the sandbox; `flatpak override --user --share=network io.tangencylabs.solidcraft` exposes it to
# host agents) and home/host filesystem access.
modules:
- name: solidcraft
@@ -42,10 +44,10 @@ modules:
- install -Dm755 bin/solidcraft-cli /app/bin/solidcraft-cli
# The old CLI name, forwarding to solidcraft-cli (compatibility shim, docs/compatibility.md).
- install -Dm755 bin/solvecraft-cli /app/bin/solvecraft-cli
- - install -Dm644 share/applications/ai.storyteller.solidcraft.desktop /app/share/applications/ai.storyteller.solidcraft.desktop
- - install -Dm644 share/mime/packages/ai.storyteller.solidcraft.xml /app/share/mime/packages/ai.storyteller.solidcraft.xml
+ - install -Dm644 share/applications/io.tangencylabs.solidcraft.desktop /app/share/applications/io.tangencylabs.solidcraft.desktop
+ - install -Dm644 share/mime/packages/io.tangencylabs.solidcraft.xml /app/share/mime/packages/io.tangencylabs.solidcraft.xml
# Already has the release's version and date substituted by package.sh.
- - install -Dm644 share/metainfo/ai.storyteller.solidcraft.metainfo.xml /app/share/metainfo/ai.storyteller.solidcraft.metainfo.xml
+ - install -Dm644 share/metainfo/io.tangencylabs.solidcraft.metainfo.xml /app/share/metainfo/io.tangencylabs.solidcraft.metainfo.xml
- mkdir -p /app/share/icons /app/share/doc && cp -R share/icons/hicolor /app/share/icons/ && cp -R share/doc/solidcraft /app/share/doc/
sources:
- type: dir
diff --git a/packaging/linux/snap/snapcraft.yaml b/packaging/linux/snap/snapcraft.yaml
index 3f6f75edf4..6e89042b7e 100644
--- a/packaging/linux/snap/snapcraft.yaml
+++ b/packaging/linux/snap/snapcraft.yaml
@@ -28,7 +28,7 @@ contact: https://github.com/bherbruck/solidcraft/issues
website: https://docs.solidcraft.io/
source-code: https://github.com/bherbruck/solidcraft
issues: https://github.com/bherbruck/solidcraft/issues
-icon: stage/share/icons/hicolor/512x512/apps/ai.storyteller.solidcraft.png
+icon: stage/share/icons/hicolor/512x512/apps/io.tangencylabs.solidcraft.png
base: core24
grade: stable
confinement: strict
@@ -41,10 +41,10 @@ platforms:
apps:
solidcraft:
command: usr/bin/solidcraft
- desktop: usr/share/applications/ai.storyteller.solidcraft.desktop
- # Ties the snap to the AppStream id (ai.storyteller.solidcraft, the same in every package) so
+ desktop: usr/share/applications/io.tangencylabs.solidcraft.desktop
+ # Ties the snap to the AppStream id (io.tangencylabs.solidcraft, the same in every package) so
# software centres treat it as the same app.
- common-id: ai.storyteller.solidcraft
+ common-id: io.tangencylabs.solidcraft
extensions: [gnome]
plugs:
- desktop
@@ -77,5 +77,5 @@ parts:
override-prime: |
craftctl default
# Point the menu entry at the packaged icon (the hicolor name isn't on the host's path).
- sed -i 's|^Icon=.*|Icon=${SNAP}/usr/share/icons/hicolor/256x256/apps/ai.storyteller.solidcraft.png|' \
- usr/share/applications/ai.storyteller.solidcraft.desktop
+ sed -i 's|^Icon=.*|Icon=${SNAP}/usr/share/icons/hicolor/256x256/apps/io.tangencylabs.solidcraft.png|' \
+ usr/share/applications/io.tangencylabs.solidcraft.desktop
diff --git a/packaging/macos/package.sh b/packaging/macos/package.sh
index 32f53bab2a..96707d2e8c 100755
--- a/packaging/macos/package.sh
+++ b/packaging/macos/package.sh
@@ -26,7 +26,7 @@ set -euo pipefail
# shellcheck source=../env.sh
. "$(dirname "${BASH_SOURCE[0]}")/../env.sh"
# The same reverse-DNS id as the Linux APP_ID.
-MACOS_BUNDLE_ID=ai.storyteller.solidcraft
+MACOS_BUNDLE_ID=io.tangencylabs.solidcraft
# sign_code <path> [identifier] [entitlements]: Developer ID with the hardened runtime and a secure
# timestamp, or the ad-hoc signature (Apple silicon refuses unsigned code) without an identity.
@@ -171,7 +171,7 @@ printf 'APPL????' >"$APP/Contents/PkgInfo"
# Signature over the whole bundle. Nested code is signed first: the bundle signature refuses an
# unsigned helper in Contents/MacOS. The entitlements go on the bundle (they apply to the main
# executable): the 3D mouse driver is loaded by the app, not by the CLI.
-sign_code "$APP/Contents/MacOS/solidcraft-cli" "$MACOS_BUNDLE_ID-cli"
+sign_code "$APP/Contents/MacOS/solidcraft-cli" "$MACOS_BUNDLE_ID.cli"
sign_code "$APP" "" "$SCRIPT_DIR/entitlements.plist"
codesign --verify --strict --deep --verbose=2 "$APP"
if [ -n "$SIGN_IDENTITY" ]; then
@@ -256,10 +256,10 @@ echo "==> building $CLI_ZIP"
CLI_DIR="$WORK/solidcraft-cli-$VERSION-macos-$ARCH"
mkdir -p "$CLI_DIR"
cp "$WORK/bin/solidcraft-cli" "$CLI_DIR/"
-sign_code "$CLI_DIR/solidcraft-cli" "$MACOS_BUNDLE_ID-cli"
+sign_code "$CLI_DIR/solidcraft-cli" "$MACOS_BUNDLE_ID.cli"
# Compatibility shim (docs/compatibility.md): the old CLI name forwards to solidcraft-cli.
cp "$WORK/bin/solvecraft-cli" "$CLI_DIR/"
-sign_code "$CLI_DIR/solvecraft-cli" "$MACOS_BUNDLE_ID-cli-alias"
+sign_code "$CLI_DIR/solvecraft-cli" "$MACOS_BUNDLE_ID.cli-alias"
copy_docs "$CLI_DIR"
rm -f "$CLI_ZIP"
ditto -c -k --keepParent "$CLI_DIR" "$CLI_ZIP"
diff --git a/packaging/tests/apprun_test.py b/packaging/tests/apprun_test.py
index a59a3e5421..999936dc4e 100644
--- a/packaging/tests/apprun_test.py
+++ b/packaging/tests/apprun_test.py
@@ -17,7 +17,7 @@ class AppRunCli(unittest.TestCase):
(self.appdir / "usr/bin").mkdir(parents=True)
(self.appdir / "usr/share/applications").mkdir(parents=True)
shutil.copy(ROOT / "packaging/linux/AppRun", self.appdir / "AppRun")
- (self.appdir / "usr/share/applications/ai.storyteller.solidcraft.desktop").write_text("[Desktop Entry]\nExec=solidcraft\n")
+ (self.appdir / "usr/share/applications/io.tangencylabs.solidcraft.desktop").write_text("[Desktop Entry]\nExec=solidcraft\n")
for name in ("solidcraft", "solidcraft-cli"):
p = self.appdir / "usr/bin" / name
p.write_text(f"#!/bin/sh\necho {name} \"$@\"\n")
@@ -61,6 +61,23 @@ class AppRunCli(unittest.TestCase):
self.run_apprun()
self.assertTrue(other.is_symlink())
+ def test_entries_under_earlier_app_ids_are_replaced(self):
+ apps = self.home / ".local/share/applications"
+ apps.mkdir(parents=True)
+ icons = self.home / ".local/share/icons/hicolor/256x256/apps"
+ icons.mkdir(parents=True)
+ for old in ("ai.storyteller.solidcraft", "ai.storyteller.solvecraft"):
+ (apps / f"{old}.desktop").write_text(f'[Desktop Entry]\nExec="/old/SolidCraft.AppImage" %F\nIcon={old}\n')
+ (icons / f"{old}.png").write_text("png")
+ # An entry this script did not write (a package's, Exec on PATH) is left alone.
+ (apps / "ai.storyteller.other.desktop").write_text("[Desktop Entry]\nExec=other\nIcon=ai.storyteller.other\n")
+ self.run_apprun()
+ self.assertTrue((apps / "io.tangencylabs.solidcraft.desktop").is_file())
+ for old in ("ai.storyteller.solidcraft", "ai.storyteller.solvecraft"):
+ self.assertFalse((apps / f"{old}.desktop").exists())
+ self.assertFalse((icons / f"{old}.png").exists())
+ self.assertTrue((apps / "ai.storyteller.other.desktop").is_file())
+
def test_opt_out_installs_nothing(self):
self.run_apprun(SOLIDCRAFT_NO_DESKTOP_INTEGRATION="1")
self.assertFalse(self.wrapper.exists())
diff --git a/xtask/src/app_icons.rs b/xtask/src/app_icons.rs
index 3183419aa2..bd9eafa127 100644
--- a/xtask/src/app_icons.rs
+++ b/xtask/src/app_icons.rs
@@ -13,7 +13,7 @@ pub fn run(root: &Path) -> Result<(), String> {
for size in [16, 24, 32, 48, 64, 128, 256, 512] {
let png = stage.join(format!("{size}.png"));
draw(&png, size)?;
- exports.push((png, format!("linux/exports/hicolor/{size}x{size}/apps/ai.storyteller.solidcraft.png")));
+ exports.push((png, format!("linux/exports/hicolor/{size}x{size}/apps/io.tangencylabs.solidcraft.png")));
}
let installer = stage.join("solidcraft.ico");
draw(&installer, 256)?;