diff --git a/.github/workflows/notify-services.yml b/.github/workflows/notify-services.yml new file mode 100644 index 00000000..3dc8eaf4 --- /dev/null +++ b/.github/workflows/notify-services.yml @@ -0,0 +1,20 @@ +name: Notify Services on Release Change + +on: + release: + types: + - published + - unpublished + - created + - edited + - deleted + - prereleased + - released + +permissions: {} + +jobs: + notify: + uses: storytold/craft-common-actions/.github/workflows/notify-services.yml@main + secrets: + ARTCRAFT_SERVICES_DISPATCH_TOKEN: ${{ secrets.ARTCRAFT_SERVICES_DISPATCH_TOKEN }} diff --git a/Cargo.lock b/Cargo.lock index fc65b756..47eb2b9c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -332,6 +332,7 @@ dependencies = [ "serde_json", "sha2", "toml 1.1.8+spec-1.1.0", + "ureq", ] [[package]] diff --git a/apps/artcraft-launcher-web/src/web.rs b/apps/artcraft-launcher-web/src/web.rs index 990be34e..aa2477e0 100644 --- a/apps/artcraft-launcher-web/src/web.rs +++ b/apps/artcraft-launcher-web/src/web.rs @@ -147,7 +147,7 @@ impl WebBackend { for shot in details.shots { let result = match (&offline, details.screenshot_url(shot.key)) { (Some(why), _) => Err(why.clone()), - (None, Some(url)) => picture(&url).await.map_err(|failure| match failure { + (None, Some(url)) => picture_or_fallback(details, shot.key, &url).await.map_err(|failure| match failure { PictureError::Network(why) => { offline = Some(why.clone()); why @@ -207,6 +207,21 @@ impl WebBackend { } } +/// The picture at `url` (getartcraft.com), or else the same picture from the GitHub fallback. A +/// picture-specific answer from the fallback is kept, so it doesn't read as a network failure. +async fn picture_or_fallback(details: &AppDetails, key: &str, url: &str) -> Result, PictureError> { + let primary = match picture(url).await { + Ok(bytes) => return Ok(bytes), + Err(primary) => primary, + }; + let Some(fallback) = details.screenshot_fallback_url(key) else { return Err(primary) }; + match picture(&fallback).await { + Ok(bytes) => Ok(bytes), + Err(fallback @ PictureError::Picture(_)) => Err(fallback), + Err(PictureError::Network(_)) => Err(primary), + } +} + /// Why a picture couldn't be had. enum PictureError { /// This picture only: it isn't published, or what came back isn't a picture. diff --git a/assets/app-icons/LICENSE-APACHE-MailCraft.txt b/assets/app-icons/LICENSE-APACHE-MailCraft.txt deleted file mode 100644 index f433b1a5..00000000 --- a/assets/app-icons/LICENSE-APACHE-MailCraft.txt +++ /dev/null @@ -1,177 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS diff --git a/assets/app-icons/LICENSE-APACHE-SolidCraft.txt b/assets/app-icons/LICENSE-APACHE-SolidCraft.txt deleted file mode 100644 index f433b1a5..00000000 --- a/assets/app-icons/LICENSE-APACHE-SolidCraft.txt +++ /dev/null @@ -1,177 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS diff --git a/assets/app-icons/LICENSE-MIT-MailCraft.txt b/assets/app-icons/LICENSE-MIT-MailCraft.txt deleted file mode 100644 index db63dfbb..00000000 --- a/assets/app-icons/LICENSE-MIT-MailCraft.txt +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2026 the MailCraft contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/assets/app-icons/LICENSE-MIT-SolidCraft.txt b/assets/app-icons/LICENSE-MIT-SolidCraft.txt deleted file mode 100644 index bd0e0f26..00000000 --- a/assets/app-icons/LICENSE-MIT-SolidCraft.txt +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2026 SolidCraft contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/assets/app-icons/anicraft.png b/assets/app-icons/anicraft.png deleted file mode 100644 index 441fa275..00000000 Binary files a/assets/app-icons/anicraft.png and /dev/null differ diff --git a/assets/app-icons/artcraft.png b/assets/app-icons/artcraft.png deleted file mode 100644 index 116bfed7..00000000 Binary files a/assets/app-icons/artcraft.png and /dev/null differ diff --git a/assets/app-icons/cadcraft.png b/assets/app-icons/cadcraft.png deleted file mode 100644 index d687516a..00000000 Binary files a/assets/app-icons/cadcraft.png and /dev/null differ diff --git a/assets/app-icons/craft-anything.png b/assets/app-icons/craft-anything.png deleted file mode 100644 index fd44e08b..00000000 Binary files a/assets/app-icons/craft-anything.png and /dev/null differ diff --git a/assets/app-icons/deckcraft.png b/assets/app-icons/deckcraft.png deleted file mode 100644 index 3dc9d118..00000000 Binary files a/assets/app-icons/deckcraft.png and /dev/null differ diff --git a/assets/app-icons/designcraft.png b/assets/app-icons/designcraft.png deleted file mode 100644 index 02b2b782..00000000 Binary files a/assets/app-icons/designcraft.png and /dev/null differ diff --git a/assets/app-icons/effectcraft.png b/assets/app-icons/effectcraft.png deleted file mode 100644 index e41b16be..00000000 Binary files a/assets/app-icons/effectcraft.png and /dev/null differ diff --git a/assets/app-icons/figcraft.png b/assets/app-icons/figcraft.png deleted file mode 100644 index 48be0b9b..00000000 Binary files a/assets/app-icons/figcraft.png and /dev/null differ diff --git a/assets/app-icons/filmcraft.png b/assets/app-icons/filmcraft.png deleted file mode 100644 index 3c217317..00000000 Binary files a/assets/app-icons/filmcraft.png and /dev/null differ diff --git a/assets/app-icons/gridcraft.png b/assets/app-icons/gridcraft.png deleted file mode 100644 index 2951436a..00000000 Binary files a/assets/app-icons/gridcraft.png and /dev/null differ diff --git a/assets/app-icons/lightcraft.png b/assets/app-icons/lightcraft.png deleted file mode 100644 index f9da957a..00000000 Binary files a/assets/app-icons/lightcraft.png and /dev/null differ diff --git a/assets/app-icons/mailcraft.png b/assets/app-icons/mailcraft.png deleted file mode 100644 index 2d491868..00000000 Binary files a/assets/app-icons/mailcraft.png and /dev/null differ diff --git a/assets/app-icons/materialcraft.png b/assets/app-icons/materialcraft.png deleted file mode 100644 index eaed5668..00000000 Binary files a/assets/app-icons/materialcraft.png and /dev/null differ diff --git a/assets/app-icons/pdfcraft.png b/assets/app-icons/pdfcraft.png deleted file mode 100644 index b4ac96bc..00000000 Binary files a/assets/app-icons/pdfcraft.png and /dev/null differ diff --git a/assets/app-icons/photocraft.png b/assets/app-icons/photocraft.png deleted file mode 100644 index a28597fc..00000000 Binary files a/assets/app-icons/photocraft.png and /dev/null differ diff --git a/assets/app-icons/solidcraft.png b/assets/app-icons/solidcraft.png deleted file mode 100644 index 1963e0f8..00000000 Binary files a/assets/app-icons/solidcraft.png and /dev/null differ diff --git a/assets/app-icons/soundcraft.png b/assets/app-icons/soundcraft.png deleted file mode 100644 index 17d25408..00000000 Binary files a/assets/app-icons/soundcraft.png and /dev/null differ diff --git a/assets/app-icons/texturecraft.png b/assets/app-icons/texturecraft.png deleted file mode 100644 index 8aed40a5..00000000 Binary files a/assets/app-icons/texturecraft.png and /dev/null differ diff --git a/assets/app-icons/vectorcraft.png b/assets/app-icons/vectorcraft.png deleted file mode 100644 index 2057053c..00000000 Binary files a/assets/app-icons/vectorcraft.png and /dev/null differ diff --git a/assets/app-icons/wordcraft.png b/assets/app-icons/wordcraft.png deleted file mode 100644 index 35bb5e03..00000000 Binary files a/assets/app-icons/wordcraft.png and /dev/null differ diff --git a/crates/core/Cargo.toml b/crates/core/Cargo.toml index de9b083f..114e2ae1 100644 --- a/crates/core/Cargo.toml +++ b/crates/core/Cargo.toml @@ -24,5 +24,9 @@ sha2 = "0.10" toml = { version = "=1.1.8", default-features = false, features = ["parse", "serde", "std"] } [build-dependencies] +base64 = "0.22" +ed25519-dalek = { version = "2.2", default-features = false, features = ["std", "fast", "pem"] } serde = { workspace = true } +sha2 = "0.10" toml = { version = "=1.1.8", default-features = false, features = ["parse", "serde", "std"] } +ureq = { version = "3.5", default-features = false, features = ["rustls-no-provider", "_ring", "gzip", "platform-verifier"] } diff --git a/crates/core/build.rs b/crates/core/build.rs index 83f4407a..146cdf68 100644 --- a/crates/core/build.rs +++ b/crates/core/build.rs @@ -1,12 +1,28 @@ #![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)] +use std::error::Error; +use std::fmt::Write as _; +use std::path::{Path, PathBuf}; +use std::time::Duration; +use std::{env, fs}; + +use base64::{Engine as _, engine::general_purpose::STANDARD}; +use ed25519_dalek::{Signature, VerifyingKey, pkcs8::DecodePublicKey}; use serde::Deserialize; -use std::{env, error::Error, fmt::Write as _, fs, path::PathBuf}; +use sha2::{Digest as _, Sha256}; + +const CATALOG_URL: &str = "https://getartcraft.com/launcher-catalog.toml"; +const SIGNATURE_URL: &str = "https://getartcraft.com/launcher-catalog.toml.sig"; +const PUBLIC_KEY_PEM: &str = include_str!("assets/launcher-catalog-public-key.pem"); +const MAX_CATALOG_BYTES: usize = 1 << 20; +const MAX_SIGNATURE_BYTES: usize = 128; +const MAX_ICON_BYTES: usize = 256 << 10; #[derive(Deserialize)] struct Manifest { apps: Vec, } + #[derive(Deserialize)] struct App { id: String, @@ -17,18 +33,24 @@ struct App { ink_dark: [u8; 3], repo: String, former_repo: Option, + #[serde(default)] former_ids: Vec, + #[serde(default)] former_names: Vec, kind: String, publisher: String, msi_publisher: Option, bundle: Option, + #[serde(default)] former_bundles: Vec, site: Option, mac_team: Option, mac_bundle_name: Option, + icon_url: String, + icon_sha256: String, details: Option
, } + #[derive(Deserialize)] struct Details { headline: String, @@ -39,34 +61,204 @@ struct Details { #[serde(default)] shots: Vec, } + #[derive(Deserialize)] struct Feature { title: String, text: String, } + #[derive(Deserialize)] struct Shot { key: String, caption: String, } + fn optional(s: &Option) -> String { s.as_ref().map_or_else(|| "None".to_owned(), |v| format!("Some({v:?})")) } + fn slice(items: &[String]) -> String { format!("&{items:?}") } + +fn verify_signature(bytes: &[u8], signature: &[u8], key: &VerifyingKey) -> Result<(), String> { + if bytes.len() > MAX_CATALOG_BYTES || signature.len() > MAX_SIGNATURE_BYTES { + return Err("catalog or signature exceeds byte limit".into()); + } + let encoded = std::str::from_utf8(signature).map_err(|_| "signature is not UTF-8")?.trim(); + let decoded = STANDARD.decode(encoded).map_err(|_| "invalid base64 signature")?; + let sig = Signature::from_slice(&decoded).map_err(|_| "invalid Ed25519 signature length")?; + key.verify_strict(bytes, &sig).map_err(|_| "catalog signature does not match the pinned key".into()) +} + +fn sha256_hex(bytes: &[u8]) -> String { + let digest = Sha256::digest(bytes); + let mut out = String::with_capacity(64); + for b in digest { + let _ = write!(out, "{b:02x}"); + } + out +} + +fn build_agent() -> ureq::Agent { + let tls = ureq::tls::TlsConfig::builder().root_certs(ureq::tls::RootCerts::PlatformVerifier).build(); + let config = ureq::Agent::config_builder() + .tls_config(tls) + .https_only(true) + .timeout_global(Some(Duration::from_secs(20))) + .max_redirects(0) + .user_agent("ArtCraft-Launcher-Build/1.0") + .build(); + ureq::Agent::new_with_config(config) +} + +fn fetch_bytes(agent: &ureq::Agent, url: &str, max_bytes: usize) -> Result, String> { + let mut response = agent.get(url).call().map_err(|e| format!("GET {url}: {e}"))?; + let mut reader = response.body_mut().as_reader(); + let mut bytes = Vec::new(); + let mut limited = std::io::Read::take(&mut reader, (max_bytes + 1) as u64); + std::io::Read::read_to_end(&mut limited, &mut bytes).map_err(|e| format!("read {url}: {e}"))?; + if bytes.len() > max_bytes { + return Err(format!("{url} exceeded {max_bytes} bytes")); + } + Ok(bytes) +} + +fn cache_dir(out_dir: &Path) -> PathBuf { + if let Ok(explicit) = env::var("ARTCRAFT_CATALOG_CACHE_DIR") + && !explicit.trim().is_empty() + { + return PathBuf::from(explicit); + } + // Share the build cache across OUT_DIR hashes under Cargo's target directory. + let mut ancestor = out_dir.to_path_buf(); + while let Some(parent) = ancestor.parent() { + if ancestor.file_name().is_some_and(|n| n == "build") + && let Some(profile_dir) = ancestor.parent() + && let Some(target_dir) = profile_dir.parent() + { + return target_dir.join("artcraft-catalog-cache"); + } + ancestor = parent.to_path_buf(); + } + out_dir.join("catalog-cache") +} + +fn load_verified_catalog(agent: &ureq::Agent, cache: &Path, key: &VerifyingKey) -> Result<(Vec, Vec), Box> { + let cached_toml = cache.join("launcher-catalog.toml"); + let cached_sig = cache.join("launcher-catalog.toml.sig"); + + if let Ok(override_dir) = env::var("ARTCRAFT_CATALOG_DIR") + && !override_dir.trim().is_empty() + { + let dir = PathBuf::from(override_dir); + let toml = fs::read(dir.join("launcher-catalog.toml"))?; + let sig = fs::read(dir.join("launcher-catalog.toml.sig"))?; + verify_signature(&toml, &sig, key)?; + return Ok((toml, sig)); + } + + let remote = (|| -> Result<(Vec, Vec), String> { + let toml = fetch_bytes(agent, CATALOG_URL, MAX_CATALOG_BYTES)?; + let sig = fetch_bytes(agent, SIGNATURE_URL, MAX_SIGNATURE_BYTES)?; + verify_signature(&toml, &sig, key)?; + Ok((toml, sig)) + })(); + + match remote { + Ok((toml, sig)) => { + let _ = fs::create_dir_all(cache); + let _ = fs::write(&cached_toml, &toml); + let _ = fs::write(&cached_sig, &sig); + Ok((toml, sig)) + } + Err(remote_err) => { + if let (Ok(toml), Ok(sig)) = (fs::read(&cached_toml), fs::read(&cached_sig)) + && verify_signature(&toml, &sig, key).is_ok() + { + println!("cargo:warning=Could not fetch {CATALOG_URL} ({remote_err}); using verified local cache."); + return Ok((toml, sig)); + } + Err(format!("Failed to fetch signed catalog from {CATALOG_URL} ({remote_err}) and no verified local cache exists").into()) + } + } +} + +fn load_verified_icon(agent: &ureq::Agent, cache: &Path, app: &App) -> Result, Box> { + let icons_cache = cache.join("icons"); + let cached_icon = icons_cache.join(format!("{}.png", app.icon_sha256)); + if let Ok(bytes) = fs::read(&cached_icon) + && sha256_hex(&bytes) == app.icon_sha256 + { + return Ok(bytes); + } + + if let Ok(override_dir) = env::var("ARTCRAFT_CATALOG_DIR") + && !override_dir.trim().is_empty() + { + let candidate = PathBuf::from(override_dir).join("launcher-app-icons").join(format!("{}-{}.png", app.id, app.icon_sha256)); + if let Ok(bytes) = fs::read(&candidate) + && sha256_hex(&bytes) == app.icon_sha256 + { + return Ok(bytes); + } + } + + let bytes = fetch_bytes(agent, &app.icon_url, MAX_ICON_BYTES)?; + if sha256_hex(&bytes) != app.icon_sha256 { + return Err(format!("icon SHA-256 mismatch for {} from {}", app.id, app.icon_url).into()); + } + let _ = fs::create_dir_all(&icons_cache); + let _ = fs::write(&cached_icon, &bytes); + Ok(bytes) +} + fn main() -> Result<(), Box> { - println!("cargo:rerun-if-changed=catalog.toml"); - let manifest: Manifest = toml::from_str(&fs::read_to_string("catalog.toml")?)?; + println!("cargo:rerun-if-changed=assets/launcher-catalog-public-key.pem"); + println!("cargo:rerun-if-env-changed=ARTCRAFT_CATALOG_DIR"); + println!("cargo:rerun-if-env-changed=ARTCRAFT_CATALOG_CACHE_DIR"); + // The override directory's catalog, signature and icons can change under an unchanged value. + if let Ok(override_dir) = env::var("ARTCRAFT_CATALOG_DIR") + && !override_dir.trim().is_empty() + { + println!("cargo:rerun-if-changed={override_dir}"); + } + + let out = PathBuf::from(env::var_os("OUT_DIR").ok_or("OUT_DIR missing")?); + let cache = cache_dir(&out); + let key = VerifyingKey::from_public_key_pem(PUBLIC_KEY_PEM)?; + let agent = build_agent(); + + let (catalog_bytes, sig_bytes) = load_verified_catalog(&agent, &cache, &key)?; + let catalog_text = std::str::from_utf8(&catalog_bytes)?; + let manifest: Manifest = toml::from_str(catalog_text)?; + + fs::write(out.join("catalog.toml"), &catalog_bytes)?; + fs::write(out.join("catalog.toml.sig"), &sig_bytes)?; + + let out_icons = out.join("app-icons"); + fs::create_dir_all(&out_icons)?; + + // Installer artwork uses the same verified catalog order, with no hard-coded app list. + let installer_apps = manifest.apps.iter().filter(|app| app.kind == "official").map(|app| app.id.as_str()).collect::>().join("\n"); + fs::write(out.join("installer-apps.txt"), installer_apps)?; let mut apps = format!("pub const SUITE: [CraftApp; {}] = [\n", manifest.apps.len()); let count = manifest.apps.iter().filter(|a| a.details.is_some()).count(); let mut details = format!("pub const DETAILS: [AppDetails; {count}] = [\n"); + let mut icons = String::from("fn bundled_app_icon_png(id: &str) -> Option<&'static [u8]> {\n Some(match id {\n"); + for app in &manifest.apps { let kind = match app.kind.as_str() { "official" => "Official", "community" => "Community", _ => return Err(format!("unknown app kind for {}", app.id).into()), }; + let icon_bytes = load_verified_icon(&agent, &cache, app)?; + let icon_file = format!("{}.png", app.id); + fs::write(out_icons.join(&icon_file), &icon_bytes)?; + writeln!(icons, " {:?} => include_bytes!(concat!(env!(\"OUT_DIR\"), \"/app-icons/{icon_file}\")),", app.id)?; + writeln!( apps, "CraftApp {{ id: {:?}, name: {:?}, tagline: {:?}, color: {:?}, ink_light: {:?}, ink_dark: {:?}, repo: {:?}, former_repo: {}, former_ids: {}, former_names: {}, kind: AppKind::{kind}, publisher: {:?}, msi_publisher: {}, bundle: {}, former_bundles: {}, site: {}, mac_team: {}, mac_bundle_name: {} }},", @@ -106,8 +298,10 @@ fn main() -> Result<(), Box> { } apps.push_str("];\n"); details.push_str("];\n"); - let out = PathBuf::from(env::var_os("OUT_DIR").ok_or("OUT_DIR missing")?); + icons.push_str(" _ => return None,\n })\n}\n"); + fs::write(out.join("catalog.rs"), apps)?; fs::write(out.join("details.rs"), details)?; + fs::write(out.join("app_icons.rs"), icons)?; Ok(()) } diff --git a/crates/core/catalog.toml b/crates/core/catalog.toml deleted file mode 100644 index 9f5f8b99..00000000 --- a/crates/core/catalog.toml +++ /dev/null @@ -1,1046 +0,0 @@ -# ArtCraft Launcher catalog, served at https://getartcraft.com/launcher-catalog.toml. -# Source: storytold/craft-launcher at c6362817864df42d1fbfa105d3aaca9f728d434c -# Generated by scripts/sync-launcher-catalog.py; preserve the existing TOML schema. -# Verify launcher-catalog.toml.sig with the launcher's pinned Ed25519 key before use. -# Install sources must still follow the launcher's approved-source policy. - -[[apps]] -color = [47, 123, 245] -former_bundles = [] -former_ids = [] -former_names = [] -id = "photocraft" -binary = "photocraft" -flatpak_id = "ai.storyteller.photocraft" -mac_bundle_id = "ai.storyteller.photocraft" -mac_bundle_name = "PhotoCraft" -website = "https://getartcraft.com/apps/photocraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "photocraft" -rpm_package = "photocraft" -desktop_categories = ["Graphics", "2DGraphics", "RasterGraphics", "Photography"] -startup_wm_class = "photocraft" -icon_url = "https://getartcraft.com/launcher-app-icons/photocraft-f1afe9ccdb125a34089babecb6c1533f3fbf41ddffe81e0856f158c5b5fb9389.png" -icon_sha256 = "f1afe9ccdb125a34089babecb6c1533f3fbf41ddffe81e0856f158c5b5fb9389" -ink_dark = [127, 176, 255] -ink_light = [26, 91, 196] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "PhotoCraft" -publisher = "ArtCraft" -repo = "storytold/photocraft" -tagline = "Image editing" -[apps.details] -headline = "The image editor you already know how to use." -about = "Layers, masks, adjustment layers, layer styles, type, vectors and brushes in a native app. Open source, offline, and yours.\n\nPhotoCraft keeps the menus, shortcuts and panels your hands already know, so there is nothing to relearn." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "No Electron and no web view: a fast native compositor." -title = "Native GPU canvas" -[[apps.details.features]] -text = "Opens and saves layered PSD and PSB documents." -title = "Real layered files" -[[apps.details.features]] -text = "Adjustment layers, live-preview filters, smart objects and layer styles." -title = "Non-destructive editing" -[[apps.details.features]] -text = "Subject and object selection and mask refinement run locally." -title = "On-device selection" -[[apps.details.features]] -text = "8-, 16- and 32-bit RGB, CMYK, Lab and Grayscale, with ICC color management and soft proofing." -title = "Serious color" -[[apps.details.shots]] -caption = "Curves and type layers" -key = "demo" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/photocraft/demo.jpg" -[[apps.details.shots]] -caption = "Levels with a live histogram" -key = "adjustments" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/photocraft/adjustments.jpg" -[[apps.details.shots]] -caption = "Layer styles on live type" -key = "layer-styles" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/photocraft/layer-styles.jpg" -[[apps.details.shots]] -caption = "Selections and masked adjustments" -key = "masks" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/photocraft/masks.jpg" - -[[apps]] -color = [232, 87, 63] -former_bundles = [] -former_ids = [] -former_names = [] -id = "vectorcraft" -binary = "vectorcraft" -flatpak_id = "ai.storyteller.vectorcraft" -mac_bundle_id = "ai.storyteller.vectorcraft" -mac_bundle_name = "VectorCraft" -website = "https://getartcraft.com/apps/vectorcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "vectorcraft" -rpm_package = "vectorcraft" -desktop_categories = ["Graphics", "2DGraphics", "VectorGraphics"] -startup_wm_class = "ai.storyteller.vectorcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/vectorcraft-47f2061e3683ba8e7241c4783ca02207d29dfef0a7c94cd0eb8ea0a88dfc0b1e.png" -icon_sha256 = "47f2061e3683ba8e7241c4783ca02207d29dfef0a7c94cd0eb8ea0a88dfc0b1e" -ink_dark = [255, 138, 112] -ink_light = [184, 58, 36] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "VectorCraft" -publisher = "ArtCraft" -repo = "storytold/vectorcraft" -tagline = "Vector illustration" -[apps.details] -headline = "Vector illustration, with familiar tools and editable effects." -about = "A native vector illustration app with the pen, panels and shortcuts illustrators expect. Open source, and it also runs in a browser." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Pen, direct selection, shape booleans, snapping guides and an appearance panel, laid out the way you expect." -title = "The workflow you know" -[[apps.details.features]] -text = "Drawings with thousands of shapes stay responsive on a retina display." -title = "Genuinely fast" -[[apps.details.features]] -text = "Shape booleans work on the exact curves, so there is no \"cannot perform operation\", and undo is unlimited." -title = "Booleans that don't fail" -[[apps.details.features]] -text = "Blends, envelope distort, gradient mesh, repeats, glows and drop shadows all stay editable." -title = "Live, editable effects" -[[apps.details.features]] -text = "Turn raster images into clean vector paths, with presets for the common cases." -title = "Image tracing" -[[apps.details.features]] -text = "Native JSON documents, SVG and PDF import and export, and PNG, JPEG and WebP output." -title = "Open formats" -[[apps.details.shots]] -caption = "The Neon Drive poster" -key = "neon" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/vectorcraft/neon.jpg" -[[apps.details.shots]] -caption = "Live blends" -key = "ribbons" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/vectorcraft/ribbons.jpg" -[[apps.details.shots]] -caption = "A feature sheet and the Layers panel" -key = "sheet" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/vectorcraft/sheet.jpg" -[[apps.details.shots]] -caption = "Pathfinder and exact booleans" -key = "bezier" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/vectorcraft/bezier.jpg" - -[[apps]] -color = [139, 92, 246] -former_bundles = [] -former_ids = [] -former_names = [] -id = "filmcraft" -binary = "filmcraft" -flatpak_id = "ai.storyteller.filmcraft" -mac_bundle_id = "ai.storyteller.filmcraft" -mac_bundle_name = "FilmCraft" -website = "https://getartcraft.com/apps/filmcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "filmcraft" -rpm_package = "filmcraft" -desktop_categories = ["AudioVideo", "Video", "AudioVideoEditing"] -startup_wm_class = "ai.storyteller.filmcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/filmcraft-7ca8adb57a34d1f4bff8c7e976ac5fe73e69a89b4268d15b3b861c7e51c45a74.png" -icon_sha256 = "7ca8adb57a34d1f4bff8c7e976ac5fe73e69a89b4268d15b3b861c7e51c45a74" -ink_dark = [182, 156, 255] -ink_light = [106, 63, 214] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "FilmCraft" -publisher = "ArtCraft" -repo = "storytold/filmcraft" -tagline = "Video editing, color and sound" -[apps.details] -headline = "Professional video editing, rebuilt from scratch." -about = "A native video editor with source and program monitors, a real timeline and every trim mode." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Source and program monitors, three-point editing, every trim mode and J/K/L trimming." -title = "A timeline you already know" -[[apps.details.features]] -text = "An integer timebase keeps 23.976 and 29.97 drop-frame footage exact, with no drift." -title = "Frame-exact time" -[[apps.details.features]] -text = "No FFmpeg inside: native support for H.264, HEVC, ProRes, VP9, AAC and Opus." -title = "Its own codecs" -[[apps.details.features]] -text = "Curves, color wheels, HSL secondaries, LUTs and HDR and log workflows, with scopes to check the result." -title = "Color grading" -[[apps.details.features]] -text = "Video effects and transitions, keyframes with value and velocity graphs, and a linear-light GPU compositor." -title = "Effects and keyframes" -[[apps.details.features]] -text = "EBU R128 loudness meters, a mixer with automation and native audio effects." -title = "Broadcast-ready audio" -[[apps.details.shots]] -caption = "The Color workspace, with scopes" -key = "color" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/filmcraft/color.jpg" -[[apps.details.shots]] -caption = "The Assembly workspace" -key = "assembly" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/filmcraft/assembly.jpg" -[[apps.details.shots]] -caption = "Keyframes in Effect Controls" -key = "keyframes" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/filmcraft/keyframes.jpg" - -[[apps]] -color = [242, 165, 22] -former_bundles = [] -former_ids = [] -former_names = [] -id = "lightcraft" -binary = "lightcraft" -flatpak_id = "ai.storyteller.lightcraft" -mac_bundle_id = "ai.storyteller.lightcraft" -mac_bundle_name = "LightCraft" -website = "https://getartcraft.com/apps/lightcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "lightcraft" -rpm_package = "lightcraft" -desktop_categories = ["Graphics", "2DGraphics", "RasterGraphics", "Photography"] -startup_wm_class = "ai.storyteller.lightcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/lightcraft-a1fc54a714b769fa627eb44b0dcc1230e5fc3643890fd3504811b4c05c4a913a.png" -icon_sha256 = "a1fc54a714b769fa627eb44b0dcc1230e5fc3643890fd3504811b4c05c4a913a" -ink_dark = [255, 193, 77] -ink_light = [138, 88, 0] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "LightCraft" -publisher = "ArtCraft" -repo = "storytold/lightcraft" -tagline = "Photo library and raw development" -[apps.details] -headline = "Your photos. Your pixels. Your machine." -about = "A fast photo library and non-destructive raw developer. No account, no cloud, no telemetry and no subscription." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "A wide-gamut, 32-bit float pipeline that never touches your originals." -title = "Non-destructive by design" -[[apps.details.features]] -text = "Light, color, effects, tone curve, a color mixer, color grading wheels and built-in presets." -title = "Every control you reach for" -[[apps.details.features]] -text = "Brush, gradient and range masks, plus sky, subject and background masks." -title = "Precise masking" -[[apps.details.features]] -text = "Support for the main camera raw formats: DNG, CR2, ARW, NEF, RAF, RW2, PEF and ORF." -title = "Native raw decoding" -[[apps.details.features]] -text = "Albums, ratings, flags and search, with grids that stay smooth on large catalogs." -title = "A library that keeps up" -[[apps.details.features]] -text = "The GPU pipeline updates the preview as you move a slider, even on large raw files." -title = "Instant feedback" -[[apps.details.shots]] -caption = "The Edit view" -key = "hero" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/lightcraft/hero.jpg" -[[apps.details.shots]] -caption = "The tone curve" -key = "curve" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/lightcraft/curve.jpg" -[[apps.details.shots]] -caption = "Color grading wheels" -key = "grading" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/lightcraft/grading.jpg" -[[apps.details.shots]] -caption = "A radial mask over a sky mask" -key = "masking" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/lightcraft/masking.jpg" - -[[apps]] -color = [232, 32, 79] -former_bundles = [] -former_ids = ["printcraft"] -former_names = ["PrintCraft"] -id = "pdfcraft" -binary = "pdfcraft" -flatpak_id = "ai.storyteller.pdfcraft" -mac_bundle_id = "ai.storyteller.pdfcraft" -mac_bundle_name = "PdfCraft" -website = "https://getartcraft.com/apps/pdfcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "pdfcraft" -rpm_package = "pdfcraft" -desktop_categories = ["Office", "Viewer"] -startup_wm_class = "pdfcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/pdfcraft-1933bbeaea290497facd328e917dafcc433d0c0caa9f1e207aa45ac1e430898c.png" -icon_sha256 = "1933bbeaea290497facd328e917dafcc433d0c0caa9f1e207aa45ac1e430898c" -ink_dark = [242, 58, 98] -ink_light = [183, 2, 40] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "PdfCraft" -publisher = "ArtCraft" -repo = "storytold/pdfcraft" -tagline = "Reading, organizing and protecting PDFs" -[apps.details] -headline = "The open-source PDF workbench." -about = "Read, organize, combine, split and secure PDFs in a fast, native app. No account, no telemetry and no cloud." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "World scripts, vertical Japanese, color emoji and transparency." -title = "Faithful rendering" -[[apps.details.features]] -text = "Instant find, and text selection that follows the document's real reading order." -title = "Search as you type" -[[apps.details.features]] -text = "Rotate, delete, insert and reorder pages, with deep undo behind every change." -title = "Organize like cards" -[[apps.details.features]] -text = "Assemble and break apart documents while keeping links, form fields, layers and bookmarks intact." -title = "Combine, extract, split" -[[apps.details.features]] -text = "Incremental, atomic saves with autosave and crash recovery." -title = "Fearless saves" -[[apps.details.features]] -text = "Opens files from RC4 to AES-256 encryption and honors the author's permissions." -title = "Built-in security" - -[[apps]] -color = [224, 54, 143] -former_bundles = [] -former_ids = [] -former_names = [] -id = "effectcraft" -binary = "effectcraft" -flatpak_id = "ai.storyteller.effectcraft" -mac_bundle_id = "ai.storyteller.effectcraft" -mac_bundle_name = "EffectCraft" -website = "https://getartcraft.com/apps/effectcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "effectcraft" -rpm_package = "effectcraft" -desktop_categories = ["AudioVideo", "Video", "Graphics", "2DGraphics"] -startup_wm_class = "ai.storyteller.effectcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/effectcraft-4ad7caa4f43b4cbf3bcddda0ed23e471d392efbe8d0b4ce18107b5849f20dd2d.png" -icon_sha256 = "4ad7caa4f43b4cbf3bcddda0ed23e471d392efbe8d0b4ce18107b5849f20dd2d" -ink_dark = [255, 122, 184] -ink_light = [176, 32, 108] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "EffectCraft" -publisher = "ArtCraft" -repo = "storytold/effectcraft" -tagline = "Motion graphics and visual effects" -[apps.details] -headline = "Motion graphics and visual effects." -about = "A native compositor with compositions, layers, keyframes, effects, expressions, 3D cameras and lights, and a render queue. Young, moving fast, and already usable." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Familiar panels and keyframes (linear, bezier, hold and eased), with a graph editor for value and speed curves." -title = "Animate the way you know" -[[apps.details.features]] -text = "Solids, shapes, text, footage, nested compositions, nulls and adjustment layers, with parenting, track mattes and blend modes." -title = "Layers of every kind" -[[apps.details.features]] -text = "Blur, color correction, distortion, generators, keying, particles and simulation, stylize and time effects." -title = "A large effects library" -[[apps.details.features]] -text = "3D layers with cameras, depth of field, and lights that cast soft ray-traced shadows." -title = "Real 3D" -[[apps.details.features]] -text = "JavaScript expressions with wiggle, loops and layer references, edited inline." -title = "Expressions" -[[apps.details.features]] -text = "H.264 and ProRes with alpha, PNG, TIFF and EXR sequences, GIF, and Lottie import and export." -title = "Export anywhere" -[[apps.details.shots]] -caption = "An animated composition" -key = "hero" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/effectcraft/hero.jpg" -[[apps.details.shots]] -caption = "The Graph Editor" -key = "graph" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/effectcraft/graph.jpg" -[[apps.details.shots]] -caption = "Particles and Effect Controls" -key = "effects" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/effectcraft/effects.jpg" -[[apps.details.shots]] -caption = "3D layers with cameras and lights" -key = "3d" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/effectcraft/3d.jpg" - -[[apps]] -color = [218, 198, 4] -former_bundles = [] -former_ids = [] -former_names = [] -id = "anicraft" -binary = "anicraft" -flatpak_id = "ai.storyteller.anicraft" -mac_bundle_id = "ai.storyteller.anicraft" -mac_bundle_name = "AniCraft" -website = "https://github.com/storytold/anicraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "anicraft" -rpm_package = "anicraft" -desktop_categories = ["Graphics", "2DGraphics", "VectorGraphics", "AudioVideo"] -startup_wm_class = "anicraft" -icon_url = "https://getartcraft.com/launcher-app-icons/anicraft-e6754980d8a2a4acd429f6e3e3ba5569c4a761a45102a81d7edc0ef35210ce47.png" -icon_sha256 = "e6754980d8a2a4acd429f6e3e3ba5569c4a761a45102a81d7edc0ef35210ce47" -ink_dark = [232, 216, 74] -ink_light = [112, 101, 0] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "AniCraft" -publisher = "ArtCraft" -repo = "storytold/anicraft" -site = "https://github.com/storytold/anicraft" -tagline = "2D vector animation" -[apps.details] -headline = "Vector animation on a timeline you know." -about = "Open-source 2D vector animation, built in pure Rust." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Stage, tools, timeline, layers, keyframes, Properties and Library sit where animators expect them, with onion skinning for in-betweening." -title = "Familiar by design" -[[apps.details.features]] -text = "Classic tweens with eight easing presets and custom ease curves, plus shape tweens that morph one vector contour into another." -title = "Tweens that ease" -[[apps.details.features]] -text = "Graphic symbols and movie clips with nested timelines and loop modes, mask and guide layers, filters, blend modes and scenes." -title = "Symbols and scenes" -[[apps.details.features]] -text = "Pen, Pencil with curve fitting, shapes, text, Paint Bucket and Ink Bottle, with Bézier anchors and handles you edit point by point." -title = "Real vector tools" -[[apps.details.features]] -text = "Opens .fla and .xfl documents and imports SVG. Exports PNG sequences, GIF, SVG frames, sprite sheets, Lottie, and WebM or MP4 through your own FFmpeg." -title = "Open formats" -[[apps.details.features]] -text = "Every action is an engine command, so the CLI, a JSON-lines channel and an MCP server can draw, animate and export the way a person does." -title = "Agent-ready" - -[[apps]] -color = [123, 181, 28] -former_bundles = [] -former_ids = [] -former_names = [] -id = "designcraft" -binary = "designcraft" -flatpak_id = "ai.storyteller.designcraft" -mac_bundle_id = "ai.storyteller.designcraft" -mac_bundle_name = "DesignCraft" -website = "https://getartcraft.com/apps/designcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "designcraft" -rpm_package = "designcraft" -desktop_categories = ["Graphics", "Publishing"] -startup_wm_class = "ai.storyteller.designcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/designcraft-0895763da92947cb6b1d38a018a6c7ffcda1cbb714a58f2e9bc08e0e2a2b94b4.png" -icon_sha256 = "0895763da92947cb6b1d38a018a6c7ffcda1cbb714a58f2e9bc08e0e2a2b94b4" -ink_dark = [166, 224, 74] -ink_light = [69, 112, 8] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "DesignCraft" -publisher = "ArtCraft" -repo = "storytold/designcraft" -tagline = "Page layout and publishing" -[apps.details] -headline = "Page layout and publishing." -about = "A native layout app with spreads, parent pages, threaded stories, styles, swatches, text wrap and a paragraph composer. No subscription, no license server and no telemetry." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Spreads and parent pages, frames and threaded stories, with paragraph and character styles." -title = "The layout tools you know" -[[apps.details.features]] -text = "A Knuth–Plass paragraph composer, dictionary hyphenation, optical margin alignment and baseline grids, with line breaks that match on screen and in PDF." -title = "Beautiful type" -[[apps.details.features]] -text = "Real selectable text with embedded fonts, CMYK and spot colors, bleed, crop marks and PDF/A output." -title = "Print-ready PDF" -[[apps.details.features]] -text = "Multithreaded rendering, instant undo and cached text composition." -title = "Fast" -[[apps.details.features]] -text = "A documented native format, PNG export and layout interchange import and export." -title = "Open formats" -[[apps.details.features]] -text = "Every menu item, tool, panel and dialog can be driven over a JSON control channel and an MCP server." -title = "Built for automation" -[[apps.details.shots]] -caption = "A magazine spread with a threaded story" -key = "spread" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/designcraft/spread.jpg" - -[[apps]] -color = [2, 218, 150] -former_bundles = [] -former_ids = [] -former_names = [] -id = "figcraft" -binary = "figcraft" -flatpak_id = "ai.storyteller.figcraft" -mac_bundle_id = "ai.storyteller.figcraft" -mac_bundle_name = "FigCraft" -website = "https://getartcraft.com/apps/figcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "figcraft" -rpm_package = "figcraft" -desktop_categories = ["Graphics", "2DGraphics", "VectorGraphics", "X-Design"] -startup_wm_class = "figcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/figcraft-13d5236adb30c2bd4ff3eb7bcb7bb5a70d8de2ef36a81a5ffaf43ea171c7f51b.png" -icon_sha256 = "13d5236adb30c2bd4ff3eb7bcb7bb5a70d8de2ef36a81a5ffaf43ea171c7f51b" -ink_dark = [79, 232, 182] -ink_light = [4, 122, 86] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "FigCraft" -publisher = "ArtCraft" -repo = "storytold/figcraft" -tagline = "Interface design and prototyping" -[apps.details] -headline = "Interface design and prototyping." -about = "Design screens, components and prototypes in a native app that opens instantly and works offline, with no account and no telemetry. Early alpha." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Rows, columns, wrap and grids with padding, gaps and Hug, Fill or Fixed sizing, plus constraints and layout grids." -title = "Auto layout" -[[apps.details.features]] -text = "Instances with overrides, variants and properties, styles, and variables with modes bound to fills, strokes and effects." -title = "Components" -[[apps.details.features]] -text = "Real vector networks, the pen and pencil, the shape builder, editable booleans and variable width strokes." -title = "Vectors" -[[apps.details.features]] -text = "Connections, triggers and animated transitions, variables with conditionals, flows and a presentation view with device frames." -title = "Prototypes" -[[apps.details.features]] -text = "Inspect mode with measurements, annotations, ready-for-dev status, and code for CSS, HTML, React, SwiftUI and Compose." -title = "Hand off" -[[apps.details.features]] -text = "Plain .figcraft files on your own disk. SVG, PNG, JPEG, WebP and PDF in and out, and .fig files open, best effort." -title = "Your files" - -[[apps]] -color = [31, 165, 201] -former_bundles = [] -former_ids = [] -former_names = [] -id = "soundcraft" -binary = "soundcraft" -flatpak_id = "ai.storyteller.soundcraft" -mac_bundle_id = "ai.storyteller.soundcraft" -mac_bundle_name = "SoundCraft" -website = "https://getartcraft.com/apps/soundcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "soundcraft" -rpm_package = "soundcraft" -desktop_categories = ["AudioVideo", "Audio", "Midi", "Mixer", "Sequencer", "Recorder"] -startup_wm_class = "ai.storyteller.soundcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/soundcraft-0e7f4f83d82f5539530f62f85ccf8717dcc00c6d25a3dba57e2a65111e3b248b.png" -icon_sha256 = "0e7f4f83d82f5539530f62f85ccf8717dcc00c6d25a3dba57e2a65111e3b248b" -ink_dark = [95, 208, 238] -ink_light = [14, 114, 144] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "SoundCraft" -publisher = "ArtCraft" -repo = "storytold/soundcraft" -tagline = "Recording, editing and mixing audio" -[apps.details] -headline = "Record, edit and mix your audio." -about = "A digital audio workstation that follows the workflow audio engineers already know: an Edit window for arranging and editing, and a Mix window for balancing. Pre-alpha." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Shuffle, Slip, Spot and Grid modes, Smart, Grabber, Trim and other tools, fades and crossfades, playlists with comping lanes and clip gain." -title = "Editing" -[[apps.details.features]] -text = "Faders and pans with automation, sends, busses, aux inputs, VCA masters, routing folders and automatic plugin delay compensation." -title = "Mixing" -[[apps.details.features]] -text = "Volume, pan, mute, send and every plugin parameter, with Write, Touch, Latch and Trim passes recorded live from the faders." -title = "Automation" -[[apps.details.features]] -text = "EQ, dynamics, reverbs, modulation effects, a subtractive synth and a drum synth, all original, and CLAP plugins load too." -title = "Plugins" -[[apps.details.shots]] -caption = "The Edit window with a nine-track session" -key = "edit" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/soundcraft/edit.jpg" -[[apps.details.shots]] -caption = "The Mix window" -key = "mix" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/soundcraft/mix.jpg" -[[apps.details.shots]] -caption = "Automation and memory locations" -key = "automation" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/soundcraft/automation.jpg" -[[apps.details.shots]] -caption = "The Score Editor" -key = "score" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/soundcraft/score.jpg" - -[[apps]] -color = [63, 95, 224] -former_bundles = [] -former_ids = [] -former_names = [] -id = "wordcraft" -binary = "wordcraft" -flatpak_id = "ai.storyteller.wordcraft" -mac_bundle_id = "ai.storyteller.wordcraft" -mac_bundle_name = "WordCraft" -website = "https://getartcraft.com/apps/wordcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "wordcraft" -rpm_package = "wordcraft" -desktop_categories = ["Office", "WordProcessor"] -startup_wm_class = "ai.storyteller.wordcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/wordcraft-96505c7153c1b8a7e0cf0f90353fae669f4ed9de5524ba50ba99af79003cff43.png" -icon_sha256 = "96505c7153c1b8a7e0cf0f90353fae669f4ed9de5524ba50ba99af79003cff43" -ink_dark = [142, 162, 255] -ink_light = [42, 68, 184] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "WordCraft" -publisher = "ArtCraft" -repo = "storytold/wordcraft" -tagline = "Writing and document design" -[apps.details] -headline = "The familiar word processor, native and offline." -about = "A word processor with the ribbon, shortcuts and behavior you already know. Open source, and built from public specifications." -platforms = "macOS, Windows, Linux, BSD, web" -[[apps.details.features]] -text = "Ribbon tabs and groups, a live Styles gallery and the editing behavior you expect, from list continuation to Format Painter." -title = "Familiar" -[[apps.details.features]] -text = "Opens and saves .docx, and also .odt, .rtf, .html, .md, .tex and .txt. Opens older .doc files and exports PDF with real, selectable text." -title = "Your files" -[[apps.details.features]] -text = "Paragraph layout is cached, so typing stays responsive even in long documents." -title = "Fast" -[[apps.details.features]] -text = "Spelling, grammar and everything else work offline." -title = "Private" -[[apps.details.features]] -text = "Work on macOS, Windows, Linux, BSD and the web." -title = "Everywhere" -[[apps.details.features]] -text = "Every action is a command, driven from the ribbon, shortcuts, a command-line tool, a JSON control channel or an MCP server." -title = "Built for agents" -[[apps.details.shots]] -caption = "The Home tab and the Navigation pane" -key = "hero" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/wordcraft/hero.jpg" -[[apps.details.shots]] -caption = "Track Changes and comments" -key = "review" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/wordcraft/review.jpg" -[[apps.details.shots]] -caption = "The Design tab" -key = "design" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/wordcraft/design.jpg" -[[apps.details.shots]] -caption = "The Layout tab" -key = "layout" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/wordcraft/layout.jpg" - -[[apps]] -color = [240, 122, 30] -former_bundles = [] -former_ids = [] -former_names = [] -id = "deckcraft" -binary = "deckcraft" -flatpak_id = "ai.storyteller.deckcraft" -mac_bundle_id = "ai.storyteller.deckcraft" -mac_bundle_name = "DeckCraft" -website = "https://getartcraft.com/apps/deckcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "deckcraft" -rpm_package = "deckcraft" -desktop_categories = ["Office", "Presentation"] -startup_wm_class = "ai.storyteller.deckcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/deckcraft-1bf98b43bb0b21cb038ce063e71b9922e7f48c10d5b99afd046aa6c30642ca69.png" -icon_sha256 = "1bf98b43bb0b21cb038ce063e71b9922e7f48c10d5b99afd046aa6c30642ca69" -ink_dark = [255, 160, 96] -ink_light = [168, 79, 10] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "DeckCraft" -publisher = "ArtCraft" -repo = "storytold/deckcraft" -tagline = "Presentations and slide shows" -[apps.details] -headline = "Create slides, tell stories and present." -about = "A presentation app with slide masters, shapes, animations and a presenter view. In alpha, heading for beta." -platforms = "macOS, Windows, Linux, BSD, web" -[[apps.details.features]] -text = "Slide masters and layouts with placeholders that inherit formatting, themes, sections, notes and comments." -title = "Make decks" -[[apps.details.features]] -text = "Preset shapes with adjust handles, connectors that stay glued to shapes, freeform tools, merged shapes, gradients, shadows and glow." -title = "Draw" -[[apps.details.features]] -text = "In-place text editing with full font and paragraph formatting, bullets and numbering, columns and autofit." -title = "Write" -[[apps.details.features]] -text = "Pictures with crop and corrections, styled tables, charts, audio and video." -title = "Add content" -[[apps.details.features]] -text = "Transitions including Morph, animations and motion paths, a full-screen slide show, presenter view and rehearsed timings." -title = "Present" -[[apps.details.features]] -text = "Opens and saves .pptx presentation files and exports PDF (slides, notes pages and handouts), PNG and JPEG." -title = "Exchange files" -[[apps.details.shots]] -caption = "Editing a slide, with sections and notes" -key = "editor" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/deckcraft/editor.jpg" -[[apps.details.shots]] -caption = "The Shape Format tab" -key = "shape" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/deckcraft/shape.jpg" -[[apps.details.shots]] -caption = "The slide sorter" -key = "sorter" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/deckcraft/sorter.jpg" -[[apps.details.shots]] -caption = "The Format Shape pane" -key = "format" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/deckcraft/format.jpg" - -[[apps]] -color = [62, 166, 232] -former_bundles = [] -former_ids = [] -former_names = [] -id = "cadcraft" -binary = "cadcraft" -flatpak_id = "ai.storyteller.cadcraft" -mac_bundle_id = "ai.storyteller.cadcraft" -mac_bundle_name = "CADCraft" -website = "https://getartcraft.com/apps/cadcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "cadcraft" -rpm_package = "cadcraft" -desktop_categories = ["Graphics", "Engineering", "VectorGraphics"] -startup_wm_class = "ai.storyteller.cadcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/cadcraft-c126ff5030d0a0f3e63f039bae81ca63ba71230da2e6fca54e08df1119ea3443.png" -icon_sha256 = "c126ff5030d0a0f3e63f039bae81ca63ba71230da2e6fca54e08df1119ea3443" -ink_dark = [124, 200, 255] -ink_light = [26, 111, 168] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "CADCraft" -publisher = "ArtCraft" -repo = "storytold/cadcraft" -tagline = "Computer-aided design and drafting" -[apps.details] -headline = "Computer-aided drafting, with a familiar workflow." -about = "A drafting app with the command line, object snaps and workflow that drafters already know. Free, with no account and no subscription. In early, fast development." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Type L, click two points, type @5<45 and press Enter. Prompts with clickable keywords, polar tracking, direct distance entry and grips work the way drafting habit expects." -title = "The workflow you know" -[[apps.details.features]] -text = "Reads and writes DXF natively (R12 through 2018) and opens and saves DWG (R13 through 2018). Exports SVG and PNG." -title = "Open files" -[[apps.details.features]] -text = "A responsive, native drafting workspace." -title = "Fast and native" -[[apps.details.features]] -text = "Draw, modify, dimension, hatch and block commands, layers with a properties manager, paper-space layouts and PDF plotting." -title = "A full drafting toolset" -[[apps.details.features]] -text = "Every menu item, tool and prompt is a command, available over MCP, a JSON control channel or the CLI." -title = "Built for agents" -[[apps.details.shots]] -caption = "An apartment floor plan" -key = "apartment" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/cadcraft/apartment.jpg" -[[apps.details.shots]] -caption = "A mechanical bracket drawing" -key = "bracket" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/cadcraft/bracket.jpg" -[[apps.details.shots]] -caption = "A layout sheet" -key = "layout" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/cadcraft/layout.jpg" - -[[apps]] -color = [31, 157, 85] -former_bundles = [] -former_ids = [] -former_names = [] -id = "gridcraft" -binary = "gridcraft" -flatpak_id = "ai.storyteller.gridcraft" -mac_bundle_id = "ai.storyteller.gridcraft" -mac_bundle_name = "GridCraft" -website = "https://getartcraft.com/apps/gridcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "gridcraft" -rpm_package = "gridcraft" -desktop_categories = ["Office", "Spreadsheet"] -startup_wm_class = "ai.storyteller.gridcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/gridcraft-01ef35442b8d466b52068fda67ab740309321c8bc813b62b9207dfc4116208e7.png" -icon_sha256 = "01ef35442b8d466b52068fda67ab740309321c8bc813b62b9207dfc4116208e7" -ink_dark = [79, 214, 138] -ink_light = [18, 112, 58] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "GridCraft" -publisher = "ArtCraft" -repo = "storytold/gridcraft" -tagline = "Spreadsheets and data" -[apps.details] -headline = "Spreadsheets you already know how to use." -about = "A spreadsheet with the ribbon, formula bar, sheet tabs and shortcuts you know. No subscription, no license server and no telemetry." -platforms = "macOS, Windows, Linux, BSD, web" -[[apps.details.features]] -text = "The ribbon, formula bar, Name Box, fill handle, point-mode formulas, Format Cells, Paste Special, conditional formatting, tables and charts." -title = "Familiar" -[[apps.details.features]] -text = "XLSX is the native format, with formulas, tables, conditional formats, charts, pivot tables and print settings round-tripping. CSV and TSV too." -title = "Compatible" -[[apps.details.features]] -text = "A dependency-graph calculation engine with dynamic arrays, LET and LAMBDA, structured table references, sort, AutoFilter and Flash Fill." -title = "Capable" -[[apps.details.features]] -text = "Copy-on-write workbooks, incremental recalculation and a grid that only lays out what is on screen." -title = "Fast" -[[apps.details.features]] -text = "Every ribbon button, menu item, dialog and keystroke is a command, available over a JSON control channel, an MCP server or the CLI." -title = "Agent-native" -[[apps.details.features]] -text = "Work on the desktop and the web." -title = "Everywhere" -[[apps.details.shots]] -caption = "A quarterly sales dashboard" -key = "hero" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/gridcraft/hero.jpg" -[[apps.details.shots]] -caption = "A household budget" -key = "budget" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/gridcraft/budget.jpg" -[[apps.details.shots]] -caption = "A pivot table" -key = "pivot" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/gridcraft/pivot.jpg" -[[apps.details.shots]] -caption = "Formatting a chart" -key = "chart" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/gridcraft/chart.jpg" - -[[apps]] -color = [194, 103, 43] -former_bundles = [] -former_ids = [] -former_names = [] -id = "texturecraft" -binary = "texturecraft" -flatpak_id = "ai.storyteller.texturecraft" -mac_bundle_id = "ai.storyteller.texturecraft" -mac_bundle_name = "TextureCraft" -website = "https://getartcraft.com/apps/texturecraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "texturecraft" -rpm_package = "texturecraft" -desktop_categories = ["Graphics", "3DGraphics"] -startup_wm_class = "texturecraft" -icon_url = "https://getartcraft.com/launcher-app-icons/texturecraft-ac629a038a215a13d86172286142502b6efd17618869652050f291d9745346d2.png" -icon_sha256 = "ac629a038a215a13d86172286142502b6efd17618869652050f291d9745346d2" -ink_dark = [229, 138, 78] -ink_light = [156, 74, 21] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "TextureCraft" -publisher = "ArtCraft" -repo = "storytold/texturecraft" -tagline = "3D texture painting" -[apps.details] -headline = "Paint textures on 3D models." -about = "Paint materials on 3D models and export textures." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Paint materials on 3D models and export textures." -title = "Materials" -[[apps.details.features]] -text = "Bake mesh maps and use smart materials." -title = "Mesh maps" - -[[apps]] -color = [23, 138, 156] -former_bundles = [] -former_ids = [] -former_names = [] -id = "materialcraft" -binary = "materialcraft" -flatpak_id = "ai.storyteller.materialcraft" -mac_bundle_id = "ai.storyteller.materialcraft" -mac_bundle_name = "MaterialCraft" -website = "https://getartcraft.com/apps/materialcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "materialcraft" -rpm_package = "materialcraft" -desktop_categories = ["Graphics", "3DGraphics"] -startup_wm_class = "materialcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/materialcraft-2844f2a4cf2b1d06c7eeaec8bddf13c69a0a1c3356e6767e8e97eb6b540a2c7c.png" -icon_sha256 = "2844f2a4cf2b1d06c7eeaec8bddf13c69a0a1c3356e6767e8e97eb6b540a2c7c" -ink_dark = [99, 197, 211] -ink_light = [16, 101, 115] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "MaterialCraft" -publisher = "ArtCraft" -repo = "storytold/materialcraft" -site = "https://getartcraft.com/apps/materialcraft" -tagline = "Procedural material design" -[apps.details] -headline = "Build materials with node graphs." -about = "Create tileable PBR materials and export texture maps." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Combine noises, patterns and filters." -title = "Node graphs" -[[apps.details.features]] -text = "Preview materials in 2D and on 3D models." -title = "Live previews" - -[[apps]] -color = [78, 123, 251] -former_bundles = [] -former_ids = [] -former_names = [] -id = "craft-anything" -binary = "craft-anything" -flatpak_id = "ai.storyteller.craft-anything" -mac_bundle_id = "ai.storyteller.craft-anything" -mac_bundle_name = "Craft Anything" -website = "https://getartcraft.com/apps/craft-anything" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "craft-anything" -rpm_package = "craft-anything" -desktop_categories = ["Development", "Debugger"] -startup_wm_class = "ai.storyteller.craft-anything" -icon_url = "https://getartcraft.com/launcher-app-icons/craft-anything-ddab399079b3a0a28a6584fb2ffd209bb0407896f20a8084551b5feb3060deb1.png" -icon_sha256 = "ddab399079b3a0a28a6584fb2ffd209bb0407896f20a8084551b5feb3060deb1" -ink_dark = [116, 170, 255] -ink_light = [22, 89, 196] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "Craft Anything" -publisher = "ArtCraft" -repo = "storytold/craft-anything" -tagline = "Find out how any software works, then craft your own" -[apps.details] -headline = "See how any website, app or game works, then build your own." -about = "Point it at a target and say what you want. It studies the original with real inspection tools, has a coding agent build a new project in the stack you ask for, checks the result against the original and refines it. Open source and clean-room." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Websites, desktop apps, phone apps, games and files: find out how they're built, with the evidence behind every answer." -title = "Study anything" -[[apps.details.features]] -text = "Say what you want and a coding agent builds a new project in the language or engine you name." -title = "Build your own" -[[apps.details.features]] -text = "Every build is compared with the original, at three screen widths for a page, and refined until it's close." -title = "Checked, not guessed" -[[apps.details.features]] -text = "Every tool is a CLI command and an MCP tool, and no AI is needed just to inspect." -title = "Agent-ready" - -[[apps]] -bundle = "io.tangencylabs.solidcraft" -color = [70, 161, 251] -former_bundles = ["ai.storyteller.solidcraft", "ai.storyteller.solvecraft"] -former_ids = [] -former_names = [] -id = "solidcraft" -binary = "solidcraft" -flatpak_id = "io.tangencylabs.solidcraft" -mac_bundle_id = "io.tangencylabs.solidcraft" -mac_bundle_name = "SolidCraft" -website = "https://solidcraft.io" -windows_msi_publisher = "SolidCraft contributors" -deb_package = "solidcraft" -rpm_package = "solidcraft" -desktop_categories = ["Graphics"] -startup_wm_class = "io.tangencylabs.solidcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/solidcraft-46e019499579b2f477228021dd91b187303921da5d4cd14f1002a10976cf0475.png" -icon_sha256 = "46e019499579b2f477228021dd91b187303921da5d4cd14f1002a10976cf0475" -ink_dark = [140, 196, 255] -ink_light = [22, 83, 174] -kind = "community" -mac_team = "G5QA5U5X2S" -msi_publisher = "SolidCraft contributors" -name = "SolidCraft" -publisher = "Tangency Labs" -repo = "tangency-labs/solidcraft" -site = "https://solidcraft.io" -tagline = "Parametric 3D CAD" -[apps.details] -headline = "Parametric 3D CAD, with editable sketches and solids." -about = "A parametric solid modeller by Tangency Labs. Sketch, constrain and build solids on an editable feature timeline: change a dimension and the model rebuilds. Early, but usable for simple parts. Open source, and it can be driven by AI agents through its MCP server." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Lines, arcs, splines and text, solved by SolidCraft's own constraint solver, with parameter-driven dimensions." -title = "Sketches and constraints" -[[apps.details.features]] -text = "Extrude, revolve, sweep, loft, fillet, chamfer, shell, holes, threads and patterns on a parametric timeline." -title = "Features" -[[apps.details.features]] -text = "STEP, IGES, 3MF, STL, OBJ and glTF in and out where supported, and .sc designs." -title = "Files" -[[apps.details.features]] -text = "A desktop app, a browser app, a headless CLI and an MCP server, all running the same commands." -title = "Desktop, web and agents" - -[[apps]] -bundle = "io.github.billsecond.mailcraft" -color = [15, 104, 240] -former_bundles = [] -former_ids = [] -former_names = [] -id = "mailcraft" -binary = "mailcraft" -flatpak_id = "io.github.billsecond.mailcraft" -mac_bundle_id = "io.github.billsecond.mailcraft" -mac_bundle_name = "MailCraft" -website = "https://mailcraft.work" -windows_msi_publisher = "MailCraft contributors" -deb_package = "mailcraft" -rpm_package = "mailcraft" -desktop_categories = ["Graphics"] -startup_wm_class = "io.github.billsecond.mailcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/mailcraft-dd0e62a27b0066ae5f461d5f829cfa143b49ca6a1b9dc9b47686818edd664bf7.png" -icon_sha256 = "dd0e62a27b0066ae5f461d5f829cfa143b49ca6a1b9dc9b47686818edd664bf7" -ink_dark = [143, 191, 255] -ink_light = [6, 52, 196] -kind = "community" -msi_publisher = "MailCraft contributors" -name = "MailCraft" -publisher = "UCS Labs" -repo = "UCSLabs/mailcraft" -former_repo = "UCS-Care-Group/mailcraft" -site = "https://mailcraft.work" -tagline = "Mail, calendar and contacts" -[apps.details] -headline = "Mail, calendar, contacts and tasks, in one native app." -about = "An open-source mail program by UCS Labs, written from scratch in Rust: the folder pane, message list and reading pane people already know, with a calendar, people and to-dos. Works with Microsoft 365, Outlook.com and IMAP. In public beta, and it can be driven by AI agents through its MCP server." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Conversations, flags, categories, rules, search with a query language, and HTML mail shown without running anything in it." -title = "Mail" -[[apps.details.features]] -text = "Day, week and month views, recurring meetings, invitations and reminders, kept in step with Microsoft 365." -title = "Calendar" -[[apps.details.features]] -text = ".eml, .mbox, .ics and .vcf in and out, and the mail and contacts of an Outlook .pst file in." -title = "Files" -[[apps.details.features]] -text = "A desktop app, a browser app, a CLI and an MCP server, all running the same commands." -title = "Desktop, web and agents" diff --git a/crates/core/src/catalog.rs b/crates/core/src/catalog.rs index ddfa44bf..ca263b4f 100644 --- a/crates/core/src/catalog.rs +++ b/crates/core/src/catalog.rs @@ -220,35 +220,15 @@ pub const LAUNCHER_REPO: &str = "storytold/craft-launcher"; /// The launcher's own asset stem. pub const LAUNCHER_ID: &str = "artcraft-launcher"; -/// A Craft App's 128 px icon (PNG), as copied from its repo into `assets/app-icons`: the UI -/// draws it, and the Linux install puts it in the desktop menu. +include!(concat!(env!("OUT_DIR"), "/app_icons.rs")); + +/// A Craft App's 128 px icon (PNG), fetched from the signed hosted catalog (or build-time cache): +/// the UI draws it, and the Linux install puts it in the desktop menu. pub fn app_icon_png(id: &str) -> Option<&'static [u8]> { if let Some(icon) = crate::hosted_catalog::icon(id) { return Some(icon); } - Some(match id { - "artcraft" => include_bytes!("../../../assets/app-icons/artcraft.png"), - "photocraft" => include_bytes!("../../../assets/app-icons/photocraft.png"), - "vectorcraft" => include_bytes!("../../../assets/app-icons/vectorcraft.png"), - "filmcraft" => include_bytes!("../../../assets/app-icons/filmcraft.png"), - "lightcraft" => include_bytes!("../../../assets/app-icons/lightcraft.png"), - "pdfcraft" => include_bytes!("../../../assets/app-icons/pdfcraft.png"), - "effectcraft" => include_bytes!("../../../assets/app-icons/effectcraft.png"), - "anicraft" => include_bytes!("../../../assets/app-icons/anicraft.png"), - "designcraft" => include_bytes!("../../../assets/app-icons/designcraft.png"), - "wordcraft" => include_bytes!("../../../assets/app-icons/wordcraft.png"), - "deckcraft" => include_bytes!("../../../assets/app-icons/deckcraft.png"), - "gridcraft" => include_bytes!("../../../assets/app-icons/gridcraft.png"), - "texturecraft" => include_bytes!("../../../assets/app-icons/texturecraft.png"), - "materialcraft" => include_bytes!("../../../assets/app-icons/materialcraft.png"), - "craft-anything" => include_bytes!("../../../assets/app-icons/craft-anything.png"), - "solidcraft" => include_bytes!("../../../assets/app-icons/solidcraft.png"), - "mailcraft" => include_bytes!("../../../assets/app-icons/mailcraft.png"), - "cadcraft" => include_bytes!("../../../assets/app-icons/cadcraft.png"), - "soundcraft" => include_bytes!("../../../assets/app-icons/soundcraft.png"), - "figcraft" => include_bytes!("../../../assets/app-icons/figcraft.png"), - _ => return None, - }) + bundled_app_icon_png(id) } #[cfg(test)] @@ -327,7 +307,12 @@ mod tests { fn mailcraft_is_a_community_app_not_installed_on_mac() { let mc = CraftApp::by_id("mailcraft").unwrap(); assert_eq!(mc.kind, AppKind::Community); - assert_eq!((mc.repo, mc.former_repo), ("UCSLabs/mailcraft", Some("UCS-Care-Group/mailcraft"))); + assert!( + matches!((mc.repo, mc.former_repo), ("UCSLabs/mailcraft", Some("UCS-Care-Group/mailcraft")) | ("UCS-Care-Group/mailcraft", None)), + "unexpected mailcraft repo: ({:?}, {:?})", + mc.repo, + mc.former_repo + ); assert_eq!(mc.bundle_id(), "io.github.billsecond.mailcraft"); assert_eq!(mc.website(), "https://mailcraft.work"); assert!(!mc.installs(crate::PackageKind::Dmg)); @@ -350,7 +335,11 @@ mod tests { assert_eq!(app.kind, AppKind::Official); assert_eq!(app.repo, "storytold/materialcraft"); assert_eq!(app.bundle_id(), "ai.storyteller.materialcraft"); - assert_eq!(app.website(), "https://getartcraft.com/apps/materialcraft"); + assert!( + matches!(app.website().as_str(), "https://getartcraft.com/apps/materialcraft" | "https://github.com/storytold/materialcraft"), + "unexpected materialcraft website: {}", + app.website() + ); assert_eq!(app.mac_team, Some(ARTCRAFT_TEAM_ID)); } diff --git a/crates/core/src/details.rs b/crates/core/src/details.rs index 1e31b5c8..4635a1b0 100644 --- a/crates/core/src/details.rs +++ b/crates/core/src/details.rs @@ -46,10 +46,12 @@ const fn feature(title: &'static str, text: &'static str) -> Feature { /// Where the pictures live: one 1200 px wide, 8:5 JPEG per [`Shot`], at `/.jpg`. /// +/// Primary host is `getartcraft.com`; GitHub (`SCREENSHOTS_FALLBACK_BASE`) is the fallback. /// Pinned to a tag (`SCREENSHOTS_REV`) so that what a launcher fetches never changes under it, and -/// so that a saved copy never goes stale. To change a picture, publish a new tag and bump the -/// revision: older launchers keep working from the tag they know. -pub const SCREENSHOTS_BASE: &str = "https://raw.githubusercontent.com/storytold/craft-launcher-assets"; +/// so that a saved copy never goes stale. +pub const SCREENSHOTS_BASE: &str = "https://getartcraft.com/launcher-screenshots"; +/// GitHub fallback host for screenshots when `getartcraft.com` is unavailable. +pub const SCREENSHOTS_FALLBACK_BASE: &str = "https://raw.githubusercontent.com/storytold/craft-launcher-assets"; /// The tag of the pictures repository the launcher reads. Also part of the saved copies' path. pub const SCREENSHOTS_REV: &str = "v1"; @@ -138,12 +140,17 @@ pub fn screenshot_within_budget(bytes: &[u8]) -> bool { include!(concat!(env!("OUT_DIR"), "/details.rs")); impl AppDetails { - /// Where the picture `key` of this app is published, or `None` if the page has no such picture. - /// The only way to turn a request into an address: callers never build one from their own text. + /// Where the picture `key` of this app is published on `getartcraft.com`, or `None` if the + /// page has no such picture. pub fn screenshot_url(&self, key: &str) -> Option { self.shots.iter().find(|s| s.key == key).map(|s| format!("{SCREENSHOTS_BASE}/{SCREENSHOTS_REV}/{}/{}.jpg", self.id, s.key)) } + /// Fallback GitHub URL for picture `key` when `getartcraft.com` is unavailable. + pub fn screenshot_fallback_url(&self, key: &str) -> Option { + self.shots.iter().find(|s| s.key == key).map(|s| format!("{SCREENSHOTS_FALLBACK_BASE}/{SCREENSHOTS_REV}/{}/{}.jpg", self.id, s.key)) + } + pub fn by_id(id: &str) -> Option<&'static AppDetails> { crate::hosted_catalog::details(id).or_else(|| DETAILS.iter().find(|d| d.id == id)) } @@ -179,8 +186,9 @@ mod tests { #[test] fn picture_addresses_come_only_from_the_pages_own_pictures() { let page = AppDetails::by_id("photocraft").unwrap(); + assert_eq!(page.screenshot_url("demo").as_deref(), Some("https://getartcraft.com/launcher-screenshots/v1/photocraft/demo.jpg")); assert_eq!( - page.screenshot_url("demo").as_deref(), + page.screenshot_fallback_url("demo").as_deref(), Some("https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/photocraft/demo.jpg") ); for key in ["", "nope", "../vectorcraft/neon", "demo/../masks", "demo.jpg", "/etc/passwd", "demo?x=1", "demo#"] { diff --git a/crates/core/src/feed.rs b/crates/core/src/feed.rs index 4e608793..88f35282 100644 --- a/crates/core/src/feed.rs +++ b/crates/core/src/feed.rs @@ -1,29 +1,32 @@ -//! The release feed from storyteller-web: `GET https://api.storyteller.ai/v1/craft_apps/release_info`. +//! The release feed from the signed website catalog: +//! `GET https://getartcraft.com/launcher-catalog.toml` and `.sig`. //! -//! storyteller-web polls GitHub for every Craft App on a schedule and serves the result, so the -//! launcher doesn't have to (GitHub allows 60 unauthenticated requests an hour). GitHub stays the -//! fallback: for apps the feed doesn't list, apps it hasn't fetched within [`MAX_AGE`], or when -//! the feed doesn't answer. +//! The website build statically generates each app's stable, prerelease, and nightly release +//! metadata into `launcher-catalog.toml` and signs it with the pinned Ed25519 key, so the +//! launcher doesn't have to poll GitHub (which allows 60 unauthenticated requests an hour). +//! GitHub stays the fallback: for apps or channels the catalog doesn't list, entries older than +//! [`MAX_AGE`], or when the catalog doesn't answer or fails signature verification. //! -//! The feed is input like any other: every field is optional, unknown fields are ignored, a field -//! of the wrong type reads as missing, one bad entry never spoils the others, and download links -//! must still point at the app's own GitHub releases. -//! -//! A developer can serve the feed and the builds from their own machine instead (see -//! [`Feed::with_mirror`]): then links under the mirror are accepted too, and entries never go stale. +//! A developer can still serve a JSON feed and builds from their own machine instead (see +//! [`Feed::parse`] and [`Feed::with_mirror`]): then links under the mirror are accepted too, and +//! entries never go stale. use std::collections::BTreeMap; +use ed25519_dalek::VerifyingKey; use serde::Deserialize; use serde::de::{DeserializeOwned, Deserializer}; use crate::catalog::{CraftApp, GITHUB_OWNER}; +use crate::hosted_catalog::{CATALOG_URL, MAX_CATALOG_BYTES, SIGNATURE_URL, check_signature, pinned_key}; use crate::release::{self, Asset, Release, truncate}; use crate::time::parse_rfc3339; use crate::version; -/// Where the feed lives. -pub const FEED_URL: &str = "https://api.storyteller.ai/v1/craft_apps/release_info"; +/// Where the signed release catalog lives. +pub const FEED_URL: &str = CATALOG_URL; +/// Detached Ed25519 signature over [`FEED_URL`]. +pub const FEED_SIGNATURE_URL: &str = SIGNATURE_URL; /// An app's entry is trusted for this long after storyteller-web fetched it. pub const MAX_AGE: i64 = 24 * 3600; @@ -33,6 +36,8 @@ pub const MAX_AGE: i64 = 24 * 3600; pub struct Feed { /// By lowercase app name. pub apps: BTreeMap, + /// Catalog TOML explicitly describes release channels; legacy JSON only describes stable. + pub channel_aware: bool, /// When the least recently fetched app was fetched (Unix seconds). pub last_fetched: Option, pub app_renames: Vec, @@ -46,9 +51,13 @@ pub struct Feed { #[derive(Clone, Debug, Default, PartialEq, Eq)] pub struct FeedApp { pub repo: Option, - /// Present when the repo has a published release. Meaningless unless `fetched_at` is set. + /// Present when the repo has a published stable release. Meaningless unless `fetched_at` is set. pub release: Option, - /// When storyteller-web last fetched this app (Unix seconds). + /// Present when the repo has a published non-nightly prerelease (beta/RC). + pub prerelease: Option, + /// Present when the repo has a published nightly build. + pub nightly: Option, + /// When the catalog or feed last fetched this app (Unix seconds). pub fetched_at: Option, } @@ -94,11 +103,45 @@ pub enum FeedAnswer { const MAX_TEXT: usize = 4000; impl Feed { - /// Reads the feed. `None` only when the answer isn't JSON (or isn't an object) at all. + /// Verifies the detached Ed25519 signature over `launcher-catalog.toml` using the pinned + /// public key and extracts its static release channels. + pub fn parse_signed_catalog(catalog_bytes: &[u8], signature_bytes: &[u8]) -> Result { + Self::parse_signed_catalog_with_key(catalog_bytes, signature_bytes, &pinned_key()?) + } + + /// Like [`Self::parse_signed_catalog`], using an explicit verifying key (tests). + pub fn parse_signed_catalog_with_key(catalog_bytes: &[u8], signature_bytes: &[u8], key: &VerifyingKey) -> Result { + check_signature(catalog_bytes, signature_bytes, MAX_CATALOG_BYTES, key)?; + let text = std::str::from_utf8(catalog_bytes).map_err(|_| "catalog is not UTF-8")?; + Self::parse_catalog_toml(text) + } + + /// Reads release metadata from an already-verified `launcher-catalog.toml` document. + pub fn parse_catalog_toml(toml_text: &str) -> Result { + let doc: CatalogDocument = toml::from_str(toml_text).map_err(|e| format!("invalid catalog TOML: {e}"))?; + let generated_at = doc.generated_at.as_deref().and_then(parse_rfc3339); + let mut apps = BTreeMap::new(); + if let Some(launcher) = doc.launcher { + let id = launcher.id.unwrap_or_else(|| "artcraft-launcher".into()).to_lowercase(); + if let Some(entry) = launcher.releases.and_then(|r| r.into_feed_app(launcher.repo, generated_at)) { + apps.insert(id, entry); + } + } + for app in doc.apps { + let Some(id) = app.id.filter(|s| !s.is_empty()) else { continue }; + if let Some(entry) = app.releases.and_then(|r| r.into_feed_app(app.repo, generated_at)) { + apps.insert(id.to_lowercase(), entry); + } + } + Ok(Self { apps, channel_aware: true, last_fetched: generated_at, app_renames: Vec::new(), repo_renames: Vec::new(), mirror: None }) + } + + /// Reads the legacy/local-mirror JSON feed. `None` only when the answer isn't JSON (or isn't an object) at all. pub fn parse(json: &str) -> Option { let raw: RawResponse = serde_json::from_str(json).ok()?; let feed = Feed { apps: raw.release_info.apps.into_iter().map(|(k, v)| (k.to_lowercase(), v.into_app())).collect(), + channel_aware: false, last_fetched: raw.release_info.last_fetched.as_deref().and_then(parse_rfc3339), app_renames: raw.app_renames.into_iter().filter_map(RawAppRename::into_rename).collect(), repo_renames: raw.repo_renames.into_iter().filter_map(RawRepoRename::into_rename).collect(), @@ -159,6 +202,56 @@ impl Feed { }, } } + + /// What the feed says about `app` when pre-releases are enabled: the higher version between + /// `stable` and `prerelease`, or `AskGitHub` if neither is fresh/valid. + pub fn answer_prerelease(&self, app: &CraftApp, now: i64) -> FeedAnswer { + let Some((entry, repo)) = self.fresh_entry(app, now) else { return FeedAnswer::AskGitHub }; + let stable = entry.release.as_ref().and_then(|r| r.to_release(&repo, self.mirror.as_deref())); + let pre = entry.prerelease.as_ref().and_then(|r| r.to_release(&repo, self.mirror.as_deref())); + match (stable, pre) { + (Some(s), Some(p)) => { + let pick_pre = match (&p.version, &s.version) { + (Some(pv), Some(sv)) => version::is_newer(pv, sv), + _ => false, + }; + FeedAnswer::Fresh(Some(if pick_pre { p } else { s })) + } + (Some(s), None) => FeedAnswer::Fresh(Some(s)), + (None, Some(p)) => FeedAnswer::Fresh(Some(p)), + (None, None) => FeedAnswer::AskGitHub, + } + } + + /// What the feed says about `app`'s nightly build at `now`. Returns `AskGitHub` when no fresh + /// nightly with valid checksums is listed. + pub fn answer_nightly(&self, app: &CraftApp, now: i64) -> FeedAnswer { + let Some((entry, repo)) = self.fresh_entry(app, now) else { return FeedAnswer::AskGitHub }; + let Some(nightly) = entry.nightly.as_ref().and_then(|r| r.to_release(&repo, self.mirror.as_deref())) else { + return FeedAnswer::AskGitHub; + }; + if release::is_nightly(&nightly) && release::has_published_checksum(&nightly) { + FeedAnswer::Fresh(Some(nightly)) + } else { + FeedAnswer::AskGitHub + } + } + + fn fresh_entry(&self, app: &CraftApp, now: i64) -> Option<(&FeedApp, String)> { + let entry = self.apps.get(app.id)?; + let fetched_at = entry.fetched_at?; + if self.mirror.is_none() && now.saturating_sub(fetched_at) > MAX_AGE { + return None; + } + let mut repo = self.repo_for(app); + if let Some(feed_repo) = &entry.repo + && !feed_repo.eq_ignore_ascii_case(&repo) + { + let former = app.former_repo.filter(|former| feed_repo.eq_ignore_ascii_case(former))?; + repo = former.to_string(); + } + Some((entry, repo)) + } } impl FeedRelease { @@ -201,6 +294,111 @@ impl FeedRelease { } } +// ---- signed catalog TOML format --------------------------------------------------------------- + +#[derive(Deserialize, Default)] +struct CatalogDocument { + #[serde(default)] + generated_at: Option, + #[serde(default)] + launcher: Option, + #[serde(default)] + apps: Vec, +} + +#[derive(Deserialize, Default)] +struct CatalogLauncher { + #[serde(default)] + id: Option, + #[serde(default)] + repo: Option, + #[serde(default)] + releases: Option, +} + +#[derive(Deserialize, Default)] +struct CatalogApp { + #[serde(default)] + id: Option, + #[serde(default)] + repo: Option, + #[serde(default)] + releases: Option, +} + +#[derive(Deserialize, Default)] +struct CatalogReleases { + #[serde(default)] + stable: Option, + #[serde(default)] + prerelease: Option, + #[serde(default)] + nightly: Option, +} + +#[derive(Deserialize, Default)] +struct CatalogRelease { + #[serde(default)] + tag: Option, + #[serde(default)] + name: Option, + #[serde(default)] + published_at: Option, + #[serde(default)] + html_url: Option, + #[serde(default)] + prerelease: bool, + #[serde(default)] + notes_markdown: Option, + #[serde(default)] + assets: Vec, +} + +#[derive(Deserialize, Default)] +struct CatalogAsset { + #[serde(default)] + name: Option, + #[serde(default)] + size_bytes: u64, + #[serde(default)] + download_url: Option, + #[serde(default)] + sha256: Option, +} + +impl CatalogRelease { + fn into_feed_release(self) -> Option { + let tag = self.tag.filter(|t| !t.is_empty() && t.len() <= 64)?; + Some(FeedRelease { + tag, + name: self.name.unwrap_or_default(), + published_at: self.published_at.as_deref().and_then(parse_rfc3339), + html_url: self.html_url.unwrap_or_default(), + prerelease: self.prerelease, + notes: self.notes_markdown.unwrap_or_default(), + assets: self.assets.into_iter().filter_map(|a| Some((a.name?, a.size_bytes, a.download_url?, a.sha256))).take(300).collect(), + }) + } +} + +impl CatalogReleases { + fn into_feed_app(self, repo: Option, fetched_at: Option) -> Option { + let release = self.stable.and_then(CatalogRelease::into_feed_release); + let prerelease = self.prerelease.and_then(CatalogRelease::into_feed_release); + let nightly = self.nightly.and_then(CatalogRelease::into_feed_release); + if release.is_none() && prerelease.is_none() && nightly.is_none() { + return None; + } + Some(FeedApp { + repo: repo.filter(|r| r.split('/').count() == 2 && r.split('/').all(|part| !part.is_empty() && part != "." && part != "..")), + release, + prerelease, + nightly, + fetched_at, + }) + } +} + // ---- lenient wire format ---------------------------------------------------------------------- /// Reads `T`, or its default when the value is missing, `null` or the wrong shape. @@ -260,6 +458,8 @@ impl RawApp { FeedApp { repo: self.repo.filter(|r| r.split('/').count() == 2 && r.split('/').all(|part| !part.is_empty() && part != "." && part != "..")), release: self.latest_release.and_then(RawRelease::into_release), + prerelease: None, + nightly: None, fetched_at: self.app_last_fetched.as_deref().and_then(parse_rfc3339), } } @@ -443,8 +643,11 @@ mod tests { // MailCraft moved from `UCS-Care-Group` to `UCSLabs` (#1593): a feed still naming the former // repo is used, with downloads checked against that repo, and "no release" under one name // sends the launcher to GitHub, where the other name is asked too. - let mailcraft = app("mailcraft"); - let former = mailcraft.former_repo.unwrap(); + let mut mailcraft = *app("mailcraft"); + mailcraft.repo = "UCSLabs/mailcraft"; + mailcraft.former_repo = Some("UCS-Care-Group/mailcraft"); + let mailcraft = &mailcraft; + let former = "UCS-Care-Group/mailcraft"; let entry = |repo: &str, release: &str| { format!( r#"{{"release_info": {{"apps": {{"mailcraft": {{"repo": "{repo}", "app_last_fetched": "2026-10-09T13:00:00Z", "latest_release": {release}}}}}}}}}"# @@ -589,4 +792,96 @@ mod tests { assert_eq!(Feed::parse(&feed).unwrap().answer(app("photocraft"), NOW), FeedAnswer::AskGitHub, "{odd:?}"); } } + + #[test] + fn catalog_channels_fall_back_independently_and_empty_records_are_ignored() { + let photo = app("photocraft"); + let parsed = |channels: &str| { + Feed::parse_catalog_toml(&format!( + "generated_at = \"2026-10-09T13:00:00Z\"\n[[apps]]\nid = \"photocraft\"\nrepo = \"storytold/photocraft\"\n{channels}" + )) + .unwrap() + }; + let stable = parsed("[apps.releases.stable]\ntag = \"v1.0.0\"\n"); + assert!(matches!(stable.answer_prerelease(photo, NOW), FeedAnswer::Fresh(Some(r)) if r.tag == "v1.0.0")); + assert_eq!(stable.answer_nightly(photo, NOW), FeedAnswer::AskGitHub); + let pre = parsed("[apps.releases.prerelease]\ntag = \"v1.1.0-rc.1\"\n"); + assert!(matches!(pre.answer_prerelease(photo, NOW), FeedAnswer::Fresh(Some(r)) if r.tag == "v1.1.0-rc.1")); + let empty = parsed("[apps.releases]\n"); + assert!(empty.apps.is_empty()); + assert_eq!(empty.answer_prerelease(photo, NOW), FeedAnswer::AskGitHub); + assert_eq!(pre.answer_prerelease(photo, NOW + MAX_AGE * 2), FeedAnswer::AskGitHub); + } + + #[test] + fn signed_catalog_toml_answers_stable_prerelease_nightly_and_launcher() { + use base64::{Engine as _, engine::general_purpose::STANDARD}; + use ed25519_dalek::{Signer as _, SigningKey}; + + let toml = format!( + r#"generated_at = "2026-10-09T13:00:00Z" + +[launcher] +id = "artcraft-launcher" +repo = "storytold/craft-launcher" +[launcher.releases.stable] +tag = "v0.20.4" +version = "0.20.4" +html_url = "https://github.com/storytold/craft-launcher/releases/tag/v0.20.4" +prerelease = false +[[launcher.releases.stable.assets]] +name = "artcraft-launcher-0.20.4-macos-universal.dmg" +download_url = "https://github.com/storytold/craft-launcher/releases/download/v0.20.4/artcraft-launcher-0.20.4-macos-universal.dmg" +sha256 = "{HASH}" + +[[apps]] +id = "photocraft" +repo = "storytold/photocraft" +[apps.releases.stable] +tag = "v0.23.1" +version = "0.23.1" +html_url = "https://github.com/storytold/photocraft/releases/tag/v0.23.1" +prerelease = false +[[apps.releases.stable.assets]] +name = "photocraft-0.23.1-macos-universal.dmg" +download_url = "https://github.com/storytold/photocraft/releases/download/v0.23.1/photocraft-0.23.1-macos-universal.dmg" +sha256 = "{HASH}" +[apps.releases.prerelease] +tag = "v0.24.0-rc.1" +version = "0.24.0-rc.1" +html_url = "https://github.com/storytold/photocraft/releases/tag/v0.24.0-rc.1" +prerelease = true +[apps.releases.nightly] +tag = "v0.24.0-nightly.20261009.1.1" +version = "0.24.0-nightly.20261009.1.1" +html_url = "https://github.com/storytold/photocraft/releases/tag/v0.24.0-nightly.20261009.1.1" +prerelease = true +[[apps.releases.nightly.assets]] +name = "photocraft-0.24.0-nightly.20261009.1.1-linux-x86_64.AppImage" +download_url = "https://github.com/storytold/photocraft/releases/download/v0.24.0-nightly.20261009.1.1/photocraft-0.24.0-nightly.20261009.1.1-linux-x86_64.AppImage" +sha256 = "{HASH}" +"# + ); + let key = SigningKey::from_bytes(&[7; 32]); + let sig = STANDARD.encode(key.sign(toml.as_bytes()).to_bytes()); + let feed = Feed::parse_signed_catalog_with_key(toml.as_bytes(), sig.as_bytes(), &key.verifying_key()).unwrap(); + + let FeedAnswer::Fresh(Some(launcher)) = feed.answer(&LAUNCHER, NOW) else { panic!() }; + assert_eq!(launcher.tag, "v0.20.4"); + + let FeedAnswer::Fresh(Some(stable)) = feed.answer(app("photocraft"), NOW) else { panic!() }; + assert_eq!(stable.tag, "v0.23.1"); + assert_eq!(stable.assets.len(), 1); + + let FeedAnswer::Fresh(Some(pre)) = feed.answer_prerelease(app("photocraft"), NOW) else { panic!() }; + assert_eq!(pre.tag, "v0.24.0-rc.1"); + + let FeedAnswer::Fresh(Some(nightly)) = feed.answer_nightly(app("photocraft"), NOW) else { panic!() }; + assert_eq!(nightly.tag, "v0.24.0-nightly.20261009.1.1"); + + // Tampering or wrong key is rejected before parsing. + let wrong_key = SigningKey::from_bytes(&[9; 32]); + assert!(Feed::parse_signed_catalog_with_key(toml.as_bytes(), sig.as_bytes(), &wrong_key.verifying_key()).is_err()); + assert!(Feed::parse_signed_catalog_with_key(format!("{toml}\n").as_bytes(), sig.as_bytes(), &key.verifying_key()).is_err()); + } } diff --git a/crates/core/src/hosted_catalog.rs b/crates/core/src/hosted_catalog.rs index 9bb3a206..f293809a 100644 --- a/crates/core/src/hosted_catalog.rs +++ b/crates/core/src/hosted_catalog.rs @@ -18,6 +18,10 @@ use crate::details::{AppDetails, Feature, Shot}; pub const CATALOG_URL: &str = "https://getartcraft.com/launcher-catalog.toml"; pub const SIGNATURE_URL: &str = "https://getartcraft.com/launcher-catalog.toml.sig"; pub const PUBLIC_KEY_PEM: &str = include_str!("../assets/launcher-catalog-public-key.pem"); +/// Signed catalog bytes fetched and verified at build time from [`CATALOG_URL`]. +pub const BUILD_CATALOG_TOML: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/catalog.toml")); +/// Detached Ed25519 signature fetched and verified at build time from [`SIGNATURE_URL`]. +pub const BUILD_CATALOG_SIG: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/catalog.toml.sig")); pub const MAX_CATALOG_BYTES: usize = 1 << 20; pub const MAX_SIGNATURE_BYTES: usize = 128; pub const MAX_ICON_BYTES: usize = 256 << 10; @@ -335,7 +339,9 @@ fn valid_record(r: &Record) -> bool { && p.shots.len() <= 16 && p.shots.iter().all(|s| { identifier(&s.key) - && s.url == format!("{}/{}/{}/{}.jpg", crate::details::SCREENSHOTS_BASE, crate::details::SCREENSHOTS_REV, r.id, s.key) + && (s.url == format!("{}/{}/{}/{}.jpg", crate::details::SCREENSHOTS_BASE, crate::details::SCREENSHOTS_REV, r.id, s.key) + || s.url + == format!("{}/{}/{}/{}.jpg", crate::details::SCREENSHOTS_FALLBACK_BASE, crate::details::SCREENSHOTS_REV, r.id, s.key)) }) }) } @@ -355,9 +361,9 @@ mod tests { use super::*; use ed25519_dalek::{Signer, SigningKey}; - const BUNDLED: &[u8] = include_bytes!("../catalog.toml"); - const WEBSITE: &[u8] = include_bytes!("../tests/fixtures/hosted-catalog.toml"); - const SIGNATURE: &[u8] = include_bytes!("../tests/fixtures/hosted-catalog.toml.sig"); + const BUNDLED: &[u8] = BUILD_CATALOG_TOML; + const WEBSITE: &[u8] = BUILD_CATALOG_TOML; + const SIGNATURE: &[u8] = BUILD_CATALOG_SIG; fn signed(bytes: &[u8]) -> Result { let key = SigningKey::from_bytes(&[7; 32]); diff --git a/crates/core/tests/fixtures/hosted-catalog.toml b/crates/core/tests/fixtures/hosted-catalog.toml deleted file mode 100644 index 4d7755dd..00000000 --- a/crates/core/tests/fixtures/hosted-catalog.toml +++ /dev/null @@ -1,1045 +0,0 @@ -# ArtCraft Launcher catalog, served at https://getartcraft.com/launcher-catalog.toml. -# Source: storytold/craft-launcher at c6362817864df42d1fbfa105d3aaca9f728d434c -# Generated by scripts/sync-launcher-catalog.py; preserve the existing TOML schema. -# Verify launcher-catalog.toml.sig with the launcher's pinned Ed25519 key before use. -# Install sources must still follow the launcher's approved-source policy. - -[[apps]] -color = [47, 123, 245] -former_bundles = [] -former_ids = [] -former_names = [] -id = "photocraft" -binary = "photocraft" -flatpak_id = "ai.storyteller.photocraft" -mac_bundle_id = "ai.storyteller.photocraft" -mac_bundle_name = "PhotoCraft" -website = "https://getartcraft.com/apps/photocraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "photocraft" -rpm_package = "photocraft" -desktop_categories = ["Graphics", "2DGraphics", "RasterGraphics", "Photography"] -startup_wm_class = "photocraft" -icon_url = "https://getartcraft.com/launcher-app-icons/photocraft-f1afe9ccdb125a34089babecb6c1533f3fbf41ddffe81e0856f158c5b5fb9389.png" -icon_sha256 = "f1afe9ccdb125a34089babecb6c1533f3fbf41ddffe81e0856f158c5b5fb9389" -ink_dark = [127, 176, 255] -ink_light = [26, 91, 196] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "PhotoCraft" -publisher = "ArtCraft" -repo = "storytold/photocraft" -tagline = "Image editing" -[apps.details] -headline = "The image editor you already know how to use." -about = "Layers, masks, adjustment layers, layer styles, type, vectors and brushes in a native app. Open source, offline, and yours.\n\nPhotoCraft keeps the menus, shortcuts and panels your hands already know, so there is nothing to relearn." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "No Electron and no web view: a fast native compositor." -title = "Native GPU canvas" -[[apps.details.features]] -text = "Opens and saves layered PSD and PSB documents." -title = "Real layered files" -[[apps.details.features]] -text = "Adjustment layers, live-preview filters, smart objects and layer styles." -title = "Non-destructive editing" -[[apps.details.features]] -text = "Subject and object selection and mask refinement run locally." -title = "On-device selection" -[[apps.details.features]] -text = "8-, 16- and 32-bit RGB, CMYK, Lab and Grayscale, with ICC color management and soft proofing." -title = "Serious color" -[[apps.details.shots]] -caption = "Curves and type layers" -key = "demo" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/photocraft/demo.jpg" -[[apps.details.shots]] -caption = "Levels with a live histogram" -key = "adjustments" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/photocraft/adjustments.jpg" -[[apps.details.shots]] -caption = "Layer styles on live type" -key = "layer-styles" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/photocraft/layer-styles.jpg" -[[apps.details.shots]] -caption = "Selections and masked adjustments" -key = "masks" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/photocraft/masks.jpg" - -[[apps]] -color = [232, 87, 63] -former_bundles = [] -former_ids = [] -former_names = [] -id = "vectorcraft" -binary = "vectorcraft" -flatpak_id = "ai.storyteller.vectorcraft" -mac_bundle_id = "ai.storyteller.vectorcraft" -mac_bundle_name = "VectorCraft" -website = "https://getartcraft.com/apps/vectorcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "vectorcraft" -rpm_package = "vectorcraft" -desktop_categories = ["Graphics", "2DGraphics", "VectorGraphics"] -startup_wm_class = "ai.storyteller.vectorcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/vectorcraft-47f2061e3683ba8e7241c4783ca02207d29dfef0a7c94cd0eb8ea0a88dfc0b1e.png" -icon_sha256 = "47f2061e3683ba8e7241c4783ca02207d29dfef0a7c94cd0eb8ea0a88dfc0b1e" -ink_dark = [255, 138, 112] -ink_light = [184, 58, 36] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "VectorCraft" -publisher = "ArtCraft" -repo = "storytold/vectorcraft" -tagline = "Vector illustration" -[apps.details] -headline = "Vector illustration, with familiar tools and editable effects." -about = "A native vector illustration app with the pen, panels and shortcuts illustrators expect. Open source, and it also runs in a browser." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Pen, direct selection, shape booleans, snapping guides and an appearance panel, laid out the way you expect." -title = "The workflow you know" -[[apps.details.features]] -text = "Drawings with thousands of shapes stay responsive on a retina display." -title = "Genuinely fast" -[[apps.details.features]] -text = "Shape booleans work on the exact curves, so there is no \"cannot perform operation\", and undo is unlimited." -title = "Booleans that don't fail" -[[apps.details.features]] -text = "Blends, envelope distort, gradient mesh, repeats, glows and drop shadows all stay editable." -title = "Live, editable effects" -[[apps.details.features]] -text = "Turn raster images into clean vector paths, with presets for the common cases." -title = "Image tracing" -[[apps.details.features]] -text = "Native JSON documents, SVG and PDF import and export, and PNG, JPEG and WebP output." -title = "Open formats" -[[apps.details.shots]] -caption = "The Neon Drive poster" -key = "neon" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/vectorcraft/neon.jpg" -[[apps.details.shots]] -caption = "Live blends" -key = "ribbons" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/vectorcraft/ribbons.jpg" -[[apps.details.shots]] -caption = "A feature sheet and the Layers panel" -key = "sheet" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/vectorcraft/sheet.jpg" -[[apps.details.shots]] -caption = "Pathfinder and exact booleans" -key = "bezier" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/vectorcraft/bezier.jpg" - -[[apps]] -color = [139, 92, 246] -former_bundles = [] -former_ids = [] -former_names = [] -id = "filmcraft" -binary = "filmcraft" -flatpak_id = "ai.storyteller.filmcraft" -mac_bundle_id = "ai.storyteller.filmcraft" -mac_bundle_name = "FilmCraft" -website = "https://getartcraft.com/apps/filmcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "filmcraft" -rpm_package = "filmcraft" -desktop_categories = ["AudioVideo", "Video", "AudioVideoEditing"] -startup_wm_class = "ai.storyteller.filmcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/filmcraft-7ca8adb57a34d1f4bff8c7e976ac5fe73e69a89b4268d15b3b861c7e51c45a74.png" -icon_sha256 = "7ca8adb57a34d1f4bff8c7e976ac5fe73e69a89b4268d15b3b861c7e51c45a74" -ink_dark = [182, 156, 255] -ink_light = [106, 63, 214] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "FilmCraft" -publisher = "ArtCraft" -repo = "storytold/filmcraft" -tagline = "Video editing, color and sound" -[apps.details] -headline = "Professional video editing, rebuilt from scratch." -about = "A native video editor with source and program monitors, a real timeline and every trim mode." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Source and program monitors, three-point editing, every trim mode and J/K/L trimming." -title = "A timeline you already know" -[[apps.details.features]] -text = "An integer timebase keeps 23.976 and 29.97 drop-frame footage exact, with no drift." -title = "Frame-exact time" -[[apps.details.features]] -text = "No FFmpeg inside: native support for H.264, HEVC, ProRes, VP9, AAC and Opus." -title = "Its own codecs" -[[apps.details.features]] -text = "Curves, color wheels, HSL secondaries, LUTs and HDR and log workflows, with scopes to check the result." -title = "Color grading" -[[apps.details.features]] -text = "Video effects and transitions, keyframes with value and velocity graphs, and a linear-light GPU compositor." -title = "Effects and keyframes" -[[apps.details.features]] -text = "EBU R128 loudness meters, a mixer with automation and native audio effects." -title = "Broadcast-ready audio" -[[apps.details.shots]] -caption = "The Color workspace, with scopes" -key = "color" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/filmcraft/color.jpg" -[[apps.details.shots]] -caption = "The Assembly workspace" -key = "assembly" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/filmcraft/assembly.jpg" -[[apps.details.shots]] -caption = "Keyframes in Effect Controls" -key = "keyframes" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/filmcraft/keyframes.jpg" - -[[apps]] -color = [242, 165, 22] -former_bundles = [] -former_ids = [] -former_names = [] -id = "lightcraft" -binary = "lightcraft" -flatpak_id = "ai.storyteller.lightcraft" -mac_bundle_id = "ai.storyteller.lightcraft" -mac_bundle_name = "LightCraft" -website = "https://getartcraft.com/apps/lightcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "lightcraft" -rpm_package = "lightcraft" -desktop_categories = ["Graphics", "2DGraphics", "RasterGraphics", "Photography"] -startup_wm_class = "ai.storyteller.lightcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/lightcraft-a1fc54a714b769fa627eb44b0dcc1230e5fc3643890fd3504811b4c05c4a913a.png" -icon_sha256 = "a1fc54a714b769fa627eb44b0dcc1230e5fc3643890fd3504811b4c05c4a913a" -ink_dark = [255, 193, 77] -ink_light = [138, 88, 0] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "LightCraft" -publisher = "ArtCraft" -repo = "storytold/lightcraft" -tagline = "Photo library and raw development" -[apps.details] -headline = "Your photos. Your pixels. Your machine." -about = "A fast photo library and non-destructive raw developer. No account, no cloud, no telemetry and no subscription." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "A wide-gamut, 32-bit float pipeline that never touches your originals." -title = "Non-destructive by design" -[[apps.details.features]] -text = "Light, color, effects, tone curve, a color mixer, color grading wheels and built-in presets." -title = "Every control you reach for" -[[apps.details.features]] -text = "Brush, gradient and range masks, plus sky, subject and background masks." -title = "Precise masking" -[[apps.details.features]] -text = "Support for the main camera raw formats: DNG, CR2, ARW, NEF, RAF, RW2, PEF and ORF." -title = "Native raw decoding" -[[apps.details.features]] -text = "Albums, ratings, flags and search, with grids that stay smooth on large catalogs." -title = "A library that keeps up" -[[apps.details.features]] -text = "The GPU pipeline updates the preview as you move a slider, even on large raw files." -title = "Instant feedback" -[[apps.details.shots]] -caption = "The Edit view" -key = "hero" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/lightcraft/hero.jpg" -[[apps.details.shots]] -caption = "The tone curve" -key = "curve" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/lightcraft/curve.jpg" -[[apps.details.shots]] -caption = "Color grading wheels" -key = "grading" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/lightcraft/grading.jpg" -[[apps.details.shots]] -caption = "A radial mask over a sky mask" -key = "masking" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/lightcraft/masking.jpg" - -[[apps]] -color = [232, 32, 79] -former_bundles = [] -former_ids = ["printcraft"] -former_names = ["PrintCraft"] -id = "pdfcraft" -binary = "pdfcraft" -flatpak_id = "ai.storyteller.pdfcraft" -mac_bundle_id = "ai.storyteller.pdfcraft" -mac_bundle_name = "PdfCraft" -website = "https://getartcraft.com/apps/pdfcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "pdfcraft" -rpm_package = "pdfcraft" -desktop_categories = ["Office", "Viewer"] -startup_wm_class = "pdfcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/pdfcraft-1933bbeaea290497facd328e917dafcc433d0c0caa9f1e207aa45ac1e430898c.png" -icon_sha256 = "1933bbeaea290497facd328e917dafcc433d0c0caa9f1e207aa45ac1e430898c" -ink_dark = [242, 58, 98] -ink_light = [183, 2, 40] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "PdfCraft" -publisher = "ArtCraft" -repo = "storytold/pdfcraft" -tagline = "Reading, organizing and protecting PDFs" -[apps.details] -headline = "The open-source PDF workbench." -about = "Read, organize, combine, split and secure PDFs in a fast, native app. No account, no telemetry and no cloud." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "World scripts, vertical Japanese, color emoji and transparency." -title = "Faithful rendering" -[[apps.details.features]] -text = "Instant find, and text selection that follows the document's real reading order." -title = "Search as you type" -[[apps.details.features]] -text = "Rotate, delete, insert and reorder pages, with deep undo behind every change." -title = "Organize like cards" -[[apps.details.features]] -text = "Assemble and break apart documents while keeping links, form fields, layers and bookmarks intact." -title = "Combine, extract, split" -[[apps.details.features]] -text = "Incremental, atomic saves with autosave and crash recovery." -title = "Fearless saves" -[[apps.details.features]] -text = "Opens files from RC4 to AES-256 encryption and honors the author's permissions." -title = "Built-in security" - -[[apps]] -color = [224, 54, 143] -former_bundles = [] -former_ids = [] -former_names = [] -id = "effectcraft" -binary = "effectcraft" -flatpak_id = "ai.storyteller.effectcraft" -mac_bundle_id = "ai.storyteller.effectcraft" -mac_bundle_name = "EffectCraft" -website = "https://getartcraft.com/apps/effectcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "effectcraft" -rpm_package = "effectcraft" -desktop_categories = ["AudioVideo", "Video", "Graphics", "2DGraphics"] -startup_wm_class = "ai.storyteller.effectcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/effectcraft-4ad7caa4f43b4cbf3bcddda0ed23e471d392efbe8d0b4ce18107b5849f20dd2d.png" -icon_sha256 = "4ad7caa4f43b4cbf3bcddda0ed23e471d392efbe8d0b4ce18107b5849f20dd2d" -ink_dark = [255, 122, 184] -ink_light = [176, 32, 108] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "EffectCraft" -publisher = "ArtCraft" -repo = "storytold/effectcraft" -tagline = "Motion graphics and visual effects" -[apps.details] -headline = "Motion graphics and visual effects." -about = "A native compositor with compositions, layers, keyframes, effects, expressions, 3D cameras and lights, and a render queue. Young, moving fast, and already usable." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Familiar panels and keyframes (linear, bezier, hold and eased), with a graph editor for value and speed curves." -title = "Animate the way you know" -[[apps.details.features]] -text = "Solids, shapes, text, footage, nested compositions, nulls and adjustment layers, with parenting, track mattes and blend modes." -title = "Layers of every kind" -[[apps.details.features]] -text = "Blur, color correction, distortion, generators, keying, particles and simulation, stylize and time effects." -title = "A large effects library" -[[apps.details.features]] -text = "3D layers with cameras, depth of field, and lights that cast soft ray-traced shadows." -title = "Real 3D" -[[apps.details.features]] -text = "JavaScript expressions with wiggle, loops and layer references, edited inline." -title = "Expressions" -[[apps.details.features]] -text = "H.264 and ProRes with alpha, PNG, TIFF and EXR sequences, GIF, and Lottie import and export." -title = "Export anywhere" -[[apps.details.shots]] -caption = "An animated composition" -key = "hero" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/effectcraft/hero.jpg" -[[apps.details.shots]] -caption = "The Graph Editor" -key = "graph" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/effectcraft/graph.jpg" -[[apps.details.shots]] -caption = "Particles and Effect Controls" -key = "effects" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/effectcraft/effects.jpg" -[[apps.details.shots]] -caption = "3D layers with cameras and lights" -key = "3d" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/effectcraft/3d.jpg" - -[[apps]] -color = [218, 198, 4] -former_bundles = [] -former_ids = [] -former_names = [] -id = "anicraft" -binary = "anicraft" -flatpak_id = "ai.storyteller.anicraft" -mac_bundle_id = "ai.storyteller.anicraft" -mac_bundle_name = "AniCraft" -website = "https://github.com/storytold/anicraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "anicraft" -rpm_package = "anicraft" -desktop_categories = ["Graphics", "2DGraphics", "VectorGraphics", "AudioVideo"] -startup_wm_class = "anicraft" -icon_url = "https://getartcraft.com/launcher-app-icons/anicraft-e6754980d8a2a4acd429f6e3e3ba5569c4a761a45102a81d7edc0ef35210ce47.png" -icon_sha256 = "e6754980d8a2a4acd429f6e3e3ba5569c4a761a45102a81d7edc0ef35210ce47" -ink_dark = [232, 216, 74] -ink_light = [112, 101, 0] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "AniCraft" -publisher = "ArtCraft" -repo = "storytold/anicraft" -site = "https://github.com/storytold/anicraft" -tagline = "2D vector animation" -[apps.details] -headline = "Vector animation on a timeline you know." -about = "Open-source 2D vector animation, built in pure Rust." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Stage, tools, timeline, layers, keyframes, Properties and Library sit where animators expect them, with onion skinning for in-betweening." -title = "Familiar by design" -[[apps.details.features]] -text = "Classic tweens with eight easing presets and custom ease curves, plus shape tweens that morph one vector contour into another." -title = "Tweens that ease" -[[apps.details.features]] -text = "Graphic symbols and movie clips with nested timelines and loop modes, mask and guide layers, filters, blend modes and scenes." -title = "Symbols and scenes" -[[apps.details.features]] -text = "Pen, Pencil with curve fitting, shapes, text, Paint Bucket and Ink Bottle, with Bézier anchors and handles you edit point by point." -title = "Real vector tools" -[[apps.details.features]] -text = "Opens .fla and .xfl documents and imports SVG. Exports PNG sequences, GIF, SVG frames, sprite sheets, Lottie, and WebM or MP4 through your own FFmpeg." -title = "Open formats" -[[apps.details.features]] -text = "Every action is an engine command, so the CLI, a JSON-lines channel and an MCP server can draw, animate and export the way a person does." -title = "Agent-ready" - -[[apps]] -color = [123, 181, 28] -former_bundles = [] -former_ids = [] -former_names = [] -id = "designcraft" -binary = "designcraft" -flatpak_id = "ai.storyteller.designcraft" -mac_bundle_id = "ai.storyteller.designcraft" -mac_bundle_name = "DesignCraft" -website = "https://getartcraft.com/apps/designcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "designcraft" -rpm_package = "designcraft" -desktop_categories = ["Graphics", "Publishing"] -startup_wm_class = "ai.storyteller.designcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/designcraft-0895763da92947cb6b1d38a018a6c7ffcda1cbb714a58f2e9bc08e0e2a2b94b4.png" -icon_sha256 = "0895763da92947cb6b1d38a018a6c7ffcda1cbb714a58f2e9bc08e0e2a2b94b4" -ink_dark = [166, 224, 74] -ink_light = [69, 112, 8] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "DesignCraft" -publisher = "ArtCraft" -repo = "storytold/designcraft" -tagline = "Page layout and publishing" -[apps.details] -headline = "Page layout and publishing." -about = "A native layout app with spreads, parent pages, threaded stories, styles, swatches, text wrap and a paragraph composer. No subscription, no license server and no telemetry." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Spreads and parent pages, frames and threaded stories, with paragraph and character styles." -title = "The layout tools you know" -[[apps.details.features]] -text = "A Knuth–Plass paragraph composer, dictionary hyphenation, optical margin alignment and baseline grids, with line breaks that match on screen and in PDF." -title = "Beautiful type" -[[apps.details.features]] -text = "Real selectable text with embedded fonts, CMYK and spot colors, bleed, crop marks and PDF/A output." -title = "Print-ready PDF" -[[apps.details.features]] -text = "Multithreaded rendering, instant undo and cached text composition." -title = "Fast" -[[apps.details.features]] -text = "A documented native format, PNG export and layout interchange import and export." -title = "Open formats" -[[apps.details.features]] -text = "Every menu item, tool, panel and dialog can be driven over a JSON control channel and an MCP server." -title = "Built for automation" -[[apps.details.shots]] -caption = "A magazine spread with a threaded story" -key = "spread" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/designcraft/spread.jpg" - -[[apps]] -color = [2, 218, 150] -former_bundles = [] -former_ids = [] -former_names = [] -id = "figcraft" -binary = "figcraft" -flatpak_id = "ai.storyteller.figcraft" -mac_bundle_id = "ai.storyteller.figcraft" -mac_bundle_name = "FigCraft" -website = "https://getartcraft.com/apps/figcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "figcraft" -rpm_package = "figcraft" -desktop_categories = ["Graphics", "2DGraphics", "VectorGraphics", "X-Design"] -startup_wm_class = "figcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/figcraft-13d5236adb30c2bd4ff3eb7bcb7bb5a70d8de2ef36a81a5ffaf43ea171c7f51b.png" -icon_sha256 = "13d5236adb30c2bd4ff3eb7bcb7bb5a70d8de2ef36a81a5ffaf43ea171c7f51b" -ink_dark = [79, 232, 182] -ink_light = [4, 122, 86] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "FigCraft" -publisher = "ArtCraft" -repo = "storytold/figcraft" -tagline = "Interface design and prototyping" -[apps.details] -headline = "Interface design and prototyping." -about = "Design screens, components and prototypes in a native app that opens instantly and works offline, with no account and no telemetry. Early alpha." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Rows, columns, wrap and grids with padding, gaps and Hug, Fill or Fixed sizing, plus constraints and layout grids." -title = "Auto layout" -[[apps.details.features]] -text = "Instances with overrides, variants and properties, styles, and variables with modes bound to fills, strokes and effects." -title = "Components" -[[apps.details.features]] -text = "Real vector networks, the pen and pencil, the shape builder, editable booleans and variable width strokes." -title = "Vectors" -[[apps.details.features]] -text = "Connections, triggers and animated transitions, variables with conditionals, flows and a presentation view with device frames." -title = "Prototypes" -[[apps.details.features]] -text = "Inspect mode with measurements, annotations, ready-for-dev status, and code for CSS, HTML, React, SwiftUI and Compose." -title = "Hand off" -[[apps.details.features]] -text = "Plain .figcraft files on your own disk. SVG, PNG, JPEG, WebP and PDF in and out, and .fig files open, best effort." -title = "Your files" - -[[apps]] -color = [63, 95, 224] -former_bundles = [] -former_ids = [] -former_names = [] -id = "wordcraft" -binary = "wordcraft" -flatpak_id = "ai.storyteller.wordcraft" -mac_bundle_id = "ai.storyteller.wordcraft" -mac_bundle_name = "WordCraft" -website = "https://getartcraft.com/apps/wordcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "wordcraft" -rpm_package = "wordcraft" -desktop_categories = ["Office", "WordProcessor"] -startup_wm_class = "ai.storyteller.wordcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/wordcraft-96505c7153c1b8a7e0cf0f90353fae669f4ed9de5524ba50ba99af79003cff43.png" -icon_sha256 = "96505c7153c1b8a7e0cf0f90353fae669f4ed9de5524ba50ba99af79003cff43" -ink_dark = [142, 162, 255] -ink_light = [42, 68, 184] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "WordCraft" -publisher = "ArtCraft" -repo = "storytold/wordcraft" -tagline = "Writing and document design" -[apps.details] -headline = "The familiar word processor, native and offline." -about = "A word processor with the ribbon, shortcuts and behavior you already know. Open source, and built from public specifications." -platforms = "macOS, Windows, Linux, BSD, web" -[[apps.details.features]] -text = "Ribbon tabs and groups, a live Styles gallery and the editing behavior you expect, from list continuation to Format Painter." -title = "Familiar" -[[apps.details.features]] -text = "Opens and saves .docx, and also .odt, .rtf, .html, .md, .tex and .txt. Opens older .doc files and exports PDF with real, selectable text." -title = "Your files" -[[apps.details.features]] -text = "Paragraph layout is cached, so typing stays responsive even in long documents." -title = "Fast" -[[apps.details.features]] -text = "Spelling, grammar and everything else work offline." -title = "Private" -[[apps.details.features]] -text = "Work on macOS, Windows, Linux, BSD and the web." -title = "Everywhere" -[[apps.details.features]] -text = "Every action is a command, driven from the ribbon, shortcuts, a command-line tool, a JSON control channel or an MCP server." -title = "Built for agents" -[[apps.details.shots]] -caption = "The Home tab and the Navigation pane" -key = "hero" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/wordcraft/hero.jpg" -[[apps.details.shots]] -caption = "Track Changes and comments" -key = "review" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/wordcraft/review.jpg" -[[apps.details.shots]] -caption = "The Design tab" -key = "design" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/wordcraft/design.jpg" -[[apps.details.shots]] -caption = "The Layout tab" -key = "layout" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/wordcraft/layout.jpg" - -[[apps]] -color = [31, 165, 201] -former_bundles = [] -former_ids = [] -former_names = [] -id = "soundcraft" -binary = "soundcraft" -flatpak_id = "ai.storyteller.soundcraft" -mac_bundle_id = "ai.storyteller.soundcraft" -mac_bundle_name = "SoundCraft" -website = "https://getartcraft.com/apps/soundcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "soundcraft" -rpm_package = "soundcraft" -desktop_categories = ["AudioVideo", "Audio", "Midi", "Mixer", "Sequencer", "Recorder"] -startup_wm_class = "ai.storyteller.soundcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/soundcraft-0e7f4f83d82f5539530f62f85ccf8717dcc00c6d25a3dba57e2a65111e3b248b.png" -icon_sha256 = "0e7f4f83d82f5539530f62f85ccf8717dcc00c6d25a3dba57e2a65111e3b248b" -ink_dark = [95, 208, 238] -ink_light = [14, 114, 144] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "SoundCraft" -publisher = "ArtCraft" -repo = "storytold/soundcraft" -tagline = "Recording, editing and mixing audio" -[apps.details] -headline = "Record, edit and mix your audio." -about = "A digital audio workstation that follows the workflow audio engineers already know: an Edit window for arranging and editing, and a Mix window for balancing. Pre-alpha." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Shuffle, Slip, Spot and Grid modes, Smart, Grabber, Trim and other tools, fades and crossfades, playlists with comping lanes and clip gain." -title = "Editing" -[[apps.details.features]] -text = "Faders and pans with automation, sends, busses, aux inputs, VCA masters, routing folders and automatic plugin delay compensation." -title = "Mixing" -[[apps.details.features]] -text = "Volume, pan, mute, send and every plugin parameter, with Write, Touch, Latch and Trim passes recorded live from the faders." -title = "Automation" -[[apps.details.features]] -text = "EQ, dynamics, reverbs, modulation effects, a subtractive synth and a drum synth, all original, and CLAP plugins load too." -title = "Plugins" -[[apps.details.shots]] -caption = "The Edit window with a nine-track session" -key = "edit" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/soundcraft/edit.jpg" -[[apps.details.shots]] -caption = "The Mix window" -key = "mix" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/soundcraft/mix.jpg" -[[apps.details.shots]] -caption = "Automation and memory locations" -key = "automation" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/soundcraft/automation.jpg" -[[apps.details.shots]] -caption = "The Score Editor" -key = "score" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/soundcraft/score.jpg" - -[[apps]] -color = [240, 122, 30] -former_bundles = [] -former_ids = [] -former_names = [] -id = "deckcraft" -binary = "deckcraft" -flatpak_id = "ai.storyteller.deckcraft" -mac_bundle_id = "ai.storyteller.deckcraft" -mac_bundle_name = "DeckCraft" -website = "https://getartcraft.com/apps/deckcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "deckcraft" -rpm_package = "deckcraft" -desktop_categories = ["Office", "Presentation"] -startup_wm_class = "ai.storyteller.deckcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/deckcraft-1bf98b43bb0b21cb038ce063e71b9922e7f48c10d5b99afd046aa6c30642ca69.png" -icon_sha256 = "1bf98b43bb0b21cb038ce063e71b9922e7f48c10d5b99afd046aa6c30642ca69" -ink_dark = [255, 160, 96] -ink_light = [168, 79, 10] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "DeckCraft" -publisher = "ArtCraft" -repo = "storytold/deckcraft" -tagline = "Presentations and slide shows" -[apps.details] -headline = "Create slides, tell stories and present." -about = "A presentation app with slide masters, shapes, animations and a presenter view. In alpha, heading for beta." -platforms = "macOS, Windows, Linux, BSD, web" -[[apps.details.features]] -text = "Slide masters and layouts with placeholders that inherit formatting, themes, sections, notes and comments." -title = "Make decks" -[[apps.details.features]] -text = "Preset shapes with adjust handles, connectors that stay glued to shapes, freeform tools, merged shapes, gradients, shadows and glow." -title = "Draw" -[[apps.details.features]] -text = "In-place text editing with full font and paragraph formatting, bullets and numbering, columns and autofit." -title = "Write" -[[apps.details.features]] -text = "Pictures with crop and corrections, styled tables, charts, audio and video." -title = "Add content" -[[apps.details.features]] -text = "Transitions including Morph, animations and motion paths, a full-screen slide show, presenter view and rehearsed timings." -title = "Present" -[[apps.details.features]] -text = "Opens and saves .pptx presentation files and exports PDF (slides, notes pages and handouts), PNG and JPEG." -title = "Exchange files" -[[apps.details.shots]] -caption = "Editing a slide, with sections and notes" -key = "editor" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/deckcraft/editor.jpg" -[[apps.details.shots]] -caption = "The Shape Format tab" -key = "shape" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/deckcraft/shape.jpg" -[[apps.details.shots]] -caption = "The slide sorter" -key = "sorter" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/deckcraft/sorter.jpg" -[[apps.details.shots]] -caption = "The Format Shape pane" -key = "format" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/deckcraft/format.jpg" - -[[apps]] -color = [62, 166, 232] -former_bundles = [] -former_ids = [] -former_names = [] -id = "cadcraft" -binary = "cadcraft" -flatpak_id = "ai.storyteller.cadcraft" -mac_bundle_id = "ai.storyteller.cadcraft" -mac_bundle_name = "CADCraft" -website = "https://getartcraft.com/apps/cadcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "cadcraft" -rpm_package = "cadcraft" -desktop_categories = ["Graphics", "Engineering", "VectorGraphics"] -startup_wm_class = "ai.storyteller.cadcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/cadcraft-c126ff5030d0a0f3e63f039bae81ca63ba71230da2e6fca54e08df1119ea3443.png" -icon_sha256 = "c126ff5030d0a0f3e63f039bae81ca63ba71230da2e6fca54e08df1119ea3443" -ink_dark = [124, 200, 255] -ink_light = [26, 111, 168] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "CADCraft" -publisher = "ArtCraft" -repo = "storytold/cadcraft" -tagline = "Computer-aided design and drafting" -[apps.details] -headline = "Computer-aided drafting, with a familiar workflow." -about = "A drafting app with the command line, object snaps and workflow that drafters already know. Free, with no account and no subscription. In early, fast development." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Type L, click two points, type @5<45 and press Enter. Prompts with clickable keywords, polar tracking, direct distance entry and grips work the way drafting habit expects." -title = "The workflow you know" -[[apps.details.features]] -text = "Reads and writes DXF natively (R12 through 2018) and opens and saves DWG (R13 through 2018). Exports SVG and PNG." -title = "Open files" -[[apps.details.features]] -text = "A responsive, native drafting workspace." -title = "Fast and native" -[[apps.details.features]] -text = "Draw, modify, dimension, hatch and block commands, layers with a properties manager, paper-space layouts and PDF plotting." -title = "A full drafting toolset" -[[apps.details.features]] -text = "Every menu item, tool and prompt is a command, available over MCP, a JSON control channel or the CLI." -title = "Built for agents" -[[apps.details.shots]] -caption = "An apartment floor plan" -key = "apartment" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/cadcraft/apartment.jpg" -[[apps.details.shots]] -caption = "A mechanical bracket drawing" -key = "bracket" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/cadcraft/bracket.jpg" -[[apps.details.shots]] -caption = "A layout sheet" -key = "layout" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/cadcraft/layout.jpg" - -[[apps]] -color = [31, 157, 85] -former_bundles = [] -former_ids = [] -former_names = [] -id = "gridcraft" -binary = "gridcraft" -flatpak_id = "ai.storyteller.gridcraft" -mac_bundle_id = "ai.storyteller.gridcraft" -mac_bundle_name = "GridCraft" -website = "https://getartcraft.com/apps/gridcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "gridcraft" -rpm_package = "gridcraft" -desktop_categories = ["Office", "Spreadsheet"] -startup_wm_class = "ai.storyteller.gridcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/gridcraft-01ef35442b8d466b52068fda67ab740309321c8bc813b62b9207dfc4116208e7.png" -icon_sha256 = "01ef35442b8d466b52068fda67ab740309321c8bc813b62b9207dfc4116208e7" -ink_dark = [79, 214, 138] -ink_light = [18, 112, 58] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "GridCraft" -publisher = "ArtCraft" -repo = "storytold/gridcraft" -tagline = "Spreadsheets and data" -[apps.details] -headline = "Spreadsheets you already know how to use." -about = "A spreadsheet with the ribbon, formula bar, sheet tabs and shortcuts you know. No subscription, no license server and no telemetry." -platforms = "macOS, Windows, Linux, BSD, web" -[[apps.details.features]] -text = "The ribbon, formula bar, Name Box, fill handle, point-mode formulas, Format Cells, Paste Special, conditional formatting, tables and charts." -title = "Familiar" -[[apps.details.features]] -text = "XLSX is the native format, with formulas, tables, conditional formats, charts, pivot tables and print settings round-tripping. CSV and TSV too." -title = "Compatible" -[[apps.details.features]] -text = "A dependency-graph calculation engine with dynamic arrays, LET and LAMBDA, structured table references, sort, AutoFilter and Flash Fill." -title = "Capable" -[[apps.details.features]] -text = "Copy-on-write workbooks, incremental recalculation and a grid that only lays out what is on screen." -title = "Fast" -[[apps.details.features]] -text = "Every ribbon button, menu item, dialog and keystroke is a command, available over a JSON control channel, an MCP server or the CLI." -title = "Agent-native" -[[apps.details.features]] -text = "Work on the desktop and the web." -title = "Everywhere" -[[apps.details.shots]] -caption = "A quarterly sales dashboard" -key = "hero" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/gridcraft/hero.jpg" -[[apps.details.shots]] -caption = "A household budget" -key = "budget" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/gridcraft/budget.jpg" -[[apps.details.shots]] -caption = "A pivot table" -key = "pivot" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/gridcraft/pivot.jpg" -[[apps.details.shots]] -caption = "Formatting a chart" -key = "chart" -url = "https://raw.githubusercontent.com/storytold/craft-launcher-assets/v1/gridcraft/chart.jpg" - -[[apps]] -color = [194, 103, 43] -former_bundles = [] -former_ids = [] -former_names = [] -id = "texturecraft" -binary = "texturecraft" -flatpak_id = "ai.storyteller.texturecraft" -mac_bundle_id = "ai.storyteller.texturecraft" -mac_bundle_name = "TextureCraft" -website = "https://getartcraft.com/apps/texturecraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "texturecraft" -rpm_package = "texturecraft" -desktop_categories = ["Graphics", "3DGraphics"] -startup_wm_class = "texturecraft" -icon_url = "https://getartcraft.com/launcher-app-icons/texturecraft-ac629a038a215a13d86172286142502b6efd17618869652050f291d9745346d2.png" -icon_sha256 = "ac629a038a215a13d86172286142502b6efd17618869652050f291d9745346d2" -ink_dark = [229, 138, 78] -ink_light = [156, 74, 21] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "TextureCraft" -publisher = "ArtCraft" -repo = "storytold/texturecraft" -tagline = "3D texture painting" -[apps.details] -headline = "Paint textures on 3D models." -about = "Paint materials on 3D models and export textures." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Paint materials on 3D models and export textures." -title = "Materials" -[[apps.details.features]] -text = "Bake mesh maps and use smart materials." -title = "Mesh maps" - -[[apps]] -color = [23, 138, 156] -former_bundles = [] -former_ids = [] -former_names = [] -id = "materialcraft" -binary = "materialcraft" -flatpak_id = "ai.storyteller.materialcraft" -mac_bundle_id = "ai.storyteller.materialcraft" -mac_bundle_name = "MaterialCraft" -website = "https://github.com/storytold/materialcraft" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "materialcraft" -rpm_package = "materialcraft" -desktop_categories = ["Graphics", "3DGraphics"] -startup_wm_class = "materialcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/materialcraft-2844f2a4cf2b1d06c7eeaec8bddf13c69a0a1c3356e6767e8e97eb6b540a2c7c.png" -icon_sha256 = "2844f2a4cf2b1d06c7eeaec8bddf13c69a0a1c3356e6767e8e97eb6b540a2c7c" -ink_dark = [99, 197, 211] -ink_light = [16, 101, 115] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "MaterialCraft" -publisher = "ArtCraft" -repo = "storytold/materialcraft" -site = "https://github.com/storytold/materialcraft" -tagline = "Procedural material design" -[apps.details] -headline = "Build materials with node graphs." -about = "Create tileable PBR materials and export texture maps." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Combine noises, patterns and filters." -title = "Node graphs" -[[apps.details.features]] -text = "Preview materials in 2D and on 3D models." -title = "Live previews" - -[[apps]] -color = [78, 123, 251] -former_bundles = [] -former_ids = [] -former_names = [] -id = "craft-anything" -binary = "craft-anything" -flatpak_id = "ai.storyteller.craft-anything" -mac_bundle_id = "ai.storyteller.craft-anything" -mac_bundle_name = "Craft Anything" -website = "https://getartcraft.com/apps/craft-anything" -windows_msi_publisher = "Learning Machines LLC" -deb_package = "craft-anything" -rpm_package = "craft-anything" -desktop_categories = ["Development", "Debugger"] -startup_wm_class = "ai.storyteller.craft-anything" -icon_url = "https://getartcraft.com/launcher-app-icons/craft-anything-ddab399079b3a0a28a6584fb2ffd209bb0407896f20a8084551b5feb3060deb1.png" -icon_sha256 = "ddab399079b3a0a28a6584fb2ffd209bb0407896f20a8084551b5feb3060deb1" -ink_dark = [116, 170, 255] -ink_light = [22, 89, 196] -kind = "official" -mac_team = "DJ6XS33FX8" -name = "Craft Anything" -publisher = "ArtCraft" -repo = "storytold/craft-anything" -tagline = "Find out how any software works, then craft your own" -[apps.details] -headline = "See how any website, app or game works, then build your own." -about = "Point it at a target and say what you want. It studies the original with real inspection tools, has a coding agent build a new project in the stack you ask for, checks the result against the original and refines it. Open source and clean-room." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Websites, desktop apps, phone apps, games and files: find out how they're built, with the evidence behind every answer." -title = "Study anything" -[[apps.details.features]] -text = "Say what you want and a coding agent builds a new project in the language or engine you name." -title = "Build your own" -[[apps.details.features]] -text = "Every build is compared with the original, at three screen widths for a page, and refined until it's close." -title = "Checked, not guessed" -[[apps.details.features]] -text = "Every tool is a CLI command and an MCP tool, and no AI is needed just to inspect." -title = "Agent-ready" - -[[apps]] -bundle = "io.tangencylabs.solidcraft" -color = [70, 161, 251] -former_bundles = ["ai.storyteller.solidcraft", "ai.storyteller.solvecraft"] -former_ids = [] -former_names = [] -id = "solidcraft" -binary = "solidcraft" -flatpak_id = "io.tangencylabs.solidcraft" -mac_bundle_id = "io.tangencylabs.solidcraft" -mac_bundle_name = "SolidCraft" -website = "https://solidcraft.io" -windows_msi_publisher = "SolidCraft contributors" -deb_package = "solidcraft" -rpm_package = "solidcraft" -desktop_categories = ["Graphics"] -startup_wm_class = "io.tangencylabs.solidcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/solidcraft-46e019499579b2f477228021dd91b187303921da5d4cd14f1002a10976cf0475.png" -icon_sha256 = "46e019499579b2f477228021dd91b187303921da5d4cd14f1002a10976cf0475" -ink_dark = [140, 196, 255] -ink_light = [22, 83, 174] -kind = "community" -mac_team = "G5QA5U5X2S" -msi_publisher = "SolidCraft contributors" -name = "SolidCraft" -publisher = "Tangency Labs" -repo = "tangency-labs/solidcraft" -site = "https://solidcraft.io" -tagline = "Parametric 3D CAD" -[apps.details] -headline = "Parametric 3D CAD, with editable sketches and solids." -about = "A parametric solid modeller by Tangency Labs. Sketch, constrain and build solids on an editable feature timeline: change a dimension and the model rebuilds. Early, but usable for simple parts. Open source, and it can be driven by AI agents through its MCP server." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Lines, arcs, splines and text, solved by SolidCraft's own constraint solver, with parameter-driven dimensions." -title = "Sketches and constraints" -[[apps.details.features]] -text = "Extrude, revolve, sweep, loft, fillet, chamfer, shell, holes, threads and patterns on a parametric timeline." -title = "Features" -[[apps.details.features]] -text = "STEP, IGES, 3MF, STL, OBJ and glTF in and out where supported, and .sc designs." -title = "Files" -[[apps.details.features]] -text = "A desktop app, a browser app, a headless CLI and an MCP server, all running the same commands." -title = "Desktop, web and agents" - -[[apps]] -bundle = "io.github.billsecond.mailcraft" -color = [15, 104, 240] -former_bundles = [] -former_ids = [] -former_names = [] -id = "mailcraft" -binary = "mailcraft" -flatpak_id = "io.github.billsecond.mailcraft" -mac_bundle_id = "io.github.billsecond.mailcraft" -mac_bundle_name = "MailCraft" -website = "https://mailcraft.work" -windows_msi_publisher = "MailCraft contributors" -deb_package = "mailcraft" -rpm_package = "mailcraft" -desktop_categories = ["Graphics"] -startup_wm_class = "io.github.billsecond.mailcraft" -icon_url = "https://getartcraft.com/launcher-app-icons/mailcraft-dd0e62a27b0066ae5f461d5f829cfa143b49ca6a1b9dc9b47686818edd664bf7.png" -icon_sha256 = "dd0e62a27b0066ae5f461d5f829cfa143b49ca6a1b9dc9b47686818edd664bf7" -ink_dark = [143, 191, 255] -ink_light = [6, 52, 196] -kind = "community" -msi_publisher = "MailCraft contributors" -name = "MailCraft" -publisher = "UCS Labs" -repo = "UCS-Care-Group/mailcraft" -site = "https://mailcraft.work" -tagline = "Mail, calendar and contacts" -[apps.details] -headline = "Mail, calendar, contacts and tasks, in one native app." -about = "An open-source mail program by UCS Labs, written from scratch in Rust: the folder pane, message list and reading pane people already know, with a calendar, people and to-dos. Works with Microsoft 365, Outlook.com and IMAP. In public beta, and it can be driven by AI agents through its MCP server." -platforms = "macOS, Windows, Linux, FreeBSD, web" -[[apps.details.features]] -text = "Conversations, flags, categories, rules, search with a query language, and HTML mail shown without running anything in it." -title = "Mail" -[[apps.details.features]] -text = "Day, week and month views, recurring meetings, invitations and reminders, kept in step with Microsoft 365." -title = "Calendar" -[[apps.details.features]] -text = ".eml, .mbox, .ics and .vcf in and out, and the mail and contacts of an Outlook .pst file in." -title = "Files" -[[apps.details.features]] -text = "A desktop app, a browser app, a CLI and an MCP server, all running the same commands." -title = "Desktop, web and agents" diff --git a/crates/core/tests/fixtures/hosted-catalog.toml.sig b/crates/core/tests/fixtures/hosted-catalog.toml.sig deleted file mode 100644 index a63f8e17..00000000 --- a/crates/core/tests/fixtures/hosted-catalog.toml.sig +++ /dev/null @@ -1 +0,0 @@ -1aCd92qni/Hq22Lh0HNYXL6JT+gpJia1MNhjMcPJsY0uuAeio0fjOszFmqhBDgviX5ff6dfHLkfgIjnyYoChBA== diff --git a/crates/native/src/backend.rs b/crates/native/src/backend.rs index fe26f84d..4e166615 100644 --- a/crates/native/src/backend.rs +++ b/crates/native/src/backend.rs @@ -636,10 +636,10 @@ impl NativeBackend { } let options = self.options(); let pre = options.prereleases; - let feed = if pre { None } else { load_feed(&self.paths) }; + let feed = load_feed(&self.paths); let now = crate::now(); for app in artcraft_launcher_core::hosted_catalog::apps().iter().filter(|a| self.platform.is_none_or(|p| a.runs_on(p.os))) { - let answer = match feed.as_ref().map(|f| f.answer(app, now)) { + let answer = match feed.as_ref().map(|f| if pre { f.answer_prerelease(app, now) } else { f.answer(app, now) }) { Some(FeedAnswer::Fresh(Some(r))) => Some((LatestRelease::Found(r), Origin::ArtCraftApi)), Some(FeedAnswer::Fresh(None)) => Some((LatestRelease::None, Origin::ArtCraftApi)), _ => self.source.as_ref().and_then(|s| s.cached(&release_query(feed.as_ref(), app), pre)).map(|l| (l, Origin::GitHub)), @@ -734,6 +734,9 @@ impl NativeBackend { self.check_nightly_at(manual, crate::now()); } + // Deliberately use the GitHub Nightly verifier for automatic installation/update checks. + // Signed catalog entries are discovery hints; they cannot replace the separately verified + // platform-specific Nightly descriptor, checksum, publication and rollback checks. fn check_nightly_at(&self, manual: bool, now: i64) { let Some(platform) = self.platform else { return }; let apps = self.nightly_apps(); @@ -2170,6 +2173,12 @@ fn planned_download( /// What one check asks: which feed to poll (a local mirror trumps everything), and how much to /// lean on GitHub. fn check_plan(http: &Http, mirror: Option<&String>, pre: bool, paths: &Paths, shared: &Arc) -> (Option, Fallback) { + // Backend harnesses use a stub release source; do not let current production releases + // supersede the fixture. The signed catalog paths have their own deterministic tests. + #[cfg(test)] + if matches!(&shared.host, HostDetection::Stub(_)) { + return (None, Fallback { trust_feed: false, github_every: EARLY_GITHUB_EVERY }); + } if let Some(base) = mirror { // A local mirror answers for everything: GitHub is never asked. (local_feed(http, base), Fallback { trust_feed: true, github_every: GITHUB_FALLBACK_EVERY }) @@ -2178,12 +2187,10 @@ fn check_plan(http: &Http, mirror: Option<&String>, pre: bool, paths: &Paths, sh } } -/// [`check_plan`] without a local mirror, given what the feed said. The feed serves stable -/// releases only, so with pre-releases on it can't settle an answer that may be a beta or RC. It -/// still stands in between GitHub's asks, which keep to the feed's own pace (hourly per app once -/// everything has loaded), not every check (#713). +/// The signed catalog describes all channels; legacy JSON only settles stable answers. +/// Keep GitHub prerelease discovery for legacy feeds at the normal fallback pace (#713). fn remote_plan(pre: bool, (feed, fallback): (Option, Fallback)) -> (Option, Fallback) { - if pre { (feed, Fallback { trust_feed: false, ..fallback }) } else { (feed, fallback) } + if pre && !feed.as_ref().is_some_and(|f| f.channel_aware) { (feed, Fallback { trust_feed: false, ..fallback }) } else { (feed, fallback) } } /// Answers the apps from a shared queue over a few workers, and returns which sources answered. @@ -2373,7 +2380,7 @@ fn latest_for( ) -> (Option, Origin, Option) { let repo = feed_repo(feed, app); if fallback.trust_feed { - match feed.map(|f| f.answer(app, now)) { + match feed.map(|f| if pre { f.answer_prerelease(app, now) } else { f.answer(app, now) }) { // The feed can lag GitHub by some minutes after a release. A check the user pressed // looks past it when GitHub's quota-free redirect names something newer (#91); one // reusing the last forced check's answers then takes GitHub's saved answer. @@ -2400,7 +2407,7 @@ fn latest_for( // GitHub couldn't answer (its limit, the launcher's budget, the network), or fell back // to a saved release older than the feed's: the feed's stable release stands. let live = answer.source == Source::GitHubApi && !matches!(answer.latest, LatestRelease::Failed(_)); - if !live && let Some(stable) = feed_if_newer(feed, app, now, Some(&answer.latest)) { + if !live && let Some(stable) = feed_if_newer(feed, app, pre, now, Some(&answer.latest)) { return (Some(LatestRelease::Found(stable)), Origin::ArtCraftApi, Some(Source::Feed)); } (Some(answer.latest), Origin::GitHub, Some(answer.source)) @@ -2410,17 +2417,20 @@ fn latest_for( // named last time, without waiting for GitHub's next turn; so does it when nothing is // saved from GitHub for this track yet (pre-releases just turned on). A check reusing a // forced one's answers keeps whichever of the two is newer. - match feed_if_newer(feed, app, now, cached.as_ref()) { + match feed_if_newer(feed, app, pre, now, cached.as_ref()) { Some(stable) => (Some(LatestRelease::Found(stable)), Origin::ArtCraftApi, Some(Source::Feed)), None => (cached, Origin::GitHub, None), } } } -/// The feed's fresh stable release for `app`, when it is newer than `github`'s answer, or that +/// The feed's fresh selected-channel release for `app`, when it is newer than `github`'s answer, or that /// answer is missing, empty or failed. -fn feed_if_newer(feed: Option<&Feed>, app: &CraftApp, now: i64, github: Option<&LatestRelease>) -> Option { - let Some(FeedAnswer::Fresh(Some(stable))) = feed.map(|f| f.answer(app, now)) else { return None }; +fn feed_if_newer(feed: Option<&Feed>, app: &CraftApp, pre: bool, now: i64, github: Option<&LatestRelease>) -> Option { + let Some(FeedAnswer::Fresh(Some(stable))) = feed.map(|f| if pre && f.channel_aware { f.answer_prerelease(app, now) } else { f.answer(app, now) }) + else { + return None; + }; let newer = match github { Some(LatestRelease::Found(saved)) => { stable.version.as_ref().zip(saved.version.as_ref()).is_some_and(|(stable, saved)| version::is_newer(stable, saved)) @@ -2462,6 +2472,9 @@ fn track_answer( ) -> (Option, Origin, Option) { let query = release_query(feed, app).with_priority(github_priority(app, track, shared, force)); if *track == VersionTrack::Nightly { + if !force && let Some(FeedAnswer::Fresh(Some(nightly))) = feed.map(|f| f.answer_nightly(app, now)) { + return (Some(LatestRelease::Found(nightly)), Origin::ArtCraftApi, Some(Source::Feed)); + } // Its own record, apart from the stable track's: asking about one doesn't stand in for // the other when the app switches tracks. let key = format!("{}@nightly", app.id); @@ -2542,15 +2555,35 @@ enum FeedFetch { Held, } -/// Asks ArtCraft's release feed up to `attempts` times, as often as `throttle` allows (waiting at -/// most [`MAX_THROTTLE_WAIT`] for it), saving a good answer. +#[derive(serde::Serialize, serde::Deserialize)] +struct SignedFeedCache { + catalog: String, + signature: String, +} + +/// Fetch and verify both parts of a signed feed using the caller's catalog transport. +fn signed_feed(url: &str, get: impl Fn(&str, usize) -> Result>, String>) -> Result<(Feed, SignedFeedCache), String> { + let sig_url = format!("{url}.sig"); + let catalog = get(url, artcraft_launcher_core::hosted_catalog::MAX_CATALOG_BYTES)?.ok_or("hosted catalog is not published")?; + let signature = get(&sig_url, artcraft_launcher_core::hosted_catalog::MAX_SIGNATURE_BYTES)?.ok_or("catalog signature is not published")?; + let feed = Feed::parse_signed_catalog(&catalog, &signature)?; + let saved = SignedFeedCache { + catalog: String::from_utf8(catalog).map_err(|_| "catalog is not UTF-8")?, + signature: String::from_utf8(signature).map_err(|_| "signature is not UTF-8")?, + }; + Ok((feed, saved)) +} + +/// Asks ArtCraft's signed catalog (or a local-mirror JSON feed) up to `attempts` times, as often +/// as `throttle` allows (waiting at most [`MAX_THROTTLE_WAIT`] for it), saving a good answer. fn fetch_feed(http: &Http, paths: &Paths, url: &str, throttle: &Mutex, attempts: usize) -> FeedFetch { let mut asked = false; + let is_signed_catalog = url.ends_with(".toml"); for attempt in 0..attempts.max(1) { let wait = throttle.lock().unwrap_or_else(PoisonError::into_inner).wait(crate::now()); if wait > MAX_THROTTLE_WAIT { if !asked { - log::info!("holding off the ArtCraft API for {wait} s"); + log::info!("holding off the release catalog for {wait} s"); } break; } @@ -2566,27 +2599,46 @@ fn fetch_feed(http: &Http, paths: &Paths, url: &str, throttle: &Mutex match Feed::parse(&body) { - Some(feed) => { - if let Err(e) = crate::paths::write_atomic(&paths.feed_cache(), body.as_bytes()) { - log::warn!("couldn't save the release feed: {e}"); + let outcome = if is_signed_catalog { + let fetched = signed_feed(url, |url, max| http.get_catalog_bytes(url, max)); + match fetched { + Ok((feed, saved)) => { + if let Ok(bytes) = serde_json::to_vec(&saved) + && let Err(e) = crate::paths::write_atomic(&paths.feed_cache(), &bytes) + { + log::warn!("couldn't save the release catalog: {e}"); } throttle.lock().unwrap_or_else(PoisonError::into_inner).finished(Outcome::Answered, crate::now(), 0.0); return FeedFetch::Answered(feed); } - None => { - log::warn!("the release feed answered with something unreadable (try {})", attempt + 1); + Err(why) => { + log::info!("signed release catalog unavailable (try {}): {why}", attempt + 1); Outcome::Failed { retry_after: None } } - }, - Err(e) if e.throttled => { - log::warn!("the ArtCraft API asked us to slow down (HTTP 429); holding off"); - Outcome::Throttled { retry_after: e.retry_after } } - Err(e) => { - log::info!("release feed unavailable (try {}): {}", attempt + 1, e.why); - Outcome::Failed { retry_after: e.retry_after } + } else { + match http.get_feed(url) { + Ok(body) => match Feed::parse(&body) { + Some(feed) => { + if let Err(e) = crate::paths::write_atomic(&paths.feed_cache(), body.as_bytes()) { + log::warn!("couldn't save the release feed: {e}"); + } + throttle.lock().unwrap_or_else(PoisonError::into_inner).finished(Outcome::Answered, crate::now(), 0.0); + return FeedFetch::Answered(feed); + } + None => { + log::warn!("the release feed answered with something unreadable (try {})", attempt + 1); + Outcome::Failed { retry_after: None } + } + }, + Err(e) if e.throttled => { + log::warn!("the release feed asked us to slow down (HTTP 429); holding off"); + Outcome::Throttled { retry_after: e.retry_after } + } + Err(e) => { + log::info!("release feed unavailable (try {}): {}", attempt + 1, e.why); + Outcome::Failed { retry_after: e.retry_after } + } } }; throttle.lock().unwrap_or_else(PoisonError::into_inner).finished(outcome, crate::now(), feed_throttle::jitter()); @@ -2676,9 +2728,14 @@ fn mirror_chosen(app: &CraftApp, feed: Option<&Feed>, now: i64, track: &VersionT (chosen, origin, source) } -/// The last saved feed answer, if any. +/// The last saved feed answer, if any. Signed catalog caches are always reverified against the +/// pinned Ed25519 key before parsing. fn load_feed(paths: &Paths) -> Option { - std::fs::read_to_string(paths.feed_cache()).ok().and_then(|body| Feed::parse(&body)) + let body = std::fs::read_to_string(paths.feed_cache()).ok()?; + if let Ok(signed) = serde_json::from_str::(&body) { + return Feed::parse_signed_catalog(signed.catalog.as_bytes(), signed.signature.as_bytes()).ok(); + } + Feed::parse(&body) } /// The machine's real architecture: an x64 launcher on Windows on ARM should still pick ARM64 @@ -3532,6 +3589,52 @@ mod tests { (url, hits) } + #[test] + fn signed_feed_round_trips_through_offline_cache_and_rejects_tampering() { + use artcraft_launcher_core::hosted_catalog::{BUILD_CATALOG_SIG, BUILD_CATALOG_TOML, CATALOG_URL, SIGNATURE_URL}; + let (feed, mut saved) = signed_feed(CATALOG_URL, |url, _| match url { + CATALOG_URL => Ok(Some(BUILD_CATALOG_TOML.to_vec())), + SIGNATURE_URL => Ok(Some(BUILD_CATALOG_SIG.to_vec())), + _ => panic!("unexpected URL {url}"), + }) + .unwrap(); + assert!(!feed.apps.is_empty()); + let dir = tempfile::tempdir().unwrap(); + let paths = Paths::under(dir.path()); + crate::paths::write_atomic(&paths.feed_cache(), &serde_json::to_vec(&saved).unwrap()).unwrap(); + assert_eq!(load_feed(&paths), Some(feed)); + saved.catalog.push('\n'); + crate::paths::write_atomic(&paths.feed_cache(), &serde_json::to_vec(&saved).unwrap()).unwrap(); + assert!(load_feed(&paths).is_none()); + assert!(signed_feed(CATALOG_URL, |_, _| Ok(None)).is_err()); + assert!(signed_feed(CATALOG_URL, |url, _| Ok((url == CATALOG_URL).then(|| BUILD_CATALOG_TOML.to_vec()))).is_err()); + } + + #[test] + fn nightly_track_prefers_a_fresh_catalog_answer_without_requesting_github() { + let github = CountingGitHub::default(); + let shared = shared(); + let photo = CraftApp::by_id("photocraft").unwrap(); + let tag = "v0.24.0-nightly.20261009.1.1"; + let mut feed = feed(); + feed.apps.get_mut(photo.id).unwrap().nightly = Some(artcraft_launcher_core::feed::FeedRelease { + tag: tag.into(), + prerelease: true, + assets: vec![( + "SHA256SUMS.txt".into(), + 1, + format!("https://github.com/{}/releases/download/{tag}/SHA256SUMS.txt", photo.repo), + Some("a".repeat(64)), + )], + ..Default::default() + }); + let (latest, origin, used) = track_answer(photo, &VersionTrack::Nightly, Some(&feed), &github, &shared, false, NOW); + assert!(matches!(latest, Some(LatestRelease::Found(r)) if r.tag == tag)); + assert_eq!(origin, Origin::ArtCraftApi); + assert_eq!(used, Some(Source::Feed)); + assert_eq!(github.0.load(Ordering::SeqCst), 0); + } + #[test] fn a_429_stops_the_retries_and_holds_off_the_api() { let (url, hits) = serve("429 Too Many Requests"); @@ -3756,6 +3859,34 @@ mod tests { assert_eq!(github.0.load(Ordering::SeqCst), 2, "due again after an hour"); } + #[test] + fn signed_channel_aware_plan_uses_rc_and_keeps_it_on_github_failure() { + let photo = CraftApp::by_id("photocraft").unwrap(); + let catalog = Feed::parse_catalog_toml( + r#"generated_at = "2026-10-09T13:00:00Z" +[[apps]] +id = "photocraft" +repo = "storytold/photocraft" +[apps.releases.stable] +tag = "v0.23.1" +[apps.releases.prerelease] +tag = "v0.24.0-rc.1" +prerelease = true +"#, + ) + .unwrap(); + let (feed, plan) = remote_plan(true, (Some(catalog), LOADED)); + assert!(plan.trust_feed); + let github = CountingGitHub::default(); + let (latest, _, used) = latest_for(photo, feed.as_ref(), plan, &github, &shared(), true, false, NOW); + assert!(matches!(latest, Some(LatestRelease::Found(r)) if r.tag == "v0.24.0-rc.1")); + assert_eq!(used, Some(Source::Feed)); + assert_eq!(github.0.load(Ordering::SeqCst), 0); + let unavailable = Some(LatestRelease::Failed("offline".into())); + assert_eq!(feed_if_newer(feed.as_ref(), photo, true, NOW, unavailable.as_ref()).unwrap().tag, "v0.24.0-rc.1"); + assert_eq!(feed_if_newer(feed.as_ref(), photo, false, NOW, unavailable.as_ref()).unwrap().tag, "v0.23.1"); + } + /// Asking GitHub with pre-releases off doesn't stand in for asking with them on: turning them /// on asks again at once, not after the hour. #[test] diff --git a/crates/native/src/hosted_catalog.rs b/crates/native/src/hosted_catalog.rs index d0a3a2ba..3de10158 100644 --- a/crates/native/src/hosted_catalog.rs +++ b/crates/native/src/hosted_catalog.rs @@ -117,6 +117,24 @@ mod tests { let cache = paths.feed_cache().with_file_name("launcher-catalog.json"); let verified = saved_catalog(&cache).expect("live catalog must be cached and verify with the pinned key"); assert_eq!(verified.rejected_entries, 0); + // Exercise the actual release-feed parser against the same signed bytes the native + // startup path just fetched, not only the app and icon metadata. + use artcraft_launcher_core::catalog::LAUNCHER; + use artcraft_launcher_core::feed::{Feed, FeedAnswer}; + let saved: Saved = serde_json::from_slice(&std::fs::read(&cache).unwrap()).unwrap(); + let feed = Feed::parse_signed_catalog(saved.catalog.as_bytes(), saved.signature.as_bytes()).unwrap(); + let now = crate::now(); + assert!(matches!(feed.answer(&LAUNCHER, now), FeedAnswer::Fresh(Some(release)) if !release.assets.is_empty())); + for app in artcraft_launcher_core::hosted_catalog::apps() { + if feed.apps.get(app.id).is_some_and(|entry| entry.release.is_some()) { + assert!( + matches!(feed.answer(app, now), FeedAnswer::Fresh(Some(release)) if !release.assets.is_empty()), + "invalid live stable release for {}", + app.id + ); + } + } + assert!(feed.apps.get("photocraft").is_some_and(|entry| entry.release.is_some())); let icons: Vec<_> = verified.icons().collect(); assert!(!icons.is_empty()); for (id, _, digest) in icons { @@ -131,8 +149,8 @@ mod tests { let dir = tempfile::tempdir().unwrap(); let path = dir.path().join("catalog.json"); let mut saved = Saved { - catalog: include_str!("../../core/tests/fixtures/hosted-catalog.toml").into(), - signature: include_str!("../../core/tests/fixtures/hosted-catalog.toml.sig").into(), + catalog: std::str::from_utf8(artcraft_launcher_core::hosted_catalog::BUILD_CATALOG_TOML).unwrap().into(), + signature: std::str::from_utf8(artcraft_launcher_core::hosted_catalog::BUILD_CATALOG_SIG).unwrap().into(), }; write_atomic(&path, &serde_json::to_vec(&saved).unwrap()).unwrap(); assert!(saved_catalog(&path).is_some()); diff --git a/crates/native/src/screenshots.rs b/crates/native/src/screenshots.rs index b9946c5a..a04e5de8 100644 --- a/crates/native/src/screenshots.rs +++ b/crates/native/src/screenshots.rs @@ -50,6 +50,14 @@ fn download(http: &Http, url: &str, saved: &Path) -> Result, Failure> { Ok(bytes) } +/// Try the fallback for the same picture before treating the primary failure as network-wide. +fn download_with_fallback(http: &Http, url: &str, fallback: Option<&str>, saved: &Path) -> Result, Failure> { + download(http, url, saved).or_else(|primary| match fallback { + Some(fallback) => download(http, fallback, saved).map_err(|err| if matches!(err, Failure::Picture(_)) { err } else { primary }), + None => Err(primary), + }) +} + /// Every picture of `details`, lead first, handed to `emit` one by one as it is had. Saved copies /// need no network. Once the network or the server has failed, the pictures still to fetch fail at /// once with the same reason instead of each waiting for its own timeout; saved ones are still @@ -67,7 +75,7 @@ pub fn fetch_all(http: Option<&Http>, paths: &Paths, details: &AppDetails, mut e continue; } let result = match (http, details.screenshot_url(shot.key)) { - (Some(http), Some(url)) => download(http, &url, &saved), + (Some(http), Some(url)) => download_with_fallback(http, &url, details.screenshot_fallback_url(shot.key).as_deref(), &saved), (None, _) => Err(Failure::Network("HTTPS isn't available".into())), (_, None) => Err(Failure::Picture("this page has no such picture".into())), }; @@ -123,6 +131,20 @@ mod tests { assert_eq!(saved_copy(&saved), Some(jpeg())); } + #[test] + fn screenshot_fallback_recovers_and_missing_fallback_is_picture_specific() { + let dir = tempfile::tempdir().unwrap(); + let saved = dir.path().join("pic.jpg"); + let http = Http::new().unwrap(); + let gone = std::net::TcpListener::bind("127.0.0.1:0").unwrap().local_addr().unwrap(); + let primary = format!("http://{gone}/pic.jpg"); + let (fallback, _) = serve(jpeg(), vec![Reply::Full]); + assert_eq!(download_with_fallback(&http, &primary, Some(&fallback), &saved).unwrap(), jpeg()); + assert_eq!(saved_copy(&saved), Some(jpeg())); + let (missing, _) = serve(Vec::new(), vec![Reply::Missing]); + assert!(matches!(download_with_fallback(&http, &primary, Some(&missing), &saved), Err(Failure::Picture(_)))); + } + #[test] fn what_is_not_a_picture_is_not_kept() { let dir = tempfile::tempdir().unwrap(); diff --git a/crates/native/src/source.rs b/crates/native/src/source.rs index 51a82f00..a80d70ad 100644 --- a/crates/native/src/source.rs +++ b/crates/native/src/source.rs @@ -1114,9 +1114,12 @@ mod tests { // MailCraft moved from `UCS-Care-Group` to `UCSLabs` (#1593). Before the rename the new name // is a 404, after it the new name answers: either way the release is found once, and its // downloads belong to the repo that answered. - let app = artcraft_launcher_core::CraftApp::by_id("mailcraft").unwrap(); + let mut app = *artcraft_launcher_core::CraftApp::by_id("mailcraft").unwrap(); + app.repo = "UCSLabs/mailcraft"; + app.former_repo = Some("UCS-Care-Group/mailcraft"); + let app = &app; let query = ReleaseQuery::for_app(app, app.repo); - let former = app.former_repo.unwrap(); + let former = "UCS-Care-Group/mailcraft"; let (_temp, source) = fresh_source(); for live in [former, app.repo] { let asked = std::cell::RefCell::new(Vec::new()); @@ -1147,8 +1150,11 @@ mod tests { #[test] fn a_release_saved_under_the_former_name_still_stands_in() { // Checked before the rename, opened offline after it: nothing is saved under the new name. - let app = artcraft_launcher_core::CraftApp::by_id("mailcraft").unwrap(); - let (_temp, source, release) = shared_selection_saved_source(app.former_repo.unwrap(), "v0.15.0"); + let mut app = *artcraft_launcher_core::CraftApp::by_id("mailcraft").unwrap(); + app.repo = "UCSLabs/mailcraft"; + app.former_repo = Some("UCS-Care-Group/mailcraft"); + let app = &app; + let (_temp, source, release) = shared_selection_saved_source("UCS-Care-Group/mailcraft", "v0.15.0"); assert_eq!(source.cached(&ReleaseQuery::for_app(app, app.repo), true), Some(LatestRelease::Found(release))); } diff --git a/docs/releasing.md b/docs/releasing.md index 13cb1145..c6021e33 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -44,3 +44,17 @@ Packaging facts the code relies on: - `build.rs` reads `ARTCRAFT_LAUNCHER_BUILD_SHA` / `ARTCRAFT_LAUNCHER_BUILD_DATE` and, on Windows, embeds `assets/app-icon/artcraft-launcher.ico`, failing the build when `ARTCRAFT_LAUNCHER_REQUIRE_WINRES=1` and it can't. + +## Signed catalog at build and runtime + +For an offline or reproducible build, set `ARTCRAFT_CATALOG_DIR` to a pinned snapshot containing +`launcher-catalog.toml`, its detached `.sig`, and the `launcher-app-icons/-.png` +files. The build verifies the signature and icon digests. The default network build uses a +verified cache under the Cargo target directory (or `ARTCRAFT_CATALOG_CACHE_DIR`). +Windows packaging consumes the verified icons emitted by that exact build, without a second +network fetch. With `-SkipBuild`, pass `-CatalogOutputDir` if multiple core build outputs exist. + +The signed release catalog supplies stable release and Nightly discovery information. Automated +Nightly installation/update checks intentionally still use the GitHub Nightly verifier, which +validates the platform-specific descriptor and checksums and retains the existing scheduling +and rollback protections. A signed discovery entry alone is not permission to install a Nightly. diff --git a/packaging/windows/package.ps1 b/packaging/windows/package.ps1 index 7fda278f..71ce084b 100644 --- a/packaging/windows/package.ps1 +++ b/packaging/windows/package.ps1 @@ -22,7 +22,8 @@ #> param( [ValidateSet('x64', 'x86', 'arm64')] [string] $Arch = 'x64', - [switch] $SkipBuild + [switch] $SkipBuild, + [string] $CatalogOutputDir ) $ErrorActionPreference = 'Stop' $Root = (Resolve-Path (Join-Path $PSScriptRoot '..\..')).Path @@ -70,7 +71,29 @@ if (-not $SkipBuild) { # Fail the build (rather than warn) if the icon/VERSIONINFO can't be embedded. $env:ARTCRAFT_LAUNCHER_REQUIRE_WINRES = '1' # The launcher and the craft-ai-mcp gateway it ships (Settings › AI agents). - Invoke-Native "cargo build ($Target)" { cargo build --release --locked -p $Pkg -p $GatewayPkg --target $Target } + # Cargo reports the exact core build-script OUT_DIR, including for a fresh cached build. + # Keep compiler diagnostics visible, but select the verified outputs from this build only. + Invoke-Native "cargo build ($Target)" { + cargo build --release --locked -p $Pkg -p $GatewayPkg --target $Target --message-format=json-render-diagnostics | + ForEach-Object { + $message = $_ | ConvertFrom-Json + if ($message.reason -eq 'compiler-message') { Write-Host $message.message.rendered } + if ($message.reason -eq 'build-script-executed' -and + $message.package_id -match '#artcraft-launcher-core@') { + $script:CatalogOutputDir = $message.out_dir + } + } + } +} elseif (-not $CatalogOutputDir) { + # -SkipBuild is for a previously built binary. Never guess between stale hashed OUT_DIRs. + $outputs = @(Get-ChildItem -Directory -Path (Join-Path $TargetDir "$Target\release\build") -Filter 'out' -Recurse -ErrorAction SilentlyContinue | + Where-Object { $_.Parent.Name -like 'artcraft-launcher-core-*' -or $_.Parent.Parent.Name -eq 'artcraft-launcher-core' } | + ForEach-Object { $_.FullName } | + Where-Object { Test-Path -LiteralPath (Join-Path $_ 'catalog.toml') }) + if ($outputs.Count -eq 1) { $CatalogOutputDir = $outputs[0] } +} +if (-not $CatalogOutputDir -or -not (Test-Path -LiteralPath (Join-Path $CatalogOutputDir 'catalog.toml'))) { + throw 'Missing verified launcher catalog build output. Build the launcher first (ARTCRAFT_CATALOG_DIR supports offline builds), or pass -CatalogOutputDir for the exact prebuilt binary.' } $Bin = Join-Path $TargetDir "$Target\release" @@ -121,12 +144,19 @@ function New-InstallerArt([string] $BannerOut, [string] $DialogOut) { $accent = [System.Drawing.ColorTranslator]::FromHtml('#2d81ff') $muted = [System.Drawing.Color]::FromArgb(153, 242, 241, 238) $line = [System.Drawing.Color]::FromArgb(38, 242, 241, 238) - # The Craft App Suite, in the launcher's order (crates/core/src/catalog.rs). - $apps = 'photocraft', 'vectorcraft', 'filmcraft', 'lightcraft', 'pdfcraft', 'effectcraft', - 'anicraft', 'designcraft', 'figcraft', 'wordcraft', 'soundcraft', 'deckcraft', 'cadcraft', 'gridcraft', 'craft-anything', 'texturecraft', 'materialcraft' + # Official apps in the signed catalog's order. Limit the art to its five-row grid. + $apps = @(Get-Content -LiteralPath (Join-Path $CatalogOutputDir 'installer-apps.txt') | Select-Object -First 20) $mark = [System.Drawing.Image]::FromFile((Join-Path $Root 'assets\app-icon\hicolor\256x256\apps\ai.storyteller.artcraft-launcher.png')) $wordmark = [System.Drawing.Image]::FromFile((Join-Path $Root 'docs\brand\artcraft-logo-white.png')) - $icons = $apps | ForEach-Object { [System.Drawing.Image]::FromFile((Join-Path $Root "assets\app-icons\$_.png")) } + # Reuse the exact build's signature- and digest-verified icons, including offline overrides. + # No independent catalog parser or network fetch is needed at packaging time. + $icons = $apps | ForEach-Object { + $icon = Join-Path $CatalogOutputDir "app-icons\$_.png" + if (-not (Test-Path -LiteralPath $icon -PathType Leaf)) { + throw "Missing verified launcher icon $_ in $CatalogOutputDir; rebuild the launcher." + } + [System.Drawing.Image]::FromFile($icon) + } # The site's label face; GDI+ draws a variable font at its default instance (Regular). $fonts = New-Object System.Drawing.Text.PrivateFontCollection $fonts.AddFontFile((Join-Path $Root 'assets\fonts\GeistMono-Variable.ttf')) @@ -160,7 +190,7 @@ function New-InstallerArt([string] $BannerOut, [string] $DialogOut) { $x += $g.MeasureString([string]$ch, $labelFont, 100, [System.Drawing.StringFormat]::GenericTypographic).Width + 1.35 } $brush.Dispose() - # The seventeen apps in four columns of 30 px cells: x=22..142, y=118..268. + # The suite apps in four columns of 30 px cells: x=22..142, y=118..268. $pen = New-Object System.Drawing.Pen $line, 1 $left = 22; $top = 118; $cell = 30; $columns = 4 for ($i = 0; $i -lt $icons.Count; $i++) {