Skip to content

feat(ingecad): add IngeCAD 2D CAD (org.ingecad.IngeCAD) - #582

Merged
jing2uo merged 1 commit into
flatpark:mainfrom
3ddruck12:add/org.ingecad.IngeCAD
Oct 8, 2026
Merged

jing2uo merged 1 commit into
flatpark:mainfrom
3ddruck12:add/org.ingecad.IngeCAD

Conversation

@3ddruck12

Copy link
Copy Markdown
Contributor

Adds IngeCAD 0.6.4, a free 2D CAD for DWG and DXF.

Upstream already publishes an official Flatpak (org.ingecad.IngeCAD). The current GitHub tag, v0.6.5, attaches only the Flatpak bundle and the snap. The newest release that ships the official Linux tarball is v0.6.4, so that is what this package pins. resolve-update.sh walks recent releases and takes the newest one that contains IngeCAD-<version>-linux-x86_64.tar.gz, so a later release that includes the tarball is picked up and flatpak update can move forward.

Packaging

  • App id org.ingecad.IngeCAD, the same id as upstream's own Flatpak.
  • Runtime org.freedesktop.Platform//26.08. The tarball is a self-contained PyInstaller tree (its own Python, Qt 6 and LibreDWG). ldd inside that runtime reports no missing libraries.
  • extra-data is the official Linux tarball, unpacked unmodified with tar --no-same-owner. The archive is owned by uid 1001.
  • Not on Flathub (/api/v2/appstream/org.ingecad.IngeCAD returns 404). GPL-3.0-or-later.

Sandbox

Granted: Wayland and X11 (the app restarts under xcb when Wayland EGL cannot create the desktop-GL context, so --socket=fallback-x11 would hide the socket it needs), dri, ipc, network (Terrain plugin elevation tiles), and xdg-documents, xdg-download, xdg-pictures.

Not granted, documented as flatpak override in the metainfo: home, removable media, an existing ~/.config/IngeCAD plot-style folder, host-etc for a shared /etc/ingecad setup, and CUPS.

Verification

  • read-descriptor.mjs and audit-descriptor.mjs exit 0
  • appstreamcli compose printed Success during flatpak-builder
  • resolve-update.sh resolves 0.6.4 and the official tarball URL, skipping v0.6.5
  • scripts/check-apply-extra.sh — apply_extra OK as root with no capabilities
  • Installed with flatpak-builder --install, then flatpak run org.ingecad.IngeCAD --check printed OK (shaders, LibreDWG, plugins, ezdxf)
  • The main window opened on this X11 session (IngeCAD — Untitled)
  • Did not exercise drawing, DWG round-trip, plotting, or a terrain download

Made with Cursor

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

Co-authored-by: Cursor <[email protected]>
@jing2uo

jing2uo commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Thanks — reviewed statically (nothing executed). Everything checks out; one question is the maintainer's to answer before merge, noted at the end.

Provenance & payload

  • extra-data pin verified: IngeCAD-0.6.4-linux-x86_64.tar.gz sha256 aaa03eea…65dcb, 128683398 bytes — matches the manifest and GitHub's asset digest.
  • Tarball: 660 entries under one IngeCAD-0.6.4/ root, owner runner (upstream CI); no traversal, all 48 symlinks resolve inside the tree, no setuid/setgid.
  • plugins/ (23 .py) and resources/ are byte-identical to the v0.6.4 tag.
  • IOC scan clean. RPATH/RUNPATH are $ORIGIN-relative, plus a /opt/hostedtoolcache/Python/... RUNPATH from upstream's setup-python build (absent in the sandbox, harmless).

Manifest & scripts

  • build-commands are install -Dm only; apply_extra unpacks the tarball unmodified with --no-same-owner; the wrapper execs the launcher named in the bundled .desktop.
  • resolve-update.sh only queries api.github.com for ingelibre/ingecad and emits JSON; skipping releases without a tarball is right.
  • finish-args: no escape permissions; --socket=x11 justified (same reasoning as upstream's own manifest). Narrower than upstream's --filesystem=home, with home/removable/config/host-etc/cups documented as overrides in the metainfo.
  • policy block consistent (GPL-3.0, no dangerous permissions). CI green.

Small fix requested

  • The Terrain plugin in 0.6.4 also fetches imagery from server.arcgisonline.com, tiles.maps.eox.at / s2maps.eu and tile.openstreetmap.org (plugins/terreno/tiles.py), not only elevation tiles. Please mention imagery in the metainfo permissions paragraph and the manifest comment.

Maintainer question (not a blocker on your side)

  • Upstream runs its own signed Flatpak repo with the same app id (downloads.ingecad.org/flatpak, recommended on ingecad.org). It already has v0.6.5, while this package pins 0.6.4 until a release ships the tarball again (v0.6.5's release workflow failed before uploading it). @komh to decide whether we list it alongside.
Full review checklist
# Check Verdict Evidence
0 Static only ✅ Bytes downloaded to an isolated dir; extracted with --no-same-owner --no-same-permissions; nothing executed
1.1 Scope ✅ New app, 9 files, all under registry/org.ingecad.IngeCAD/
1.2 High-scrutiny surface ✅ Untouched; the resolver lives in the new app dir
2.1 Submitter ✅ 3ddruck12, account since 2021-05, 32 repos, #581 merged
2.2 Source repo ✅ ingelibre/ingecad, org, created 2026-07-16, 69★ 10 forks, GPL-3.0
2.3 Commit identity ✅ 3ddruck <[email protected]> + Cursor co-author
2.4 Timeline ✅ Upstream has released since 0.6.0 (2026-09-06); not a throwaway
2.5 Trust tier ✅ Unknown-but-plausible
2.6 Artifact tier ✅ Tier 2 (official prebuilt)
3.1 Pinning ✅ extra-data sha256 + size=128683398 (org.ingecad.IngeCAD.yml:54-56)
3.1b Bytes in /app ✅ Only in-repo files via install; payload is extra-data
3.2 finish-args ✅ No escape perms; x11 justified (same as upstream's own manifest)
3.3 policy ✅ proprietary:false matches GPL-3.0; dangerous_permissions empty, consistent
3.4 build-commands ✅ org.ingecad.IngeCAD.yml:42-47 install only; payload unmodified
3.5 Source URL ✅ github.com/ingelibre/ingecad releases
3.6 app-id ✅ Same as upstream's own Flatpak (ingecad.org, upstream packaging/flatpak/)
3.7 update.command ✅ ./resolve-update.sh
3.8 Download host ✅ Upstream repo release
3.9 Optional perms ✅ home / run/media / ~/.config/IngeCAD / host-etc / cups written as overrides in metainfo
3.10 Local test ✅ build + install + --check + main window; untested parts listed
4.1 Runtime fetch-exec ✅ Only urlopen is the tile fetch in plugins/terreno/tiles.py:153; no subprocess / pip
4.2 Resolver ✅ curl + jq against api.github.com, no eval, outputs JSON
4.3 Network endpoints ⚠️ AWS terrain tiles + arcgis/eox/s2maps/osm imagery; metainfo only mentions elevation
5.1 sha256 ✅ aaa03eea… == pin == GitHub digest
5.2 Tarball inspection ✅ 660 entries, no traversal / out-of-tree symlink / setuid
5.3 Interpreted code ✅ plugins/ + resources/ match the v0.6.4 tag byte for byte
5.4 == official download ✅ Same as 5.1
5.5 Bundled prebuilts ➖ PyInstaller bundle built by upstream CI (runner uid)
5.6 IOC ✅ Clean; hostedtoolcache RUNPATH is benign
6.1/6.2 Compliance ✅ GPL CAD, nothing problematic
7.1 Verdict 👤 Technically PASS; redundancy with upstream's own Flatpak repo is the owner's call
7.2 Hard-fail — None

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