From 1e8fbce2197d293e5111047123daf9095d735a7d Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 29 Nov 2026 02:05:41 -0500 Subject: [PATCH] fix(nightly): keep Linux nightly notices flat and relocate Arch nightly models dir (#8654) --- packaging/linux/nightly-arch-tar.sh | 5 +++++ packaging/nightly-common.sh | 13 +++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/packaging/linux/nightly-arch-tar.sh b/packaging/linux/nightly-arch-tar.sh index e9a2f5d53e..40d4169e78 100755 --- a/packaging/linux/nightly-arch-tar.sh +++ b/packaging/linux/nightly-arch-tar.sh @@ -15,5 +15,10 @@ mkdir "$stage/bin/.pdfcraft-nightly" mv "$stage/bin/pdfcraft" "$stage/bin/.pdfcraft-nightly/pdfcraft" cp "$here/nightly-arch-launch.sh" "$stage/bin/pdfcraft" chmod 755 "$stage/bin/pdfcraft" +# Keep OCR models under share/pdfcraft-nightly so the Arch nightly package can install +# side-by-side with stable ai.storyteller.pdfcraft without file conflicts on /usr/share/pdfcraft. +if [[ -d "$stage/share/pdfcraft" ]]; then + mv "$stage/share/pdfcraft" "$stage/share/pdfcraft-nightly" +fi tar -C "$work" -czf "$destination/$basename.tar.gz" "$basename" echo "wrote $destination/$basename.tar.gz" diff --git a/packaging/nightly-common.sh b/packaging/nightly-common.sh index e8f6128f4b..086b3aef74 100644 --- a/packaging/nightly-common.sh +++ b/packaging/nightly-common.sh @@ -74,11 +74,16 @@ nightly_refuse_signing_env() { } nightly_copy_notices() { - local destination="$1" required - for required in README.md LICENSE-MIT LICENSE-APACHE NOTICE ATTRIBUTION.md; do - [[ -f "$ROOT/$required" && ! -L "$ROOT/$required" ]] || nightly_die "missing regular app notice: $required" + local destination="$1" f + for f in README.md LICENSE-MIT LICENSE-APACHE NOTICE ATTRIBUTION.md; do + [[ -f "$ROOT/$f" && ! -L "$ROOT/$f" ]] || nightly_die "missing regular app notice: $f" done - copy_docs "$destination" + # Copy flat top-level notices and font OFL texts only (never subdirectories like licenses/), + # matching packaging/windows/nightly.ps1 and the flat Linux archive policy in nightly-archive.py. + for f in README.md LICENSE LICENSE-MIT LICENSE-APACHE COPYRIGHT NOTICE ATTRIBUTION.md; do + if [[ -f "$ROOT/$f" ]]; then cp "$ROOT/$f" "$destination/"; fi + done + copy_font_licences "$destination" } nightly_publish_archive() {