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

View File

@@ -74,6 +74,8 @@ describe('release smoke tests', () => {
if (process.platform === 'win32') fs.copyFileSync(process.execPath, runtime);
else fs.symlinkSync(process.execPath, runtime);
write(path.join(resources, 'service.js'), healthServer('process.env.WAGGLE_PORT'));
write(path.join(resources, 'LICENSE'), 'MIT License\n');
write(path.join(resources, 'THIRD_PARTY_NOTICES.md'), '# Third-party notices\n');
write(
path.join(resources, 'node_modules', 'better-sqlite3', 'index.js'),
'module.exports = class { prepare() { return { get: () => ({ 1: 1 }) }; } };\n',