Commit Graph
97 Commits
Author SHA1 Message Date
Dylan M. Taylor f6409da7f7 Load signed hosted launcher catalog with offline fallback (#1115)
* Load and verify the signed website catalog with bundled fallback

* Preserve signed fixture bytes across platforms and fix web lint

* Document the opt-in live catalog integration check
2026-11-11 06:45:32 -05:00
Dylan M. Taylor 5b19f76540 fix: swap SoundCraft and WordCraft display order (#1392) 2026-11-11 06:23:15 -05:00
Dylan M. Taylor 6e24ed6ee1 Add AniCraft to the launcher suite 2026-11-09 20:12:45 -05:00
Martin Ball 78b3036e0d feat: add MailCraft as a community app
Add MailCraft (UCS-Care-Group/mailcraft) to the catalog as a community app by
UCS Care Group, with its icon, licences, details page and tagline in every
complete catalog. Downloads are checked against its SHA256SUMS.txt. Its macOS
builds are unsigned, so mac_team is None: the launcher opens an installed copy
there but installs nothing.

AGENTS.md lists its repo as an approved community app (approved 2026-11-08).
2026-11-10 00:23:15 +00:00
Mergen A 6dffb7b8cf Update all apps with single approved batch installation. 2026-11-09 17:07:55 +05:00
FredApps afa903afd4 Merge pull request #352 from MMexicann/fix/download-size-preview
Preview download sizes before installing or updating
2026-11-09 11:56:21 +01:00
Dylan M. Taylor a6eee0ca29 chore(catalog): remove ArtCraft Studio from launcher suite 2026-11-07 20:22:54 -05:00
Dylan M. Taylor 7ef47365cd Address review feedback on macOS bundle names, asset parsing, and xtask sync 2026-11-06 23:11:00 -05:00
Dylan M. Taylor 0ee0259c85 Format platform and native backend tests with cargo fmt 2026-11-06 22:17:14 -05:00
Dylan M. Taylor 3f9d0afab0 Support Studio release assets, skip ArtCraft on FreeBSD, and list as app #01
- Support ArtCraft Studio's published MSI and DMG asset formats in parse_asset_name while preserving existing asset naming
- Add real artcraft-release.json fixture and test asset selection across desktop platforms
- Add runs_on to CraftApp and filter out ArtCraft Studio on FreeBSD across backend and UI
- List ArtCraft Studio as app #01 in the README Craft App Suite table and xtask APPS array
2026-11-06 22:14:12 -05:00
Dylan M. Taylor 07129aadd2 Parse Studio release tags for launcher version comparisons 2026-11-06 16:20:26 -05:00
Dylan M. Taylor 23e73f20eb Add ArtCraft Studio to the launcher without a publisher badge 2026-11-06 15:53:04 -05:00
Mex 09985179e4 Merge branch 'main' into fix/download-size-preview 2026-11-05 19:39:42 +01:00
FredApps 39a345c7fd Merge pull request #1252 from arnav-hiwarkar/feat/open-without-updating
Open the installed copy without updating, and never offer an update that can't install
2026-11-05 18:02:26 +01:00
arnav-hiwarkarandClaude Opus 5.5 786a00018c fix(native): never probe the system under the reporting lock; document both Installable paths
- When a copy appears between a publisher looking and taking reporting,
  the answer uses the view its detection asked for (last_system_kinds)
  instead of probing there. A copy only enters installed through
  publish_detected, which asks first.
- Event::Installable's doc covers both emissions: in the batch with the
  Latest or Detected it depends on, and alone when only the plan changes.
- Tests: no probe under the lock (expired view kept), a plan report's
  answer follows the current settings, a concurrent poll never splits a
  pair.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 20:27:09 +05:30
FredApps 27d5e8f3f4 Merge branch 'main' into fix/1070-version-size-date 2026-11-05 14:52:26 +01:00
arnav-hiwarkarandClaude Opus 5.5 4931dd717f fix: the backend says whether an update can replace the installed copy
The UI guessed from any download this platform takes, but an install keeps
the way a copy was installed (an AppImage with an AppImage, an MSI with an
MSI), so an AppImage copy with a .deb-only release still showed Update,
was announced and started automatically, and then failed. The backend now
sends Event::Installable, from the same plan an install makes, before each
Latest and Detected it depends on and whenever the plan changes. The UI
uses it for installed copies and keeps its own check where there is no
answer (the web build).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 17:50:46 +05:30
RishikeshanandRishi-gdrx 1a3ce2033b fix(native): fall back to release pages when the GitHub API fails (#908)
Co-authored-by: Rishi-gdrx <rishikeshan.ns@partners.goodrx.com>
2026-11-05 13:07:29 +01:00
arnav-hiwarkarandClaude Opus 5.5 38b0f305e7 fix(core): no update offered when the newer release has nothing for this platform
An installed app whose newer release has no installable download here
showed Update available, counted in Updates, notified and was picked by
auto-update, and installing failed with 'has no download'. It now reports
Installed, like a repository-managed copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 16:51:27 +05:30
Zinadin ZidanandClaude Opus 5.5 8649959adb feat(versions): each version in the list shows its release date and download size (#1070)
Choose version, and the launcher's own version list in Settings, showed
only the tag. Each row now adds, at its right, the day the release came
out and the size of the package this machine would download, in the
launcher's usual date and size formats. Either is left out when unknown;
the row keeps the tag as its name and carries them as its description.
On the selected row they take the row's text colour, not the muted grey.

The size follows the backend's choice of package. An app's installed
copy keeps its format (an MSI stays an MSI, the launcher's Windows copy
is its portable ZIP, an AppImage stays an AppImage), else the preferred
formats among those it installs here; FreeBSD always takes the tarball.
Where that depends on package managers the UI can't see (other Linux
installs), the row gives the date alone. The launcher's own rows size
what its self-update downloads, the format the running copy was
installed as, which the backend now reports once it knows; until then
the manual download, except on Linux.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 12:44:52 +06:00
Bryan BrunettiandClaude Opus 5.5 885538a5aa feat: per-app launch options passed when an app is opened (#830)
Each installed app's menu gains "Launch options…": flags typed there are
saved in Settings.launch_flags (app.ron, keyed by catalog id) and added to
the app's command line on Open. core::args::split turns the text into
arguments (whitespace, "…"/'…' quoting, backslashes kept for Windows
paths) and refuses an unclosed quote, both in the dialog and at launch.
Flatpak, launcher-unpacked, plain binary and macOS .app installs all pass
the flags through; strings are translated in every complete catalog.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 03:19:51 +01:00
Mex 0d5777738c Merge branch 'main' into fix/download-size-preview 2026-11-04 21:43:20 +01:00
Dylan M. Taylor 61230e5fb8 Merge pull request #1147 from dylanmtaylor/feat/flatpark-externally-managed
feat: preserve Flatpak remotes and add opt-in OCI migration
2026-11-03 00:09:39 -05:00
Dylan M. Taylor ba0335b52c Fix Flatpak bundle ownership and signed updates 2026-11-03 00:01:58 -05:00
VoiceLessQ d90d2e1c6c fix(core): tighten tag, file name and notice link checks (#776, #782) (#1024)
* fix(core): tighten tag, file name and notice link checks (#776, #782)

- Tags from GitHub, the feed and the latest-release redirect must be up to
  64 of [A-Za-z0-9._+-], not starting with a dot (release::valid_tag).
  A feed tag like `v0.6.0~beta-` plus a bidi override still read as
  0.6.0-beta and was served; such a release now falls back to GitHub.
- Asset file names use the same allowlist, with no trailing dot and no
  Windows device names (CON, nul.txt, COM1.msi).
- Notice links go through safe_web_link, so plain http and user-info
  links are dropped, as in release notes.
- The 20-notice cap now counts the rename notices too.

* fix(core): treat only COM1-COM9 and LPT1-LPT9 as Windows device names

Microsoft's naming rules reserve COM1 to COM9 and LPT1 to LPT9 (plus the
superscript forms, which the ASCII allowlist already refuses), not COM0
or LPT0. Match them with a slice pattern instead of indexing.

* test(core): cover the hostile tags, names and links from review (#776, #782)

Adds a NUL in a tag, a file: notice link, 1,000 announcements, and direct
checks that a download link and a redirect use the same rules.

* fix(core): keep rename notices inside the notice cap (#782)

Twenty announcements left no room, so the cap cut the rename added after them.

* docs(core): notice links are https only now (#776)
2026-11-02 22:43:03 -05:00
Dylan M. Taylor 57143114d1 fix(install): bind a Replace answer to the path the user was shown (#1189)
Command::Replace carried only the app. Between the "already exists"
question and the answer, the release can change (a new version, another
asset name, another folder), and the install then recomputed its
destination and wrote over a different existing file with replace=true.

Replace now carries the path from Event::Occupied. The backend checks
what is in the way again: if it is exactly that path the install
overwrites it; if something else is in the way it asks again; if nothing
is, it installs without leave to overwrite.
2026-11-02 22:42:36 -05:00
Dylan M. Taylor e5d3039747 fix: Flatpak review fixes, and add the signature lookaside for signed bundles
Review of #1147:
- A failed OCI migration precheck (no version in the remote's AppStream data, polkit refusing
  remote-add, offline) now falls back to the bundle update instead of failing it; only errors
  once the reinstall starts are reported. The ref must list exactly the selected version.
- `flatpak list` names a named installation `system (<name>)`; the parser keeps `<name>`, and
  one packages::flatpak_scope builds the --user/--system/--installation= argument everywhere.
- A repository-managed Flatpak on a pinned or nightly track gets the "update with flatpak"
  hint instead of a plain `flatpak update`, and status no longer offers a GitHub version for it.
- The migration refuses while the app runs; the origin check after the reinstall can't be
  cancelled; is_flatpark_origin matches only `flatpark`; settings_install keeps its doc; the
  no-op oci_migration Cargo features are gone.

Signed bundles (storytold/craft-common-actions#129): a signed bundle's origin has the release
key but no signature lookaside, which `flatpak build-bundle` can't record, so its first update
from the ArtCraft OCI repository fails with "no valid signatures". The updater then sets
--signature-lookaside=https://getartcraft.com/signatures on that origin once and retries;
any other origin or error is left alone.
2026-11-02 21:29:10 -05:00
Dylan M. Taylor 25e53ccbba refactor: name OCI migration controls oci_migration 2026-11-02 17:37:36 -05:00
Dylan M. Taylor fc9ef02fee feat: expose OCI migration as an opt-in advanced setting 2026-11-02 17:37:36 -05:00
Dylan M. Taylor b17ca19ae8 fix: preserve Flatpak update scope and handle cancellation 2026-11-02 17:37:32 -05:00
Dylan M. Taylor 6708ee4c64 update: mark FlatPark flatpaks as externally managed and drive updates through FlatPark 2026-11-02 17:37:32 -05:00
Dylan M. Taylor ab20d70e38 Add MaterialCraft to the launcher suite (#1162)
* Add MaterialCraft to the launcher suite

* Stage MaterialCraft integration for its first published release

* Fix MaterialCraft website link and installer icon layout
2026-11-02 17:36:42 -05:00
Dylan M. Taylor c3b6a8dfc2 Add TextureCraft to the launcher suite (#1135)
* Add TextureCraft to the launcher suite

* Fix formatting of TextureCraft release fixture test

* Distinguish TextureCraft details headline from its card
2026-11-01 12:22:34 -05:00
Dylan M. Taylor c0fd8b06e4 feat: add Craft Anything to the launcher suite (#1113) 2026-10-31 23:32:54 -04:00
Martin BallandClaude Opus 5.5 627598eb7d fix(macos): install SolidCraft, checked against its own developer's signature
SolidCraft's macOS build has been Developer ID signed and notarized since 0.27 (its README),
but the launcher still treated it as unsigned (`installs_on_mac: false`), so on a Mac it
offered the update and then said no macOS version was available.

`installs_on_mac` becomes `mac_team`: the Apple team whose signature the build must carry.
Official apps keep ArtCraft's (DJ6XS33FX8); SolidCraft gets its own (G5QA5U5X2S, read from
the signature on its 0.27.1 macOS CLI). `None` still means the launcher installs no DMG, and
an install that reaches the DMG path without a team is now refused, not left unchecked.

Not run on a real Mac: the macos module only compiles there, and the DMG's own signature
still needs `codesign -dv` on a Mac to confirm the team matches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 15:37:08 +00:00
JeremyandClaude Opus 5.5 41ca7ef5bb feat(versions): choose an app or launcher version: latest, nightly or an exact release
Each app's menu gets "Choose version", and Settings > Updates gets a "Launcher version"
dropdown. Choosing a version closes the dialog, re-checks that exact release, and turns the
card's main action into "Install version {tag}" until that copy is installed.

- Nightly means an explicit -nightly prerelease tag with a published checksum, never any beta.
- A pinned tag never falls back to another release, and an install re-checks the track, so a
  stale stable result cannot install as nightly.
- A release asset must sit under its own repository, tag and file name.
- Older launcher versions are a manual download beside the pin; self-update only moves forward.
- The version list is the newest 100 releases from GitHub (one page), cached for 15 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 17:58:43 +00:00
Dylan M. Taylor 032a1224d3 Show PdfCraft in red (#975)
PdfCraft's app colour changed from green to red (storytold/pdfcraft#5245). The catalog
colours become #e8204f (app), #b70228 (light ink) and #f23a62 (dark ink), matching the
website, and assets/app-icons/pdfcraft.png is the new 128 px icon, copied unmodified.
The status-green comment no longer names PdfCraft as its source; the value is unchanged.
2026-10-29 12:13:44 -04:00
Dylan M. Taylor 9fabc13be2 Focus app descriptions on features and workflows (#1000) 2026-10-29 12:10:04 -04:00
Jeremy 67aefb33c0 Install new Windows apps for everyone in Program Files\ArtCraft, and show that folder as the default (#972)
* fix(installer): install new Windows apps for everyone, in Program Files\ArtCraft\<App>

A fresh MSI install now asks Windows Installer for the machine-wide context
(ALLUSERS=1) instead of taking the package's own default, which for a
dual-scope package is per-user (%LOCALAPPDATA%). Updates are unchanged: they
keep the context of the copy they replace. README row restored to Program Files.

* fix(ui): show the real default install folder, not just "System default"

The install-folder fields (the per-app Install dialog and Settings'
Default install folder) now show the folder a fresh install really
uses: Program Files\ArtCraft for a Windows MSI (machine-wide, from
the ALLUSERS=1 scope), the launcher's own apps folder for a portable
ZIP, /Applications on macOS. The host answers through the new
Host::default_install_folder, computed by native install::default_folder;
where no single default exists (web build, Linux system packages,
FreeBSD) the field keeps saying "System default". The same value is
the start folder of Browse, so it no longer starts at a literal
"System default" string.

* fix(review): the default folder follows the package and the installer

CodeRabbit review of #972: the Windows default now follows the selected
package's architecture (an x86 MSI picked because a release ships no
x64 one installs under Program Files (x86)), and answers nothing when
the architecture is unknown, so the field says "System default"
rather than guessing. The macOS default comes from the installer's own
applications_dir, so a machine where /Applications is not writable
shows ~/Applications. Browse now starts at the nearest folder that
exists, so a default created only by the first install
(Program Files\ArtCraft) no longer falls back to the picker's
unrelated start location. The desktop host memoises its answer because
the macOS path probes the disk and the fields redraw often.

* fix(review): keep the Linux and macOS builds of default_folder warning-free

The ubuntu Clippy gate caught what the dev machine cannot check (ring
needs a Linux C compiler): the Arch import is Windows-only, the macOS
arm consumes its unused parameters, and the Linux test calls the
three-argument signature.

* fix(ci): import Arch on every target, default_folder's signature uses it everywhere

0f5bd68 gated the import to Windows but the signature names Arch on all
targets, so the Linux clippy job failed with E0425.

* fix(review): the folder hint matches the real install and touches nothing

CodeRabbit review of #972.

- The install dialog's default follows the package the backend will really
  install: the preferred formats first, then every other format this
  platform installs, as choose_kinds does. A Portable ZIP preference with a
  release that ships only an MSI now shows Program Files, not the apps
  folder. The choice lives in the new install_target module.
- Settings covers every app, so it shows a folder only when every app that
  can be installed shares one; a 32-bit-only app beside a 64-bit one leaves
  it at "System default" instead of using the launcher's architecture.
- The macOS hint no longer borrows the installer's probe, which wrote a
  fixed-name file in /Applications (following a planted link) and created
  ~/Applications when it fell back. Both now use write_probe (fresh name,
  create_new), and only the installer creates ~/Applications.
- The desktop host caches each question, since Settings now asks per app.
2026-10-28 21:50:54 -04:00
Dylan M. Taylor 46761082e6 feat: add SolidCraft as a community app (Official / Community badges) (#963)
* feat: add SolidCraft as a community app, with Official and Community badges

Add AppKind (Official | Community) to the catalog and a bundle id override, since
SolidCraft's Flatpak and desktop id is io.tangencylabs.solidcraft. The grid card shows
the kind as a badge, and the table has a Type column. Strings are translated in the
seven complete catalogs.

Community apps are not under storytold/. AGENTS.md reserves that decision for a
maintainer; this PR needs that approval before it merges.

* details: add the SolidCraft page and fix its attribution licence

The page has no screenshots yet: the pictures repository has none for SolidCraft.
ATTRIBUTION.md now records the MIT OR Apache-2.0 licence that SolidCraft's README gives.

* fix: pass fmt, clippy, tests and wasm for the SolidCraft change

- Show each app's publisher as a lowercase byline ("by ArtCraft", "by Tangency Labs")
  in place of the Official and Community words, with a publisher field on CraftApp.
- Translate the byline, the By column and the SolidCraft tagline in every complete catalog.
- Format the catalog and details tables with rustfmt, and fix two needless borrows.

* fix: address review comments; Author column and shorter SolidCraft tagline

- Detect SolidCraft's MSI by its own publisher ("SolidCraft contributors"), recorded per
  app as CraftApp::msi_publisher.
- Look up missing Flatpak versions for every catalog bundle id, not only ai.storyteller.*.
- Keep SolidCraft's MIT and Apache-2.0 license texts next to its icon.
- Table: an Author column (plain text) after Released, before the buttons.
- SolidCraft's tagline is "Parametric 3D CAD": the card's byline names Tangency Labs.

* detect: find SolidCraft's Flatpak under its older ids

SolidCraft's Flatpak shipped as ai.storyteller.solvecraft, then ai.storyteller.solidcraft,
before io.tangencylabs.solidcraft. Add CraftApp::former_bundles and bundle_ids() (current
first), match them in the Flatpak list and the version lookup, and open and remove a
Flatpak under the id it was found under.

* fix: address CodeRabbit review (removal, Flatpak migration, macOS, website)

- Remove a deb/rpm/pacman install by the package name detection found, not the app id.
- After a Flatpak update from one of an app's older ids, uninstall the old copy (keeping
  its ~/.var/app data, which SolidCraft's first launch copies its settings from), so it
  doesn't reappear once the new one is removed.
- macOS: don't install SolidCraft from its macOS build, which carries no Developer ID
  signature to check (CraftApp::installs_on_mac); the Developer ID check for official apps
  is unchanged. A copy that's there is still detected and opened, under its current or a
  former bundle id.
- SolidCraft's Website link goes to solidcraft.io (CraftApp::site).

* docs(AGENTS): allow tangency-labs/solidcraft as an approved community app

Downloads come from storytold/<app>/releases or, for an approved community app, its own repo:
today only tangency-labs/solidcraft, approved by the project owner on 2026-10-28. Its repo is
pinned in the catalog; the release feed can't move an app out of storytold/. Community apps
get the same SHA256SUMS check, and macOS installs still need a verifiable Developer ID. The
rule that agents never land or approve another third-party app is unchanged.
2026-10-28 18:51:51 -04:00
Jeremy a83a505bc7 fix(installer): detect apps in the ArtCraft suite folder and describe the per-user default install location 2026-10-27 12:09:01 +00:00
Dylan M. Taylor ca67541cbd Merge pull request #865 from dylanmtaylor/security/decoded-payload-limits
security: bound decoded HTTP responses and screenshot decoding (F-006, F-008, F-009)
2026-10-24 22:37:15 -04:00
Dylan M. Taylor 07cd50b3f0 fix(security): validate fallback release URL and reject dot segments in feed repos
- Validates constructed fallback release URLs with safe_release_html_url to prevent command injection from malformed tags.
- Rejects empty, '.' and '..' path components in RawApp::into_app and RawRepoRename::into_rename.
2026-10-24 22:11:28 -04:00
Dylan M. Taylor ab5e83ffd1 security: bound decoded HTTP responses and screenshot decoding (F-006, F-008, F-009) 2026-10-24 21:47:13 -04:00
Dylan M. Taylor 416a3ff148 security: confine release HTML URLs and sanitize browser open links (F-004, F-007) 2026-10-24 21:42:38 -04:00
smittie2000andClaude Opus 5.5 b5333a6247 refactor(core): one table of bundled app icons (#789)
native's Linux menu integration and ui-egui's icons each kept the id -> PNG table;
adding FigCraft had to edit both. core::catalog::app_icon_png is the one table now,
with a test that every app in SUITE has a PNG.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 01:43:51 -04:00
smittie2000andClaude Opus 5.5 baa61c0967 refactor(core): one truncate helper for release and feed text (#783)
feed.rs and release.rs each had the same `truncate` (cut to a byte budget on a char
boundary, then an ellipsis). The feed now uses release's, which gains a test for the
multi-byte case.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 01:42:47 -04:00
Dylan M. Taylor 398dd79332 Merge pull request #748 from dylanmtaylor/security/resource-limits
security: bound decoded feed size, screenshot dimensions, and locale tag matching
2026-10-22 17:54:15 -04:00
skylartaylor 20715c1eed Merge current main and fix the CI formatting failures 2026-10-22 19:59:21 +02:00
Dylan M. Taylor d24cd0e1ba Merge pull request #751 from dylanmtaylor/security/url-opener-injection
security: reject shell metacharacters in opened web links (WSL cmd.exe injection)
2026-10-22 13:51:20 -04:00