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
+3
-2
@@ -18,7 +18,7 @@ déboguer ou brancher un plugin.
|
||||
| [interface.md](interface.md) | Les écrans, la navigation, les raccourcis clavier, le thème (tokens du site FWS) |
|
||||
| [operations.md](operations.md) | Le déroulé d'une opération : sudo, verrou pacman, progression, providers multiples |
|
||||
| [plugins.md](plugins.md) | Fournisseurs et extensions : contrats, ABI C, emplacements, écriture d'un plugin |
|
||||
| [magasin-de-plugins.md](magasin-de-plugins.md) | Le magasin : format du catalogue JSON, installation, sécurité, publication |
|
||||
| [paquets-de-plugin.md](paquets-de-plugin.md) | Les paquets `.fwspacm` : format du manifeste, dépôt d'un fichier, sécurité, création |
|
||||
| [mise-a-jour.md](mise-a-jour.md) | L'auto-mise à jour : version, méthodes, redémarrage |
|
||||
| [tests.md](tests.md) | Les cibles de test et ce qu'elles couvrent, comment en ajouter |
|
||||
| [depannage.md](depannage.md) | Problèmes courants et comment les diagnostiquer |
|
||||
@@ -31,9 +31,10 @@ déboguer ou brancher un plugin.
|
||||
| `include/main-window.h`, `src/main-window.cpp` | **Le cadre** : barre latérale, en-tête, barre de statut, menus, tray, dialogues, feuille de style. |
|
||||
| `pages/` | **Les écrans**, un fichier par écran, plus `page.h` (contrat) et `ui-kit.*` (widgets partagés). |
|
||||
| `include/progress-tracker.h` | La progression d'une opération, lue dans la sortie des outils. |
|
||||
| `include/plugin-shop.h`, `src/plugin-shop.cpp` | Le magasin de plugins et son catalogue. |
|
||||
| `include/plugin-package.h`, `src/plugin-package.cpp` | L'installation d'un paquet de plugin `.fwspacm` (avec `zip-archive.*` pour lire l'archive). |
|
||||
| `include/workers.h`, `src/workers.cpp` | Les threads de travail (recherche, listes, actions). |
|
||||
| `plugins/` | Les plugins livrés : `flatpak-provider`, `aur-provider`, et les deux exemples. |
|
||||
| `make-plugin-package.py` | Le script qui transforme une bibliothèque compilée en paquet `.fwspacm`. |
|
||||
|
||||
## Conventions du projet
|
||||
|
||||
|
||||
Reference in new issue
Block a user