fix(build): cmake

This commit is contained in:
BlackAngelTV committed 2026-08-26 20:49:05 +02:00
1 parent 1242753962
commit 4a773c63ce
17 files changed
+80 -75

No files matched your search

+2 -2
View File
@@ -3,6 +3,6 @@ target_include_directories(pkg_plugin PRIVATE ${CMAKE_SOURCE_DIR}/include)
set_target_properties(pkg_plugin PROPERTIES
PREFIX ""
OUTPUT_NAME "pkg"
INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib/PackageMapper/plugins"
INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib/PacManager/plugins"
)
install(TARGETS pkg_plugin DESTINATION lib/PackageMapper/plugins)
install(TARGETS pkg_plugin DESTINATION lib/PacManager/plugins)
+4 -4
View File
@@ -66,7 +66,7 @@ public:
std::function<void(const std::string&)> progressCallback) override {
if (progressCallback) progressCallback("Installation de " + packageName + "...");
std::string output = exec(("sudo pkg install -y " + packageName + " 2>&1").c_str());
std::string output = exec(("pkexec pkg install -y " + packageName + " 2>&1").c_str());
if (progressCallback) {
std::istringstream iss(output);
@@ -83,7 +83,7 @@ public:
std::function<void(const std::string&)> progressCallback) override {
if (progressCallback) progressCallback("Suppression de " + packageName + "...");
std::string output = exec(("sudo pkg delete -y " + packageName + " 2>&1").c_str());
std::string output = exec(("pkexec pkg delete -y " + packageName + " 2>&1").c_str());
if (progressCallback) {
std::istringstream iss(output);
@@ -100,11 +100,11 @@ public:
std::function<void(const std::string&)> progressCallback = nullptr) override {
if (packageName.empty()) {
if (progressCallback) progressCallback("Mise à jour de tous les paquets...");
exec("sudo pkg upgrade -y 2>&1");
exec("pkexec pkg upgrade -y 2>&1");
return true;
} else {
if (progressCallback) progressCallback("Mise à jour de " + packageName + "...");
exec(("sudo pkg install -y " + packageName + " 2>&1").c_str());
exec(("pkexec pkg install -y " + packageName + " 2>&1").c_str());
return true;
}
}