Skip to content

feat(solidcraft): add SolidCraft parametric CAD (io.github.bherbruck.SolidCraft) - #629

Merged
jing2uo merged 3 commits into
flatpark:mainfrom
3ddruck12:add/solvecraft
Oct 12, 2026
Merged

jing2uo merged 3 commits into
flatpark:mainfrom
3ddruck12:add/solvecraft

Conversation

@3ddruck12

@3ddruck12 3ddruck12 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Adds SolveCraft 0.2.0, an open-source parametric 3D CAD app.

Upstream already publishes a single-file Flatpak bundle on each GitHub release. This package exists so an install from FlatPark follows new releases: resolve-update.sh reads the official solvecraft-<version>-linux-<arch>.tar.gz assets, and update-check can re-pin them.

Packaging

  • App id io.github.bherbruck.SolveCraft, from the author's GitHub account. Upstream's bundle is still published as ai.storyteller.solvecraft; that string is compiled into the 0.2.0 binary as its Wayland app id, so StartupWMClass keeps it.
  • Runtime org.freedesktop.Platform//26.08. The binaries need glibc and dlopen Wayland, X11, xkbcommon and Vulkan from the runtime. ldd inside that runtime reports no missing libraries.
  • extra-data is the official Linux tarball for x86_64 and aarch64, unpacked unmodified with tar --no-same-owner. The x86_64 archive is owned by uid 1001.
  • solvecraft-cli is included (flatpak run --command=solvecraft-cli io.github.bherbruck.SolveCraft).
  • Not on Flathub. MIT OR Apache-2.0.

Sandbox

Finish-args follow upstream's manifest: Wayland, fallback X11, ipc, dri, and xdg-documents. Network is not granted. The metainfo documents overrides for the --control server (--share=network) and for opening files by path under home.

Verification

  • read-descriptor.mjs and audit-descriptor.mjs exit 0 after the rename
  • Rebuilt with flatpak-builder after the id rename; appstreamcli compose printed Success
  • Installed that build. solvecraft-cli commands listed 313 commands, starting with sketch.create
  • The main window opened on this X11 session (SolveCraft, Wayland class ai.storyteller.solvecraft)
  • aarch64 tarball unpacks with the same apply_extra.sh; both binaries are ARM aarch64 ELF. This machine is x86_64, so they were not executed

3ddruck and others added 2 commits October 11, 2026 20:21
…craft)

Track the official Linux tarballs so FlatPark can publish updates from
GitHub releases without rebuilding the app from source.

Co-authored-by: Cursor <[email protected]>
The storyteller id comes from an upstream packaging template. The listing
should be named for the author.

Co-authored-by: Cursor <[email protected]>
@3ddruck12 3ddruck12 changed the title feat(solvecraft): add SolveCraft parametric CAD (ai.storyteller.solvecraft) feat(solvecraft): add SolveCraft parametric CAD (io.github.bherbruck.SolveCraft) Oct 11, 2026
…bruck.SolidCraft)

Upstream renamed the product and repo to SolidCraft in 0.3.0
(bherbruck/solidcraft); the old Pages address now 404s, which failed the
dead-link check. Rename the app id, display name and URLs, use the 0.3.0
icon, and pin 0.3.1 for both arches. Binary, asset and design-format
names keep their solvecraft compatibility names upstream, so the wrappers,
apply_extra and the resolver's asset match are unchanged.
@jing2uo jing2uo changed the title feat(solvecraft): add SolveCraft parametric CAD (io.github.bherbruck.SolveCraft) feat(solidcraft): add SolidCraft parametric CAD (io.github.bherbruck.SolidCraft) Oct 12, 2026
@jing2uo

jing2uo commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

@3ddruck12 one more ask: please keep an eye on upstream after this lands. If they rename the project again, or it moves under ArtCraft (or the app id changes for another reason), let us know or open a follow-up PR and we'll correct the package.

Flatpak can migrate installs to a new app id (end-of-life-rebase), and we're working out a formal rename process for FlatPark. If anything changes here, this app will probably be our first worked example.

@jing2uo

jing2uo commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

Thanks for this one too. I reviewed it statically per docs/pr-review.md: nothing from the PR or the tarballs was run. Recommendation: PASS. Upstream renamed the project to SolidCraft in 0.3.0 while this PR was open, so I pushed 8518085 to your branch to follow it (see "Fix pushed"). Nothing else is needed from you before merge.

Checks performed (head 8518085)

# Check Result Evidence
0 Static only ✅ Both tarballs downloaded as bytes into an isolated dir, listed before extracting, extracted with --no-same-owner --no-same-permissions. Nothing executed.
1.1 Scope ✅ New app: 10 files, all under registry/io.github.bherbruck.SolidCraft/
1.2 High-scrutiny surface ✅ No .github/, scripts/, config/ or existing-resolver edits. guard-infra passed. The resolver is part of the new app dir.
2.1 Submitter ✅ @3ddruck12: account from 2021-05, 32 public repos. Two apps already merged here (#581 IngeTrazo, #582 IngeCAD). The last commit is by a FlatPark maintainer.
2.2 Upstream repo ✅ bherbruck/solidcraft (formerly solvecraft): created 2026-10-07, 567★, 44 forks, MIT OR Apache-2.0, not a fork. Owner account dates from 2013 (167 repos) and wrote 485 of the commits.
2.3 Commit identity ✅ 0d9c82c and 8b15264 are by 3ddruck <[email protected]> with a Cursor co-author trailer; 8518085 is by a maintainer
2.4 Timeline ✅ Young repo, but an established author and a steady release stream (11 releases since 2026-10-09). All assets were uploaded by github-actions[bot].
2.5 Trust tier ✅ Established: two prior merged apps, plus maintainer co-authorship on this PR
2.6 Provenance tier ✅ Tier 2: official upstream prebuilt
3.1 Pinning ✅ Two extra-data sources (x86_64 / aarch64, via only-arches), each with sha256 + size (26540228 / 24316860). All other sources are local files.
3.1b Bytes in /app ✅ Only in-repo wrappers, desktop, metainfo, mime and icon are installed. The payload is extra-data.
3.2 finish-args ✅ wayland, fallback-x11, ipc, dri, xdg-documents. No escape permissions, no home, no network. Identical to upstream's own packaging/linux/flatpak/ai.storyteller.solvecraft.bundle.yml.
3.3 policy: ✅ proprietary: false is correct (MIT OR Apache-2.0). dangerous_permissions: [] is correct.
3.4 build-commands ✅ Seven install -Dm lines and nothing else. apply_extra.sh untars with --no-same-owner, renames the versioned top dir to solvecraft/, checks both binaries and removes the archive. No shim, no patch.
3.4b packaging: ✅ Not needed: the payload is unmodified, the wrappers only exec, and there are no host commands and no sandbox changes. audit-descriptor.mjs exits 0.
3.5 Source URLs ✅ github.com/bherbruck/solidcraft/releases/download/v0.3.1/…
3.6 App id ✅ io.github.bherbruck.SolidCraft is the author's GitHub namespace, which upstream's own metainfo also uses as <developer id>. Upstream's Flatpak keeps ai.storyteller.solvecraft, an id that came in with the PhotoCraft packaging template, and ai.storyteller.* is the ArtCraft namespace (we ship 12 apps under it). So we don't reuse it. If upstream renames again or the project moves under ArtCraft, we'll follow with a rename PR.
3.7 update.command ✅ ./resolve-update.sh
3.8 Download host ✅ Upstream repo releases, not the submitter's account
3.9 Optional caps ✅ Network (for the --control server) and home are not granted; both are documented as flatpak override commands in the metainfo
3.10 Local test ✅ Build, install, solvecraft-cli commands (313 commands) and the main window on X11. Untested areas are named (aarch64 not executed, Wayland not tried).
4.1 Runtime fetch-and-exec ✅ None in the packaging. The binary has no updater or download-and-run code; its only GitHub URLs are a releases/latest link and the new-issue link for the bug-report action.
4.2 Resolver as code ✅ curl of api.github.com/repos/bherbruck/solidcraft/releases/latest (optional token) and jq exact-name match on solvecraft-$version-linux-$arch.tar.gz, which still holds for 0.3.x. It writes no files, has no eval, and contacts no other host.
4.3 Network × filesystem ✅ No network by default. --control listens on 127.0.0.1 inside the sandbox. Filesystem is limited to Documents.
5.1 sha256 / size ✅ Re-downloaded: x86_64 d81b0d5796d530241cafeda11b1350a750d7c7c32a0b37632c6ad258d7d3a6da / 26540228, aarch64 f6e78b9b033c903316499802153a6f2442849dfcb6b39d27a98b7a5d507bb148 / 24316860. Both match the pins and GitHub's asset digest. The original 0.2.0 pins also matched upstream's SHA256SUMS.txt.
5.2 Archive listing ✅ 45 entries per arch (18 files, 27 dirs), all under one top dir solvecraft-0.3.1-linux-<arch>/. No absolute paths, no .., no symlinks, no setuid/setgid. Owner is uid 1001 (runner), hence --no-same-owner.
5.3 Tier 1 diff ➖ Tier 2 (compiled Rust)
5.4 Artifact == official ✅ Same hash as the upstream assets. apply_extra.sh does not modify the payload. The shipped icon is byte-identical to the tarball's 512×512 ai.storyteller.solvecraft.png.
5.5 Bundled prebuilts ➖ None. Two static-ish Rust binaries; X11, Wayland, xkbcommon and Vulkan are dlopened from the runtime.
5.6 IOC scan ✅ Both binaries are stripped PIE with NEEDED only libc, libm, libgcc_s (+ ld-linux), and no RPATH/RUNPATH. No autostart/cron/.bashrc, miner, /dev/tcp or nc -e strings, and no suspicious hardcoded IPs.
6.1 Purpose ✅ Open-source parametric 3D CAD. The "in the style of Fusion" summary is upstream's own wording, and upstream's README carries the Autodesk trademark notice.
6.2 License ✅ MIT OR Apache-2.0
— CI ✅ Both builds (x86_64, aarch64) pass. lint-and-test fails only on dead links in two other apps (io.github.abcwyc.pi-agent-desktop screenshots, top.izuna.foliamajor homepage) that the link check picked up from main. SolidCraft's own links all resolve.
7.1 Verdict ✅ PASS
7.2 Hard-fail triggers ✅ None

Fix pushed (8518085)

Upstream renamed the product and repo from SolveCraft to SolidCraft in 0.3.0. The old Pages address now 404s, which is why the first CI run failed. The commit:

  • renames the app id to io.github.bherbruck.SolidCraft, along with the directory and files
  • updates the name and the homepage, bugtracker, VCS and screenshot URLs, plus the resolver's repo=, to bherbruck/solidcraft
  • replaces the icon with the new 0.3.0 one
  • pins both arches to 0.3.1

Upstream keeps the solvecraft* binary, asset and design-format names for compatibility, so the wrappers, apply_extra.sh and the resolver's asset match are unchanged.

Non-blocking notes

  • StartupWMClass=ai.storyteller.solvecraft is the Wayland app id compiled into the binary (apps/solvecraft/src/main.rs:144), while upstream's own .desktop uses solvecraft. If you get a chance, xprop WM_CLASS on the main window under X11 would confirm which class the window gets there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants