feat(licenses): ship LICENSE and the third-party notices with every installer

build-sidecar.mjs copies LICENSE and THIRD_PARTY_NOTICES.md from the
repository root next to service.js in app/src-tauri/resources, and fails
when either is missing. The resources/* glob of tauri.conf.json bundles
them into every desktop installer, and build-server-archive.mjs refuses a
payload without them, so the server archive carries them too. The copies
are ignored by git. Tests cover the copy, the archive and the ignore rule.
This commit is contained in:
shumeiko.it
2026-11-04 10:24:35 +01:00
parent 0acaa1cf29
commit 9ac6b9f0d4
6 changed files with 112 additions and 2 deletions

3
.gitignore vendored
View File

@@ -66,6 +66,9 @@ app/src-tauri/resources/native/
# Copied from packages/sdk/src by scripts/build-sidecar.mjs
app/src-tauri/resources/capability-packs/
app/src-tauri/resources/starter-skills/
# Copied from the repository root by scripts/build-sidecar.mjs
app/src-tauri/resources/LICENSE
app/src-tauri/resources/THIRD_PARTY_NOTICES.md
# D12: the bundled sidecar is generated by scripts/build-sidecar.mjs on every
# build path (npm tauri:build*, CI, and the tauri.conf.json beforeBuildCommand
# hook). A committed copy goes stale silently — a binary shipping an old server