Skip to content

feat: show the GPL and third-party licences under About - #30

Open
paviro wants to merge 1 commit into
RepriseOS:mainfrom
paviro:feature/licences
Open

paviro wants to merge 1 commit into
RepriseOS:mainfrom
paviro:feature/licences

Conversation

@paviro

@paviro paviro commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Independent of the other open PRs. Merge before #21, or rebase after it and keep both cases in src/dev/mockBackend.ts.

The installer statically links libusb and, on Windows, the WebView2 loader, and ships Rust crates and npm packages whose licences require their texts to ship with the binary.

  • About screen: a link under the main choices opens the installer version with collapsible sections for the GPL (COPYING) and src-tauri/THIRD-PARTY-LICENSES, both compiled in.
  • scripts/third_party.py generates THIRD-PARTY-LICENSES from cargo-about, the production npm tree, libusb's COPYING and the WebView2 SDK licence. reprise-bundle and reprise-device are left out.
  • src-tauri/deny.toml lists the allowed licences; scripts/third-party/about.toml repeats it and the script fails when they differ.
  • A Licences workflow fails on a disallowed licence or a stale THIRD-PARTY-LICENSES.

After changing dependencies, run python3 scripts/third_party.py (needs cargo-about 0.8.4 and pnpm install).

Tested with pnpm check, cargo deny ... check licenses, third_party.py --check and in the dev panel.

Screenshots (full licence text in a real build)

01-about-link 02-about-screen

Cargo.lock lists about 560 crates across the platforms, the app
statically links libusb through rusb and, on Windows, Microsoft's
WebView2 loader, and it bundles the production npm packages. Their MIT,
BSD, Apache and LGPL terms require the licence texts to travel with the
binary, and GPLv3 requires the licence itself.

A new About screen, linked from the main screen, shows the version,
COPYING and src-tauri/THIRD-PARTY-LICENSES. scripts/third_party.py
writes that file from cargo-about, the production npm tree, libusb's
own COPYING and the WebView2 SDK licence. The reprise-bundle and
reprise-device crates come from the RepriseOS repository and are left
out.

The Licences workflow runs on pushes to main and on pull requests. It
fails when the file is stale or when a crate's or npm package's licence
is not on the allow list in src-tauri/deny.toml, which
scripts/third-party/about.toml repeats for cargo-about.

This branch has not been deployed

No deployments
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.

1 participant