Merge branch 'release-1.6.0' into main

The release moved every source into its own layer (core/, app/, pages/,
providers/, preferences/, logging/, archive/, update/, translations/) and
replaced the plugin shop with .fwspacm packages. main added the headless update
check run at login. Both sides are kept, the feature moved onto the new layout:

- core/startup-check.{h,cpp} and its test, wired into the CMake targets the
  release renamed (core/startup-check.cpp, startup-check-test);
- app/main.cpp carries the --check-updates branch, ahead of the command line so
  the login unit never opens a window;
- the settings menu keeps the "check at startup" toggle, now through tr(), and
  translations/en.json gains the new strings;
- doc/mise-a-jour.md keeps the release's version and gains the startup-check
  section; the documented test count follows the new target.
This commit is contained in:
BlackAngelTV committed 2026-10-09 17:56:53 +02:00
commit bea3d61045
104 files changed
+9222 -2036

No files matched your search

+11 -7
View File
@@ -53,7 +53,7 @@ download. Once built:
cd build && ctest --output-on-failure
```
There are **9 tests**. Most are unit tests that never touch the system;
There are **13 tests**. Most are unit tests that never touch the system;
`flatpak-integration-test` is the only one that drives the real flatpak CLI (in
an isolated temporary installation), and `app-core-test` checks in particular
that every privileged path goes through the password gate — **without ever
@@ -68,14 +68,18 @@ replaying a request**, so it can never run pacman as root.
| `app-core-test` | the core: providers, password gate, lock, plugins |
| `progress-tracker-test` | reading a tool's output, progress, ANSI |
| `package-utils-test` | the shared package utilities |
| `plugin-shop-test` | the shop's JSON catalogue |
| `plugin-package-test` | the `.fwspacm` package format and its installation |
| `app-settings-test` | the preferences model and the journal |
| `language-manager-test` | the language: resolution, catalogues, coverage |
| `cli-command-test` | the command-line grammar |
| `update-manager-test` | version detection and self-update |
| `startup-check-test` | the update check run at login |
[doc/tests.md](doc/tests.md) details each target and explains how to add one.
## Code conventions
- **Language**: C++20, Qt6. Follow the existing stack and conventions before
- **Language**: C++17, Qt6. Follow the existing stack and conventions before
adding any dependency.
- **Formatting**: `.clang-format` (LLVM, 4 spaces, attached braces, 100
columns). Run `clang-format -i <file>` before committing.
@@ -90,21 +94,21 @@ replaying a request**, so it can never run pacman as root.
The split is structural and not negotiable:
- **All logic lives in `AppCore`** (`include/app-core.h`, `src/app-core.cpp`):
- **All logic lives in `AppCore`** (`core/app-core.h`, `core/app-core.cpp`):
providers, worker threads, history, sudo, the pacman lock, self-update. This
layer depends on Qt Core only and **holds no widget** — which is what lets
`app-core-test` run it without a screen.
- **The interface lives in `pages/`**, one file per screen. `MainWindow`
(`src/main-window.cpp`) is only a frame: sidebar, status bar, dialogs. No
(`app/main-window.cpp`) is only a frame: sidebar, status bar, dialogs. No
business rule.
- **The conversation always goes the same way**: the view calls a core method,
which answers "started", "I need the sudo password" or "the database is
locked"; the view then asks the user for what is needed and replays the
request. Results come back through signals.
Adding a screen = a `Page` class (see `pages/page.h`) and an entry in the
Adding a screen = a `Page` class (see `pages/base/page.h`) and an entry in the
sidebar. Adding a package manager = a plugin implementing `IPackageManager` in
`plugins/` — **without touching the application** (see
`providers/` — **without touching the application** (see
[doc/plugins.md](doc/plugins.md)).
## Workflow