Repository navigation
PubCraft 1.0.0-alpha.6
Pre-releasePubCraft 1.0.0-alpha.6 — stability update: section-type TOC policy, safe PDF publication
Status: pre-release (alpha). This is alpha software, not a stable or GA release. The previous published version remains available as a fallback: alpha.5.
Alpha.6 is a reinforced-stability release: one consistent section-type policy across the printed TOC and the EPUB nav/NCX, full CLI/GUI/book.yaml parity for the table-of-contents boolean options, a PDF page-number cache keyed on the rendering environment, a publication guard that protects the previously published PDF, fully static Linux executables, and hardened release packaging.
What's changed
- Section-type/TOC policy: a single policy table (
TOC_POLICYinsrc/pubcraft.c, mirrored insrc/pubcraftgui/booktypes.go) drives the printed TOC,nav.xhtmlandtoc.ncxconsistently. Dedication, epigraph and copyright/colophon are front matter excluded from the printed index but kept in the ebook navigation; subheadings are opt-in (toc.subheads, default false). Unknown types produce a warning and are paginated as normal chapters;book.yamlis never rewritten. - CLI/GUI/
book.yamlparity: thetoc:boolean options (subheads,pagenumbers) load and validate identically in the CLI, the GUI andbook.yaml, locked by parity tests and YAML fixtures. - PDF index-page cache keyed on the environment: changing renderer or page setup invalidates the cache instead of reusing stale page numbers in the TOC.
- Publication guard: if a candidate print PDF fails validation, the previously published PDF stays untouched and the build fails with an explicit message.
- Preview warnings: the publication preview flags Markdown/
book.yamlsources changed since the last render. - Linux static-ELF portability fix: the Linux CLI and GUI are now fully static, self-contained ELF binaries (no
PT_INTERP, noDT_NEEDED, no musl loader needed). A fail-closed pre-publication guard (tests/check_linux_static_elf.py) verifies this with realreadelfon the freshly built binaries and on the unpacked portable archive. - Test hygiene and tooling: browser suite consolidated into 19 runners with a shared cleanup helper; appimagetool pinned to 1.9.1 in the Linux workflow.
Validation performed (source commit a42650d, exact release source)
- Release workflow run 45563225090, all 5 required jobs green on this exact revision: Linux x64 native build/tests/packages (Ubuntu 22.04), Windows x64 native build/smoke tests/packages, one Universal 2 macOS artifact set, and two dependent native macOS jobs (Intel + Apple Silicon) verifying the same package bytes, both CPU slices, signatures and source revision, with native GUI/CLI/PDF smoke checks. Artifacts from previous runs were excluded; only this run's artifacts were packaged.
- Fully static Linux ELF guard: 6/6 executables verified across tar.gz, DEB and AppImage (real
readelf). - 15 Python release-guard unit tests passed; smoke tests of the tar.gz, DEB and AppImage packages (native CLI EPUB build + GUI startup) using a real Info-ZIP 3.0 binary.
mainCI passed on the same revision (run 45564791877).- Go build provenance on the shipped GUI binaries:
vcs.revision = a42650d,vcs.modified = false(Linux, Windows and both macOS Universal slices). - The 19-runner browser suite was exercised as preflight on this alpha.6 cycle; SHA-256 checksums for all assets accompany the release.
- macOS: minimum macOS 13.0 on both x86_64 and arm64 slices (Universal 2, no Rosetta requirement).
Details: release validation record.
Honest status / limits
- This is alpha software: not a general-availability ("stable") release. Keep backups and work on copies; review every import/export.
- The macOS app is ad-hoc signed: it is not Developer ID signed and not notarized by Apple, and Gatekeeper may show a false "damaged" warning on first launch (see the README for the
xattrworkaround). The PKG and the Windows installer are unsigned. - EPUBCheck sample checks do not equal full EPUB compliance and do not certify Amazon KDP, IngramSpark or other distributors.
- Linux packages are tested on a real Ubuntu 22.04 host; no RPM package is provided.
Italiano
PubCraft 1.0.0-alpha.6 — aggiornamento di stabilità: politica dei tipi di sezione negli indici, pubblicazione PDF sicura
Stato: pre-release (alfa). È software alfa, non una release stabile o GA. La versione pubblicata precedente resta disponibile come ripiego: alfa 5.
L'alfa 6 punta a una stabilità rafforzata: un'unica politica coerente per i tipi di sezione nell'indice di stampa e nella navigazione EPUB (nav/NCX), piena parità dei booleani dell'indice fra CLI, GUI e book.yaml, una cache dei numeri di pagina PDF legata all'ambiente di rendering, una guardia di pubblicazione che protegge il PDF già pubblicato, eseguibili Linux completamente statici e confezionamento di release rafforzato.
Cosa cambia
- Politica tipi di sezione/indice: una sola tabella di politica (
TOC_POLICYinsrc/pubcraft.c, rispecchiata insrc/pubcraftgui/booktypes.go) governa in modo coerente l'indice di stampa,nav.xhtmletoc.ncx. Dedication, epigraph e copyright/colophon sono frontmatter esclusi dall'indice di stampa ma presenti nella navigazione EPUB; i sottocapi sono opt-in (toc.subheads, predefinito falso). I tipi sconosciuti producono un avviso e sono impaginati come capitoli normali;book.yamlnon viene mai riscritto. - Parità CLI/GUI/YAML: le opzioni booleane dell'indice (
subheads,pagenumbers) sono caricate e validate allo stesso modo da CLI, GUI ebook.yaml, con test di parità e fixture dedicate. - Cache delle pagine dell'indice PDF legata all'ambiente: cambiare renderer o formato invalida la cache invece di riusare numeri di pagina obsoleti.
- Guardia di pubblicazione: se il PDF candidato fallisce la validazione, il PDF pubblicato in precedenza resta intatto e la build si interrompe con un messaggio esplicito.
- Avvisi di anteprima: l'anteprima segnala i sorgenti modificati dall'ultimo render.
- Correzione di portabilità ELF statico Linux: CLI e GUI Linux sono ora ELF completamente statici e autonomi (nessun
PT_INTERP, nessunDT_NEEDED, nessun loader musl). Una guardia fail-closed pre-pubblicazione (tests/check_linux_static_elf.py) lo verifica conreadelfreale sui binari appena costruiti e sull'archivio portabile estratto. - Igiene dei test e tooling: suite browser consolidata in 19 runner con helper di pulizia condiviso; appimagetool fissato alla 1.9.1 nel workflow Linux.
Validazione eseguita (commit sorgente a42650d, sorgente esatto della release)
- Run del workflow di release 45563225090, tutti e 5 i job richiesti verdi su questa revisione esatta: build/test/pacchetti nativi Linux x64 (Ubuntu 22.04), build/smoke test/pacchetti nativi Windows x64, un unico set di artefatti macOS Universal 2, e due job macOS nativi dipendenti (Intel + Apple Silicon) che verificano gli stessi byte dei pacchetti, entrambe le architetture, le firme e la revisione sorgente, con smoke test nativi GUI/CLI/PDF. Gli artefatti di run precedenti sono stati esclusi; solo gli artefatti di questo run sono stati confezionati.
- Guardia ELF statico Linux: 6/6 eseguibili verificati su tar.gz, DEB e AppImage (
readelfreale). - 15 test unitari Python delle guardie di release superati; smoke test dei pacchetti tar.gz, DEB e AppImage (build EPUB nativa della CLI + avvio GUI) con un binario Info-ZIP 3.0 reale.
- CI su
mainsuperata sulla stessa revisione (run 45564791877). - Provenienza Go delle GUI distribuite:
vcs.revision = a42650d,vcs.modified = false(Linux, Windows ed entrambe le slice macOS Universal). - La suite browser in 19 runner è stata eseguita come preflight su questo ciclo alfa 6; i checksum SHA-256 di tutti gli asset accompagnano la release.
- macOS: minimo macOS 13.0 su entrambe le slice x86_64 e arm64 (Universal 2, nessun requisito Rosetta).
Dettagli: record di validazione della release.
Stato onesto / limiti
- Software alfa: non è una release di disponibilità generale ("stabile"). Conserva backup e lavora su copie; controlla ogni importazione/esportazione.
- L'app macOS ha firma ad-hoc: non è firmata Developer ID e non è notarizzata Apple, e Gatekeeper può mostrare il falso avviso "danneggiata" al primo avvio (vedi il README per il comando
xattr). PKG e installer Windows non sono firmati. - I controlli campione con EPUBCheck non equivalgono alla piena conformità EPUB e non certificano Amazon KDP, IngramSpark o altri distributori.
- I pacchetti Linux sono testati su un host reale Ubuntu 22.04; non è fornito un pacchetto RPM.