build(flatpak): stop compiling the flatpak provider into the app
Removes FlatpakManager from the built-in sources and from MainWindow's registration, so only pacman ships inside the binary. Flatpak is now provided exclusively by the external plugin. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
3 files changed
+3
-11
No files matched your search
@@ -15,7 +15,6 @@ set(SOURCES
|
|||||||
src/main.cpp
|
src/main.cpp
|
||||||
src/main-window.cpp
|
src/main-window.cpp
|
||||||
src/pacman-manager.cpp
|
src/pacman-manager.cpp
|
||||||
src/flatpak-manager.cpp
|
|
||||||
src/plugin-manager.cpp
|
src/plugin-manager.cpp
|
||||||
src/history-manager.cpp
|
src/history-manager.cpp
|
||||||
src/package-model.cpp
|
src/package-model.cpp
|
||||||
@@ -25,7 +24,6 @@ set(SOURCES
|
|||||||
set(HEADERS
|
set(HEADERS
|
||||||
include/package-manager.h
|
include/package-manager.h
|
||||||
include/pacman-manager.h
|
include/pacman-manager.h
|
||||||
include/flatpak-manager.h
|
|
||||||
include/plugin-manager.h
|
include/plugin-manager.h
|
||||||
include/provider-plugin.h
|
include/provider-plugin.h
|
||||||
include/main-window.h
|
include/main-window.h
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
#include "package-manager.h"
|
#include "package-manager.h"
|
||||||
#include "pacman-manager.h"
|
#include "pacman-manager.h"
|
||||||
#include "flatpak-manager.h"
|
|
||||||
#include "plugin-manager.h"
|
#include "plugin-manager.h"
|
||||||
#include "history-manager.h"
|
#include "history-manager.h"
|
||||||
|
|
||||||
|
|||||||
+3
-8
@@ -174,19 +174,14 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) {
|
|||||||
// without this registration the queued connection is dropped silently.
|
// without this registration the queued connection is dropped silently.
|
||||||
qRegisterMetaType<std::vector<PackageInfo>>("std::vector<PackageInfo>");
|
qRegisterMetaType<std::vector<PackageInfo>>("std::vector<PackageInfo>");
|
||||||
|
|
||||||
// Provider registry: pacman and flatpak ship with the application, extra
|
// Provider registry: pacman is compiled in; every other provider (Flatpak,
|
||||||
// providers can be added as plugins at runtime (see the Providers page).
|
// ...) ships as an external plugin loaded at runtime from the plugins/
|
||||||
|
// directories (see the Providers page for details).
|
||||||
m_pluginManager = new PluginManager();
|
m_pluginManager = new PluginManager();
|
||||||
m_pluginManager->registerBuiltin(
|
m_pluginManager->registerBuiltin(
|
||||||
{"pacman", "Pacman", "1.0.0",
|
{"pacman", "Pacman", "1.0.0",
|
||||||
"Gestionnaire de paquets natif d'Arch Linux", "FWS"},
|
"Gestionnaire de paquets natif d'Arch Linux", "FWS"},
|
||||||
new PacmanManager());
|
new PacmanManager());
|
||||||
// The install hint tells the app how to make the provider available when
|
|
||||||
// its tool is missing (flatpak is shipped by the pacman package "flatpak").
|
|
||||||
m_pluginManager->registerBuiltin(
|
|
||||||
{"flatpak", "Flatpak", "1.0.0",
|
|
||||||
"Gestionnaire d'applications Flatpak", "FWS", false, "", false, "flatpak"},
|
|
||||||
new FlatpakManager());
|
|
||||||
m_pluginManager->discoverExternal();
|
m_pluginManager->discoverExternal();
|
||||||
|
|
||||||
// Non-owning handle kept for sudo credential handling and pacman logs.
|
// Non-owning handle kept for sudo credential handling and pacman logs.
|
||||||
|
|||||||
Reference in new issue
Block a user