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
@@ -51,6 +51,10 @@ test "$before" = "$after"
|
||||
test "$head_before" = "$(head_of)"
|
||||
if as_tester 'wanderbooks update' >/tmp/update.out 2>&1; then echo "update did not refuse" >&2; exit 1; fi
|
||||
grep -q 'package manager' /tmp/update.out
|
||||
# The new package carries the third-party notices, as a file and in the
|
||||
# program, and the two are the same text.
|
||||
test -s /usr/share/doc/wanderbooks/THIRD-PARTY-NOTICES.txt
|
||||
as_tester 'wanderbooks licenses' | tail -n +3 | cmp -s - /usr/share/doc/wanderbooks/THIRD-PARTY-NOTICES.txt
|
||||
as_tester 'wanderbooks close' >/dev/null 2>&1 || true
|
||||
echo "OK"
|
||||
INNER
|
||||
|
||||
Reference in new issue
Block a user