feat(plugins): add a plugin shop fed by a JSON catalogue
Installing a plugin meant compiling a shared library and dropping it in a directory by hand. The shop reads a catalogue (plugins/catalog.json, one entry per plugin with its description and download URL), lists what can be installed next to what already is, and installs an entry into ~/.local/share/PacManager/plugins — the directory the registry already scans — so a plugin becomes usable without root rights and without a restart. Installing runs third-party code in this process, so the shop only fetches what the user picked, checks the announced sha256 before writing anything, and a removal deletes only the files the shop wrote itself. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
1 parent
b26e907221
commit
5033c4e940
9 files changed
+872
-6
No files matched your search
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"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": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user