build(packaging): the Linux packages carry the third-party notices as a file
The .deb, the .rpm and the Arch tarball install THIRD-PARTY-NOTICES.txt under /usr/share/doc/wanderbooks/, where a distribution's reader looks for it; the program prints the same text (`wanderbooks licenses`), and the package test compares the two after the upgrade. The AppImage, the .dmg and the Windows program carry the text compiled in. Not checked by a package build: the first `just package-linux` and `test-linux-packages.sh` run does that. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
7568bca7b0
commit
3bbef05cb7
5 files changed
+14
-2
No files matched your search
@@ -36,7 +36,8 @@ sed "s/^version = \".*\"/version = \"$version\"/
|
||||
s#^out-dir = .*#out-dir = \"$PWD/$out\"#
|
||||
s#\"target/release\"#\"$PWD/$stage\"#
|
||||
s#\"deploy/packaging/#\"$PWD/deploy/packaging/#
|
||||
s#\"LICENSE-MIT\"#\"$PWD/LICENSE-MIT\"#" \
|
||||
s#\"LICENSE-MIT\"#\"$PWD/LICENSE-MIT\"#
|
||||
s#^\"THIRD-PARTY-NOTICES.txt\"#\"$PWD/THIRD-PARTY-NOTICES.txt\"#" \
|
||||
deploy/packaging/packager.toml >"$config"
|
||||
# The AppImage tools are themselves AppImages; run them without FUSE.
|
||||
export APPIMAGE_EXTRACT_AND_RUN=1
|
||||
@@ -45,6 +46,7 @@ assets='assets = [
|
||||
{ source = "'$PWD/$stage'/wanderbooks", dest = "/usr/bin/wanderbooks", mode = "0755" },
|
||||
{ source = "deploy/packaging/install-method-rpm", dest = "/usr/share/wanderbooks/install-method", mode = "0644" },
|
||||
{ source = "deploy/packaging/wanderbooks-static.desktop", dest = "/usr/share/applications/wanderbooks.desktop", mode = "0644" },
|
||||
{ source = "THIRD-PARTY-NOTICES.txt", dest = "/usr/share/doc/wanderbooks/THIRD-PARTY-NOTICES.txt", mode = "0644" },
|
||||
]'
|
||||
cargo generate-rpm -p crates/ledger-cli --set-metadata "version=\"$version\"" --set-metadata "$assets" -o "$out/"
|
||||
rm -rf "$stage"
|
||||
|
||||
Reference in new issue
Block a user