Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
COPYING) andsrc-tauri/THIRD-PARTY-LICENSES, both compiled in.scripts/third_party.pygeneratesTHIRD-PARTY-LICENSESfrom cargo-about, the production npm tree, libusb'sCOPYINGand the WebView2 SDK licence.reprise-bundleandreprise-deviceare left out.src-tauri/deny.tomllists the allowed licences;scripts/third-party/about.tomlrepeats it and the script fails when they differ.THIRD-PARTY-LICENSES.After changing dependencies, run
python3 scripts/third_party.py(needs cargo-about 0.8.4 andpnpm install).Tested with
pnpm check,cargo deny ... check licenses,third_party.py --checkand in the dev panel.Screenshots (full licence text in a real build)