43 Commits
Author SHA1 Message Date
Agel 9f82561098 ci: allow manual workflow_dispatch runs on master to publish releases
Asteria Qt CI / rebuild-images (linux-arm64) (push) Skipped
Asteria Qt CI / rebuild-images (linux-x86_64) (push) Skipped
Asteria Qt CI / rebuild-images (windows-arm64) (push) Skipped
Asteria Qt CI / rebuild-images (windows-x86_64) (push) Skipped
Asteria Qt CI / build-macos (push) Successful in 10s
Asteria Qt CI / test-macos (push) Successful in 39s
Asteria Qt CI / build-linux (push) Successful in 1m13s
Asteria Qt CI / build-windows (push) Successful in 1m28s
Asteria Qt CI / build-windows-arm64 (push) Successful in 1m28s
Asteria Qt CI / build-linux-arm64 (push) Successful in 1m33s
Asteria Qt CI / package-windows-arm64 (push) Successful in 18s
Asteria Qt CI / package-macos (push) Successful in 57s
Asteria Qt CI / package-windows (push) Successful in 22s
Asteria Qt CI / test-linux (push) Successful in 3m20s
Asteria Qt CI / package-linux-arm64 (push) Successful in 18s
Asteria Qt CI / package-linux (push) Successful in 18s
Asteria Qt CI / release (push) Successful in 8s
Previously, the release job and the macOS DMG release-attachment step
gated on `github.event_name == 'push'`, which caused manual Gitea UI
runs (`workflow_dispatch`) on `master` to skip creating the release,
uploading assets, and bumping `VERSION` after all builds succeeded.

Update the condition in `.gitea/workflows/ci.yml` (and document it in
`AGENTS.md`) so `master` runs triggered by either `push` or
`workflow_dispatch` (when `rebuild_images` is false) execute the
release flow while preserving `success()` gating on upstream packaging
jobs and keeping PRs, feature branches, and image-rebuild runs
isolated.
2026-11-23 19:50:24 +01:00
Agel b05a2fecf8 swtich to gitea
Asteria Qt CI / rebuild-images (linux-x86_64) (push) Skipped
Asteria Qt CI / rebuild-images (windows-arm64) (push) Skipped
Asteria Qt CI / rebuild-images (windows-x86_64) (push) Skipped
Asteria Qt CI / build-linux (push) Canceled after 0s
Asteria Qt CI / build-linux-arm64 (push) Canceled after 0s
Asteria Qt CI / build-windows (push) Canceled after 0s
Asteria Qt CI / build-windows-arm64 (push) Canceled after 0s
Asteria Qt CI / build-macos (push) Canceled after 0s
Asteria Qt CI / test-linux (push) Canceled after 0s
Asteria Qt CI / test-macos (push) Canceled after 0s
Asteria Qt CI / package-linux (push) Canceled after 0s
Asteria Qt CI / package-linux-arm64 (push) Canceled after 0s
Asteria Qt CI / rebuild-images (linux-arm64) (push) Skipped
Asteria Qt CI / package-windows (push) Canceled after 0s
Asteria Qt CI / package-windows-arm64 (push) Canceled after 0s
Asteria Qt CI / package-macos (push) Canceled after 0s
Asteria Qt CI / release (push) Canceled after 0s
2026-11-22 17:28:07 +01:00
Agel 832e24c6f7 fix(linux): preserve AppImage executable bit via .tar.gz and auto-integrate Ubuntu icons
Browsers strip POSIX executable permissions (+x) from raw .AppImage files
downloaded directly over HTTP, leaving the downloaded binary non-executable in
Ubuntu Files (Nautilus). Additionally, Ubuntu displays a generic cog icon for
standalone AppImages in both Nautilus and the Ubuntu Dock on Wayland unless
desktop metadata, high-DPI icons, and GVfs custom icon attributes are
registered.

- Wrap `Asteria-<arch>.AppImage` (`0755`) in a `.AppImage.tar.gz` archive in
  `package-linux.sh` and point CI wiki links to the archive so extracting the
  download preserves executable permissions out of the box.
- Copy `.DirIcon` as a regular PNG file rather than a symlink so SquashFS icon
  extractors that do not follow symlinks receive valid image bytes.
- Add non-blocking first-launch integration in `AppRun` to install `hicolor`
  icons and `asteria-qt.desktop` (`StartupWMClass=asteria-qt`) under
  `XDG_DATA_HOME` and apply `metadata::custom-icon` on `$APPIMAGE` via `gio`
  for Nautilus.
- Embed 128x128, 256x256, and 512x512 icons in Qt resources and register them
  with `QApplication::setWindowIcon()`.
2026-11-19 14:49:54 +01:00
Agel 2636b7cf51 Add Update sidebar menu item and macOS standard About menu
Add an "Update" entry to the sidebar to give users quick access to the
application version without interrupting their reading session. Clicking
it opens a themed modal popup (loaded conditionally via Loader) that
displays AppInfo.version and keeps any currently open book loaded,
providing a natural foundation for future update-checking functionality.

On macOS, also install a parentless QMenuBar with a QAction::AboutRole
item so Qt's Cocoa integration places "About Asteria" in the standard
macOS Application menu without adding a QML in-window menu bar. The
action invokes NSApp's standard About panel, leveraging the bundle name,
icon, and version already configured in Info.plist.
2026-11-19 14:30:41 +01:00
Agel b9dc1fe515 fix? 2026-11-19 13:54:40 +01:00
Agel 4b3a959654 actual version bump support 2026-11-19 12:25:43 +01:00
Agel 6445c23fae Merge branch 'close_book_navigation' 2026-11-19 11:54:13 +01:00
Agel 0e6bfdc5ec version support 2026-11-18 22:16:15 +01:00
Agel fb65fadad6 hopefully finally fixed 2026-11-13 14:07:56 +01:00
Agel 1c83b4cb6b moaaar ci changes 2026-11-13 11:41:27 +01:00
Agel 1ef94b910a moar ci changes 2026-11-13 10:56:08 +01:00
Agel 5d96fbb0bb Remove Book and Close Book menu items and auto-close on navigation
Simplify sidebar navigation by removing the conditional Book and Close Book
items so users no longer need to manage a book left open in the background.

Because there is no longer a Book item to return to the reader, navigating
away from the reader to History or Custom Theme now flushes any pending
scroll position and closes the active or in-flight book. Opening the Settings
popup still keeps the book open behind the overlay, and clicking Files keeps
the current book open until a file is actually selected so cancelling the
file dialog preserves the current reading session.

This also fixes book-lifecycle edge cases exposed by closing on navigation:
- Cancel in-flight async loads in Book::close() and clear loading state so
  closing mid-load does not jump back to the reader or stall the spinner.
- Emit willCloseBook before resetting the reader so AppCoordinator snapshots
  final progress into HistoryModel and immediately clears UiState.lastFilePath.
- Mark Book as loading before clearing the outgoing reader when opening a new
  file to prevent HistoryPage from flashing between books, and fall back to
  History on load errors.
- Reset ScrollPageView and MangaPageView state when a book closes, and always
  navigate to the reader on restoreReady so CLI-opened files are not hidden
  behind a previously saved History page.
- Add coverage in BookTest and AppCoordinatorTest and document the behavior
  in AGENTS.md.
2026-11-13 09:45:09 +01:00
Agel 5940d86ed2 ci: resolve missing Windows ARM64 runtime DLLs and add pipeline inputs
The Windows ARM64 release package failed to launch on startup due to missing
runtime DLLs (libdbus-1-3.dll, libmd4c.dll, zlib1.dll, libzstd.dll).

This failure stemmed from several architectural and CI pipeline issues:
1. CMake unconditionally linked Qt6::DBus whenever available in the sysroot,
   introducing an unnecessary dependency on Qt6DBus.dll and libdbus-1-3.dll
   on Windows, even though D-Bus portal dialogs are only used on Linux.
2. The Docker build environment installed MSYS2 ARM64 Qt packages via an
   unchecked shell loop against a hardcoded package list. This missed crucial
   transitive runtime dependencies (such as md4c, zlib-ng-compat, libb2, and
   ICU) and failed silently when downloads or extractions broke.
3. Windows packaging lacked PE import verification, allowing broken packages
   with unresolved dynamic links to be produced and published without warning.

To fix these issues and make image management more accessible:
- Restrict Qt6::DBus detection and linking in CMakeLists.txt to Linux only,
  eliminating the D-Bus dependency from Windows builds.
- Introduce scripts/download-mingw-arm64-qt.py to parse the MSYS2 clangarm64
  database, resolve the complete transitive dependency graph, and verify
  essential runtime DLLs during the Docker image build.
- Introduce scripts/verify-windows-dlls.py and integrate it into
  packaging/package-windows.sh to validate PE imports across the executable
  and bundled Qt plugins, failing packaging if any non-system DLL is missing.
- Expose FORCE_REBUILD_IMAGE as a typed GitLab CI pipeline input (spec: inputs)
  to provide an interactive dropdown when triggering manual pipelines in the UI,
  and trigger container rebuilds when the download script changes.
- Update AGENTS.md documentation to reflect the new dependency and packaging
  verification workflows.
2026-11-13 08:37:05 +01:00
Agel ff8ef105dd add macos ci build 2026-11-12 14:02:50 +01:00
Agel 1ad2f5446b fixed paragraph layout to handle forced breaks 2026-11-01 12:01:26 +01:00
Agel 8782a3be8a ci: add Windows on ARM64 cross-compilation and packaging jobs
- Add `build-windows-arm64` and `package-windows-arm64` stages to `.gitlab-ci.yml` and wire download links to wiki updates
- Create `scripts/mingw-w64-arm64-toolchain.cmake` targeting `Windows` / `aarch64` with LLVM-MinGW
- Update `docker/Dockerfile.build` with LLVM-MinGW toolchain, MSYS2 Qt 6.10 ARM64 packages, and ARM64 cross-compiled static libraries (libiconv, uchardet, zlib, minizip, libarchive)
- Isolate GCC x86_64 and LLVM-MinGW ARM64 toolchains in `scripts/mingw-w64-toolchain.cmake` and PATH configuration
- Refactor `packaging/package-windows.sh` to package both x86_64 and ARM64 runtime DLLs and support MSYS2 plugin/QML directory layouts
- Update `scripts/test-ci-windows.sh` with `--arm64`, `--only-arm64`, `--image`, and local image detection
- Guard `-mwindows` link flag with `if(MINGW)` in `CMakeLists.txt`
- Document Windows ARM64 build targets and instructions in `AGENTS.md` and `README.md`
2026-10-31 14:15:36 +01:00
Agel ab4da4696f updated planned format support 2026-10-31 11:34:28 +01:00
Agel fe969bab16 txt support 2026-10-31 00:15:55 +01:00
Agel 85ae0d4ad9 lint refactor 2026-10-30 16:48:58 +01:00
Agel da8abf0332 fix page counter 2026-10-30 15:47:53 +01:00
Agel 511472bc73 fix history sort 2026-10-30 12:39:30 +01:00
Agel c25e8ddb90 some refactor 2026-10-30 12:00:49 +01:00
Agel 870bd1c0be fixed format plan 2026-10-30 09:06:38 +01:00
Agel a9630599b1 agents update 2026-10-30 08:51:51 +01:00
Agel c5439099f6 fb2 support 2026-10-29 17:31:37 +01:00
Agel 18ea76bd89 Merge branch 'fix_epub_author_parsing' into render-rewrite 2026-10-29 15:33:04 +01:00
Agel 35d460e1c7 Merge branch 'distill_text_layout_engine' into render-rewrite 2026-10-29 15:31:51 +01:00
Agel e64bf33f65 test: propagate text layout engine specification test suite
Formalize the Asteria Qt text layout engine behavior and establish
comprehensive test coverage across all 94 Allium specification
obligations for two-phase layout, Knuth-Plass line breaking, and
reading session state management.

- Add `specs/text-layout-engine.allium` detailing layout lifecycle,
  generation monotonicity, viewport metrics, and contrast safety.
- Implement structural equality operators (`operator==`) across layout
  domain value types (`BoxStyle`, `InlineItem`, `BlockItem`,
  `ContentChunk`, `KnuthPlass::Item`, positioned line/run elements,
  and `BookPosition`) to enable deterministic assertion testing.
- Introduce `TextLayoutEngineSpecTest` verifying entity fields, value
  equality, enum comparability, contract signatures, config defaults,
  lifecycle state transitions, rules, and invariants.
- Register `TextLayoutEngineSpecTest` in `CMakeLists.txt` and update
  test inventory in `AGENTS.md`.
2026-10-29 15:21:28 +01:00
Agel bde4e310b5 feat(formats): implement author attribution service and propagate spec tests
Book metadata extraction previously handled author parsing naively by taking only the first raw dc:creator string, ignoring MARC relator roles, multi-creator ordering, deduplication, and structured author fallbacks.

Define the formal author attribution model in specs/book-author-parsing.allium and propagate the specification into a comprehensive test suite (AuthorAttributionTest) covering all 23 obligations across value equality, lifecycle state transitions, contract invariants, and surface exposure.

Implement AuthorAttribution, AuthorAttributionService, and BookMetadataSurface to fulfill:
- Dublin Core precedence over structured author elements
- MARC role code resolution (aut -> Author, edt -> Editor, trl -> Translator, ill -> Illustrator, custom capitalized)
- Grouping creators by resolved role in order of appearance with deduplication
- Fallback formatting for structured author fields (first, middle, last, nickname)
- Complete status lifecycle enforcement (unparsed to parsed)

Register AuthorAttributionTest in CMakeLists.txt and update AGENTS.md documentation.
2026-10-29 15:21:06 +01:00
Agel 3ff861a2a0 test(reading): propagate Allium specification tests for Knuth-Plass rendering pipeline
Formalize the behavioral specification for off-thread Knuth-Plass text
chunk layout and virtualized QML rendering in specs/knuth-plass-rendering.allium,
and introduce a test suite covering all 66 specification obligations across
value types, state machine transitions, invariants, and surface contracts.

To satisfy the specification's precondition and invariant contracts:
- Validate and clamp initial restore chunk bounds when opening documents
  in ReadingModel to ensure anchor chunks remain strictly within bounds.
- Guard scroll position updates against negative and out-of-bounds chunk
  indices to honor the ScrollPositionChanged preconditions.
- Emit positionSaved on publisher color toggles to fulfill the
  PositionPersisted contract without triggering unnecessary relayouts.
- Register KnuthPlassRenderingSpecTest in CMakeLists.txt and document the
  spec and test hierarchy in AGENTS.md.
2026-10-29 15:18:14 +01:00
Agel 306d4cac5c Use default Graphics API for all platforms 2026-10-29 12:28:05 +01:00
Agel d9a0991f9b more performance optimizations + cleanup 2026-10-29 12:12:02 +01:00
Agel b23713bea6 fix ui state save 2026-10-29 11:25:56 +01:00
Agel 6c821c6a3c hopefully true virtual list layout 2026-10-28 23:44:54 +01:00
Agel 905c61da52 visual fix 2026-10-25 22:12:32 +01:00
Agel 00c88a940c windows build fix 2026-10-25 21:41:24 +01:00
Agel 5b0dcc1b07 added vscode run confgi 2026-10-25 20:30:06 +01:00
Agel 06dc29d849 updated docs 2026-10-25 20:12:23 +01:00
Agel d14170a68f reintroduced epub support 2026-10-25 19:59:23 +01:00
Agel 83968646c6 Refactor using Fable 2026-07-31 17:31:02 +02:00
Agel bfc50a67b8 CBR and folder formats 2026-05-23 00:15:35 +02:00
Agel 9167f10b1c Manga (CBZ) Support 2026-05-12 16:37:03 +02:00
Agel 598566c2a4 Rename Library to History 2026-04-11 22:22:14 +02:00