gwen: Ship pdfium license notices in bundles

This commit is contained in:
yenru0 committed 2026-09-23 23:14:41 +09:00
1 parent 25703f24dd
commit c8b11be511
3 files changed
+10 -2

No files matched your search

+5 -1
View File
@@ -189,8 +189,12 @@ if ! echo "${pdfium_sha256} ${pdfium_tgz}" | sha256sum --check --status 2>/dev/
echo "${pdfium_sha256} ${pdfium_tgz}" | sha256sum --check -
fi
pdfium_tmp=$(mktemp -d)
tar -xzf "${pdfium_tgz}" -C "${pdfium_tmp}" "lib/libpdfium.so"
tar -xzf "${pdfium_tgz}" -C "${pdfium_tmp}" "lib/libpdfium.so" "LICENSE" "licenses"
cp "${pdfium_tmp}/lib/libpdfium.so" "${zed_dir}/lib/libpdfium.so"
# BSD-3 of the toolset and its bundled third parties requires retaining the
# license notices on redistribution.
mkdir -p "${zed_dir}/share/licenses/pdfium"
cp "${pdfium_tmp}/LICENSE" "${pdfium_tmp}/licenses/"* "${zed_dir}/share/licenses/pdfium/"
rm -rf "${pdfium_tmp}"
# Icons