mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-12-02 20:20:35 -05:00
fix(nightly): keep Linux nightly notices flat and relocate Arch nightly models dir (#8654)
This commit is contained in:
1 parent
b385ac0bb2
commit
1e8fbce219
2 files changed
+14
-4
No files matched your search
@@ -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"
|
||||
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user