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
+1
-1
@@ -68,7 +68,7 @@ replaying a request**, so it can never run pacman as root.
|
||||
| `app-core-test` | the core: providers, password gate, lock, plugins |
|
||||
| `progress-tracker-test` | reading a tool's output, progress, ANSI |
|
||||
| `package-utils-test` | the shared package utilities |
|
||||
| `plugin-shop-test` | the shop's JSON catalogue |
|
||||
| `plugin-package-test` | the `.fwspacm` package format and its installation |
|
||||
| `update-manager-test` | version detection and self-update |
|
||||
|
||||
[doc/tests.md](doc/tests.md) details each target and explains how to add one.
|
||||
|
||||
Reference in new issue
Block a user