Files
FWS-PacManage/doc/README.md
T
BlackAngelTV f6c8cedf93 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.
2026-09-28 21:52:50 +02:00

2.9 KiB

Documentation PacManager

Cette documentation est la source du wiki Gitea du projet : chaque fichier est une page autonome, et son nom de fichier est celui de la page wiki (architecture.md → page architecture).

Le README.md à la racine reste la présentation du projet (fonctionnalités, compilation, licence) ; ce dossier décrit comment le logiciel est construit et comment il fonctionne à l'intérieur, pour quelqu'un qui doit le modifier, le déboguer ou brancher un plugin.

Pages

Page Contenu
installation.md Dépendances, compilation, options CMake, installation dans le bureau, fichiers créés sur le système
architecture.md La coupure logique / interface, le flux d'un appel, où ajouter du code
interface.md Les écrans, la navigation, les raccourcis clavier, le thème (tokens du site FWS)
operations.md Le déroulé d'une opération : sudo, verrou pacman, progression, providers multiples
plugins.md Fournisseurs et extensions : contrats, ABI C, emplacements, écriture d'un plugin
paquets-de-plugin.md Les paquets .fwspacm : format du manifeste, dépôt d'un fichier, sécurité, création
mise-a-jour.md L'auto-mise à jour : version, méthodes, redémarrage
tests.md Les cibles de test et ce qu'elles couvrent, comment en ajouter
depannage.md Problèmes courants et comment les diagnostiquer

Les fichiers à connaître

Fichier Rôle
include/app-core.h, src/app-core.cpp La logique : providers, workers, historique, plugins, sudo, verrou pacman, auto-update. Aucun widget.
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-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

Elles sont dans CONTRIBUTING.md (FR) et CONTRIBUTING.en.md (EN) : build, tests, commits en anglais au format Conventional Commits et signés, noms de fichiers en kebab-case, identifiants en anglais, commentaires en anglais. Les agents IA suivent AGENTS.md.