Merge branch 'feat/fwspacm-plugin-packages' into release-1.6.0
This commit is contained in:
29 files changed
+2107
-1047
No files matched your search
@@ -55,6 +55,8 @@ package-manager/
|
||||
│ ├── provider-plugin.h # C ABI contract for plugins (providers + addons)
|
||||
│ ├── pacman-manager.h # pacman manager (Arch Linux, built-in)
|
||||
│ ├── plugin-manager.h # Plugin registry + shared-library loading
|
||||
│ ├── plugin-package.h # Installing a .fwspacm plugin package
|
||||
│ ├── zip-archive.h # Minimal ZIP reader (zlib)
|
||||
│ ├── main-window.h # INTERFACE: the window frame
|
||||
│ ├── history-manager.h # Action history
|
||||
│ ├── package-model.h # Qt model for the list
|
||||
@@ -83,6 +85,7 @@ package-manager/
|
||||
│ ├── example-provider/ # Example external provider plugin (template)
|
||||
│ ├── example-addon/ # Example external addon plugin (extension, template)
|
||||
│ └── flatpak-provider/ # Flatpak plugin (loaded at runtime, built by default)
|
||||
├── make-plugin-package.py # Builds a .fwspacm package from a shared library
|
||||
├── tests/ # Unit tests (assert, no Qt)
|
||||
└── resources/
|
||||
```
|
||||
@@ -244,6 +247,24 @@ Two kinds of plugins coexist, both written in **C++**:
|
||||
- **Providers** (`IPackageManager`): add a package manager (pacman built-in, Flatpak external, apt, dnf, …);
|
||||
- **Extensions / addons** (`IPlugin`): anything else — a UI addon, a helper, a better loading experience… — with no relation to package management.
|
||||
|
||||
### Installing a plugin: a `.fwspacm` file
|
||||
|
||||
There is no shop. A plugin is distributed as a **`.fwspacm` package** — a ZIP
|
||||
archive holding a `plugin.json` manifest and the shared library — that the user
|
||||
**drops onto the window**. No catalogue, no network, no button: the file *is* the
|
||||
distribution format.
|
||||
|
||||
The script at the repo root builds a package from a compiled library:
|
||||
|
||||
```bash
|
||||
./make-plugin-package.py build/libsample-provider.so \
|
||||
--id sample-provider --name "My provider" --version 1.0.0
|
||||
```
|
||||
|
||||
The manifest format, the security rules and troubleshooting are in
|
||||
[doc/paquets-de-plugin.md](doc/paquets-de-plugin.md) (written in French, like
|
||||
the rest of `doc/`).
|
||||
|
||||
The `IPackageManager` interface (implemented by the built-in `PacmanManager` and the Flatpak plugin) defines:
|
||||
|
||||
| Method | Description |
|
||||
|
||||
Reference in new issue
Block a user