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:
BlackAngelTV committed 2026-09-28 21:52:50 +02:00
1 parent ed8185d5fe
commit f6c8cedf93
29 files changed
+2105 -1046

No files matched your search

-49
View File
@@ -1,49 +0,0 @@
{
"catalog": 1,
"plugins": [
{
"id": "flatpak",
"name": "Flatpak",
"kind": "provider",
"version": "1.0.0",
"author": "FWS",
"description": "Gestionnaire de paquets Flatpak : recherche, installation, mise à jour, désinstallation et nettoyage des runtimes inutilisés. Les applications installées apparaissent dans le launcher du bureau.",
"file": "libflatpak-provider.so",
"url": "https://gitea.nocode-var.tech/FWS/FWS-PacManage/releases/download/v1.4.1/libflatpak-provider.so",
"sha256": ""
},
{
"id": "aur",
"name": "AUR (yay / paru)",
"kind": "provider",
"version": "1.0.0",
"author": "FWS",
"description": "Fournisseur des paquets de l'AUR, en s'appuyant sur le helper déjà installé (yay ou paru). Un paquet étranger s'installe et se met à jour depuis la même interface que pacman.",
"file": "libaur-provider.so",
"url": "https://gitea.nocode-var.tech/FWS/FWS-PacManage/releases/download/v1.4.1/libaur-provider.so",
"sha256": ""
},
{
"id": "example-provider",
"name": "Exemple de fournisseur",
"kind": "provider",
"version": "0.1.0",
"author": "FWS",
"description": "Modèle de fournisseur externe (voir plugins/example-provider) : à copier pour brancher apt, dnf ou les dépôts d'une autre distribution sans toucher à l'application.",
"file": "libsample-provider.so",
"url": "https://gitea.nocode-var.tech/FWS/FWS-PacManage/releases/download/v1.4.1/libsample-provider.so",
"sha256": ""
},
{
"id": "example-addon",
"name": "Exemple d'extension",
"kind": "addon",
"version": "0.1.0",
"author": "FWS",
"description": "Modèle d'extension C++ (voir plugins/example-addon) : ajoute un badge dans la barre de statut et montre comment attacher ses propres widgets à la fenêtre principale.",
"file": "libsample-addon.so",
"url": "https://gitea.nocode-var.tech/FWS/FWS-PacManage/releases/download/v1.4.1/libsample-addon.so",
"sha256": ""
}
]
}