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:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user