feat(plugins): replace the shop with drag-and-drop .fwspacm packages
The shop was a catalogue served over HTTP that the application fetched and listed, which put a network round trip between a user and a plugin that was almost always one file they already had. It also had to keep its catalogue URLs in step with every release, since an entry that pointed at a missing asset was indistinguishable from one that never worked. A plugin is now distributed as a .fwspacm package: a ZIP archive holding a plugin.json manifest and the shared library, which the user drops anywhere on the window. The file is the distribution, so there is no catalogue to publish, no network, and no catalogue URL setting to explain. The manifest tells the user what they are about to run, and its checksum is verified before anything is written, so a package whose library is not the one it declares never reaches the plugin directory. Qt exposes no public ZIP API, so the archive is read directly (central directory plus zlib for the deflated entries) rather than through a private header that could move between toolchains. The reader stays in the logic layer: app-core-test still links no QtWidgets, and a unit test builds its own archives to check both compression methods and every refusal path.
This commit is contained in:
29 files changed
+2105
-1046
No files matched your search
+5
-5
@@ -8,7 +8,7 @@ logique vit dans `AppCore`, toute l'interface vit dans `pages/`**. La fenêtre Q
|
||||
|
||||
| Couche | Fichiers | Ce qu'elle a le droit de faire |
|
||||
| --- | --- | --- |
|
||||
| **Logique** | `include/app-core.h`, `src/app-core.cpp`, `workers.*`, `pacman-manager.*`, `plugin-manager.*`, `plugin-shop.*`, `history-manager.*`, `update-manager.*` | Lancer des commandes, lire des fichiers, tenir un état, émettre des signaux. **Aucun widget, aucun dialogue, aucune chaîne d'interface.** |
|
||||
| **Logique** | `include/app-core.h`, `src/app-core.cpp`, `workers.*`, `pacman-manager.*`, `plugin-manager.*`, `plugin-package.*`, `zip-archive.*`, `history-manager.*`, `update-manager.*` | Lancer des commandes, lire des fichiers, tenir un état, émettre des signaux. **Aucun widget, aucun dialogue, aucune chaîne d'interface.** |
|
||||
| **Cadre** | `include/main-window.h`, `src/main-window.cpp` | Barre latérale, en-tête, barre de statut, menus, tray, dialogues (mot de passe, verrou pacman, export), feuille de style. Aucune règle métier. |
|
||||
| **Écrans** | `pages/*` | Construire la mise en page, afficher ce que le core renvoie, demander une opération au core. |
|
||||
|
||||
@@ -31,7 +31,8 @@ Deux conséquences directement vérifiables :
|
||||
│ ├── plugin.h # contrat générique d'un plugin (IPlugin)
|
||||
│ ├── provider-plugin.h # contrat C ABI des plugins externes
|
||||
│ ├── plugin-manager.h # registre + chargement des bibliothèques
|
||||
│ ├── plugin-shop.h # magasin : catalogue, installation
|
||||
│ ├── plugin-package.h # installation d'un paquet .fwspacm
|
||||
│ ├── zip-archive.h # lecteur ZIP minimal (zlib)
|
||||
│ ├── progress-tracker.h # progression lue dans la sortie des outils
|
||||
│ ├── history-manager.h # historique (CSV)
|
||||
│ ├── update-manager.h # auto-mise à jour
|
||||
@@ -46,9 +47,8 @@ Deux conséquences directement vérifiables :
|
||||
│ ├── cleanup-page.* # Nettoyage
|
||||
│ ├── history-page.* # Historique
|
||||
│ ├── logs-page.* # Logs pacman
|
||||
│ └── plugins-page.* # Plugins + magasin
|
||||
│ └── plugins-page.* # Plugins + paquets .fwspacm
|
||||
├── plugins/ # plugins livrés (voir plugins.md)
|
||||
│ ├── catalog.json # catalogue du magasin
|
||||
│ ├── flatpak-provider/ # fournisseur Flatpak
|
||||
│ ├── aur-provider/ # fournisseur AUR (yay/paru)
|
||||
│ ├── example-provider/ # modèle de fournisseur
|
||||
@@ -109,7 +109,7 @@ l'interface.
|
||||
| `actionFinished(action, name, ok, error, locked)` | Fin d'une opération, avec la raison d'un échec. |
|
||||
| `busyChanged(busy)` | Une opération commence ou se termine. |
|
||||
| `statusMessage(message)` | Texte pour la barre de statut. |
|
||||
| `historyChanged`, `pluginsChanged`, `pluginCatalogChanged` | Un état partagé a changé. |
|
||||
| `historyChanged`, `pluginsChanged`, `pluginPackageInstalled`, `pluginPackageRemoved` | Un état partagé a changé. |
|
||||
| `updateCheckFinished`, `selfUpdateFinished` | Auto-mise à jour. |
|
||||
|
||||
## Les threads
|
||||
|
||||
Reference in new issue
Block a user