Credit the GL renderer's and the page's upstreams, and ship their notices in THIRD-PARTY.md: in the npm package, the release assets and the page's /licenses.md

This commit is contained in:
Pooya Parsa
2026-11-23 11:06:46 +00:00
parent 7c5e67d479
commit fda0adc839
6 changed files with 223 additions and 10 deletions

View File

@@ -396,7 +396,8 @@ jobs:
# The release's assets: the npm tarball (the base bundle and no distro
# image: the SDK downloads those by the tag), unkernel.wasm, distros.json,
# the images it names (not the .ext4, .tar or .id files next to them) and
# the GL renderer for the page (virgl.mjs, virgl.wasm).
# the GL renderer for the page (virgl.mjs, virgl.wasm), and the
# third-party notices those carry (THIRD-PARTY.md).
- name: Pack
run: |
mkdir -p out
@@ -412,7 +413,7 @@ jobs:
echo "::error::the npm package is $size bytes (more than 20 MB)"
exit 1
fi
cp vendor/build/bundle/unkernel.wasm vendor/build/distro/distros.json vendor/build/gl-wasm/virgl.mjs vendor/build/gl-wasm/virgl.wasm out/
cp vendor/build/bundle/unkernel.wasm vendor/build/distro/distros.json vendor/build/gl-wasm/virgl.mjs vendor/build/gl-wasm/virgl.wasm THIRD-PARTY.md out/
for f in $(node -p 'JSON.parse(require("node:fs").readFileSync("vendor/build/distro/distros.json", "utf8")).distros.map((d) => d.file).join(" ")'); do
cp "vendor/build/distro/$f" out/
done