Skip to content

chore: full third-party licence notices - #20

Merged
nodemode-ai merged 4 commits into
mainfrom
chore/launcher-and-notices
Nov 30, 2026
Merged

nodemode-ai merged 4 commits into
mainfrom
chore/launcher-and-notices

Conversation

@gbarnai

@gbarnai gbarnai commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • feat: add THIRD-PARTY-NOTICES.txt with the full licence texts of everything formDAM ships: the Python runtime, 39 Python packages, 515 Rust crates and the downloaded ffmpeg build (linked to its formai-binaries notices and the LGPL text). There are no production npm packages on main.
  • Add setup/notices.py and setup/notices_crates.py (the generator, taken from the formdam-audio model with its macOS, Linux and Windows marker handling) and run python setup/notices.py --check in the CI test job.
  • Ship the file in every installer (tauri.conf.json bundle.resources) and freeze it into the engine (--add-data in the macOS, Linux and Windows build scripts). The engine serves it from /api/notices, and Settings > App > About formDAM > Licences and notices shows it.
  • Tests: the /api/notices route (served, and 404 when the file is missing) and the check (passes for this tree; names a missing section, a stale section and a missing file).
  • LICENSES.md stays the human list, and its intro and the README licence line now point to the new file. HASHOUT_LOG entries were added for the backend and the frontend.
  • Windows launcher: not applicable. formDAM has no agent_lookup or similar wrapper.

Tests

  • The notices check and the tests for the launcher behaviour this app depends on were run locally on macOS; failures seen locally also fail on main. Please rely on this PR's CI.

How to ship

  • Independent of other repos. The shared launcher file is the same byte for byte in every Form app (agent_lookup 1.1.0, source in FormVis). No version bump; it can go into the next release.

setup/notices.py writes THIRD-PARTY-NOTICES.txt from the installed Python
packages, the production npm packages, the Rust crates in Cargo.lock and
the downloaded ffmpeg build, and its check mode runs in CI. The file ships
in every installer and the engine, and Settings shows it under Licences
and notices. Tests cover the /api/notices route and the check, which
names a missing section, a stale section and a missing file.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner November 29, 2026 23:12
Vendor the upstream licence texts (with SOURCE.txt) for the 44 packages
whose published distribution carries none into setup/licence_texts, have
setup/notices.py fill those sections from them with a note naming the
source, and make --check fail when a vendored text is left unused.
setup/licence_texts is a folder of vendored licence files. The shell syntax
step ran bash -n on it (exit 126) and the icon generation test tried to read
it as a file.
Main already carried the notices generator; this branch's version adds the
vendored licence texts on top, so setup/notices.py is the branch's.
THIRD-PARTY-NOTICES.txt is regenerated from the merged requirements, so it
lists main's new packages (pypdf, pypdfium2, brotli, fonttools, resvg-py,
lottie-web) and keeps the vendored texts. The notices test checks both
sides' sample lines.
@nodemode-ai
nodemode-ai merged commit a18ff61 into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the chore/launcher-and-notices branch November 30, 2026 20:26
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