Merge licensing: shipped notices, Apache-2.0 core files and LGPL terms
Every installer and the server archive carry LICENSE and the third-party notices, and Settings > General links to both. The files copied from hive-mind-core keep Apache-2.0 with SPDX headers. The LGPL components name their versions and where their source is. ADR-0010 settles the marketplace catalog question. Logs UF-069 and marks UF-059 Fixed.
This commit is contained in:
@@ -169,6 +169,8 @@ describe.skipIf(!target)('install, update and uninstall from a packed archive',
|
||||
fs.writeFileSync(path.join(resources, process.platform === 'win32' ? 'node.exe' : 'node'), 'not a real runtime');
|
||||
fs.writeFileSync(path.join(resources, 'service.js'), 'console.log("service");\n');
|
||||
fs.writeFileSync(path.join(resources, 'service.js.map'), '{}');
|
||||
fs.writeFileSync(path.join(resources, 'LICENSE'), 'MIT License\n');
|
||||
fs.writeFileSync(path.join(resources, 'THIRD_PARTY_NOTICES.md'), '# Third-party notices\n');
|
||||
fs.writeFileSync(path.join(web, 'index.html'), '<!doctype html>');
|
||||
const out = path.join(work, 'out');
|
||||
const result = spawnSync(
|
||||
@@ -204,6 +206,9 @@ describe.skipIf(!target)('install, update and uninstall from a packed archive',
|
||||
expect(fs.readFileSync(path.join(layout.appDir, 'service.js'), 'utf8')).toContain('service');
|
||||
expect(fs.existsSync(path.join(layout.appDir, 'web', 'index.html'))).toBe(true);
|
||||
expect(fs.existsSync(path.join(layout.appDir, 'service.js.map'))).toBe(false);
|
||||
// UF-059: the license and the notices are installed next to service.js.
|
||||
expect(fs.readFileSync(path.join(layout.appDir, 'THIRD_PARTY_NOTICES.md'), 'utf8')).toContain('Third-party notices');
|
||||
expect(fs.existsSync(path.join(layout.appDir, 'LICENSE'))).toBe(true);
|
||||
expect(fs.readFileSync(layout.launcherFile, 'utf8')).toBe('// bundled tool\n');
|
||||
const record = readRecord(layout);
|
||||
expect(record).toMatchObject({ version: VERSION, target, source: archive });
|
||||
|
||||
Reference in New Issue
Block a user