Bundle Wllama license from its pinned release
Build and publish static assets / publish (push) Successful in 8m29s
Build and publish static assets / publish (push) Successful in 8m29s
This commit is contained in:
@@ -19,3 +19,4 @@ Legal text snapshots checked against Google's official pages on 2026-10-19:
|
|||||||
The bundled HTML contains the full article text in a minimal, script-free wrapper.
|
The bundled HTML contains the full article text in a minimal, script-free wrapper.
|
||||||
The manifest fingerprints the exact bundled copies; a changed copy requires new
|
The manifest fingerprints the exact bundled copies; a changed copy requires new
|
||||||
user acceptance before this browser downloads or uses Gemma.
|
user acceptance before this browser downloads or uses Gemma.
|
||||||
|
Wllama license copy: https://github.com/ngxson/wllama/blob/3.8.1/LICENCE
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2024 Xuan Son NGUYEN
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
@@ -70,15 +70,7 @@ await unlink(tgzPath);
|
|||||||
for (const relative of ['esm/index.js', 'esm/wasm/wllama.wasm']) {
|
for (const relative of ['esm/index.js', 'esm/wasm/wllama.wasm']) {
|
||||||
if (!(await stat(join(wllamaRoot, relative))).isFile()) throw new Error(`Missing Wllama runtime asset: ${relative}`);
|
if (!(await stat(join(wllamaRoot, relative))).isFile()) throw new Error(`Missing Wllama runtime asset: ${relative}`);
|
||||||
}
|
}
|
||||||
const wllamaLicenseCandidates = ['LICENSE', 'LICENSE.md', 'LICENSE.txt'];
|
for (const file of ['GEMMA_USER_TERMS.html', 'GEMMA_TERMS.html', 'GEMMA_PROHIBITED_USE_POLICY.html', 'GEMMA_NOTICE.txt', 'GEMMA_SOURCE.txt', 'WLLAMA_LICENSE.txt', 'LLAMA_CPP_LICENSE.txt']) {
|
||||||
let wllamaLicense;
|
|
||||||
for (const candidate of wllamaLicenseCandidates) {
|
|
||||||
const candidatePath = join(wllamaRoot, candidate);
|
|
||||||
if ((await stat(candidatePath).catch(() => null))?.isFile()) { wllamaLicense = candidatePath; break; }
|
|
||||||
}
|
|
||||||
if (!wllamaLicense) throw new Error('Wllama package is missing its license file');
|
|
||||||
await cp(wllamaLicense, join(licenseRoot, 'WLLAMA_LICENSE.txt'));
|
|
||||||
for (const file of ['GEMMA_USER_TERMS.html', 'GEMMA_TERMS.html', 'GEMMA_PROHIBITED_USE_POLICY.html', 'GEMMA_NOTICE.txt', 'GEMMA_SOURCE.txt', 'LLAMA_CPP_LICENSE.txt']) {
|
|
||||||
const source = join(root, 'licenses', file);
|
const source = join(root, 'licenses', file);
|
||||||
if (!(await stat(source).catch(() => null))?.isFile()) throw new Error(`Missing Gemma legal asset: ${file}`);
|
if (!(await stat(source).catch(() => null))?.isFile()) throw new Error(`Missing Gemma legal asset: ${file}`);
|
||||||
await cp(source, join(licenseRoot, file));
|
await cp(source, join(licenseRoot, file));
|
||||||
|
|||||||
Reference in New Issue
Block a user