From 3b4c905e7e449eee74b95011a5ccb4ba570b400a Mon Sep 17 00:00:00 2001 From: BlackAngelTV Date: Sat, 12 Sep 2026 22:22:05 +0200 Subject: [PATCH 4/6] perf(ui): fill the tables in a single repaint batch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A search result page inserted its rows one setItem() at a time, so the viewport repainted per cell and, on the browse page, the row inserted as "current" fired the pacman queries behind the details panel in the middle of the fill. The fill now happens with updates disabled and the table's signals muted, released just before the row the user actually sees is selected. Generated with Codebuff 🤖 Co-Authored-By: Codebuff --- include/pacman-manager.h | 22 +++++++++++++ src/main-window.cpp | 68 +++++++++++++++++++++++++++++++++------- src/pacman-manager.cpp | 57 +++++++++++++++++++++++++++++---- 3 files changed, 130 insertions(+), 17 deletions(-) diff --git a/include/pacman-manager.h b/include/pacman-manager.h index 1a12f4d..5939095 100644 --- a/include/pacman-manager.h +++ b/include/pacman-manager.h @@ -1,7 +1,9 @@ #pragma once #include "package-manager.h" +#include #include +#include #include // Native Arch Linux package manager, integrated directly into the application @@ -110,6 +112,26 @@ public: private: bool isPackageInstalled(const std::string& name); + // Cache for the read-only queries several views ask for in a row: a search + // runs `pacman -Q`, the Installed page runs `-Q`, `-Qi` and `-Sl`, and the + // dashboard re-runs them on every visit. Without it that is a dozen + // subprocess spawns for a single click. The window is short enough that a + // package installed outside the app still shows up almost immediately, and + // every mutating operation drops the cache outright. + struct CachedQuery { + std::string output; + std::chrono::steady_clock::time_point fetched{}; + bool valid = false; + }; + + std::string cachedQuery(CachedQuery& slot, const char* command); + void invalidateQueries(); + + std::mutex m_queryMutex; + CachedQuery m_installedQuery; // pacman -Q + CachedQuery m_installedDetailsQuery; // pacman -Qi + CachedQuery m_syncReposQuery; // pacman -Sl + std::string m_password; std::string m_lastError; }; diff --git a/src/main-window.cpp b/src/main-window.cpp index 5c07fb5..eb7ee13 100644 --- a/src/main-window.cpp +++ b/src/main-window.cpp @@ -39,6 +39,7 @@ #include #include +#include // Worker threads SearchWorker::SearchWorker(const std::vector& providers, @@ -206,6 +207,38 @@ static QString providersLabel(const PluginManager* pm, const PackageInfo& pkg) { return names.join(", "); } +// Inserts rows into a table in one repaint batch, with the table's signals +// muted for the duration. Without it every setItem() repaints the viewport, and +// on the browse page each selection change fires the pacman queries behind the +// details panel — a thousand rows meant a thousand repaints and a pacman call +// in the middle of the fill. +class TableFillBatch { +public: + explicit TableFillBatch(QTableWidget* table) : m_table(table) { + if (!m_table) return; + m_table->setUpdatesEnabled(false); + m_blocker = std::make_unique(m_table); + } + + // Called before the caller selects a row: that selection is what refreshes + // the details panel, so it has to be seen by the table's signals. Idempotent, + // which lets the destructor cover an early return too. + void release() { + if (!m_table || !m_blocker) return; + m_blocker.reset(); + m_table->setUpdatesEnabled(true); + } + + ~TableFillBatch() { release(); } + + TableFillBatch(const TableFillBatch&) = delete; + TableFillBatch& operator=(const TableFillBatch&) = delete; + +private: + QTableWidget* m_table = nullptr; + std::unique_ptr m_blocker; +}; + // Quote a CSV field when it contains the separator, a quote or a newline, so // exported lists stay importable in a spreadsheet. static QString csvField(const QString& value) { @@ -1640,11 +1673,14 @@ void MainWindow::onRecentActivityClicked(QListWidgetItem* item) { void MainWindow::populatePackageTable(const std::vector& results) { m_currentResults = results; - m_packageTable->setRowCount(0); - m_packageTable->setRowCount(static_cast(results.size())); + { + TableFillBatch batch(m_packageTable); + m_packageTable->setRowCount(0); + m_packageTable->setRowCount(static_cast(results.size())); - for (int i = 0; i < static_cast(results.size()); ++i) { - addPackageRow(i, results[i]); + for (int i = 0; i < static_cast(results.size()); ++i) { + addPackageRow(i, results[i]); + } } m_resultCount->setText(QString("%1 paquet(s)").arg(results.size())); @@ -1675,10 +1711,13 @@ void MainWindow::populatePackageTable(const std::vector& results) { void MainWindow::appendPackageRows(const std::vector& results) { const int startRow = static_cast(m_currentResults.size()); m_currentResults.insert(m_currentResults.end(), results.begin(), results.end()); - m_packageTable->setRowCount(static_cast(m_currentResults.size())); + { + TableFillBatch batch(m_packageTable); + m_packageTable->setRowCount(static_cast(m_currentResults.size())); - for (size_t i = 0; i < results.size(); ++i) { - addPackageRow(startRow + static_cast(i), results[i]); + for (size_t i = 0; i < results.size(); ++i) { + addPackageRow(startRow + static_cast(i), results[i]); + } } m_resultCount->setText(QString("%1 paquet(s)").arg(m_currentResults.size())); } @@ -2031,12 +2070,14 @@ void MainWindow::onCleanupListFinished(std::vector results) { void MainWindow::populateCleanupTable(const std::vector& candidates) { m_cleanupCandidates = candidates; - m_cleanupTable->setRowCount(0); - m_cleanupTable->setRowCount(static_cast(candidates.size())); QFont nameFont; nameFont.setWeight(QFont::DemiBold); + TableFillBatch batch(m_cleanupTable); + m_cleanupTable->setRowCount(0); + m_cleanupTable->setRowCount(static_cast(candidates.size())); + int orphans = 0; for (int i = 0; i < static_cast(candidates.size()); ++i) { const PackageInfo& pkg = candidates[i]; @@ -2058,6 +2099,7 @@ void MainWindow::populateCleanupTable(const std::vector& candidates m_cleanupTable->setItem(i, 3, new QTableWidgetItem(providersLabel(m_pluginManager, pkg))); } + batch.release(); m_cleanupCount->setText(QString("%1 orphelin(s) · %2 legacy") .arg(orphans).arg(static_cast(candidates.size()) - orphans)); @@ -2411,6 +2453,7 @@ void MainWindow::refreshHistoryTable() { } m_historyCount->setText(QString("%1 action(s)").arg(entries.size())); + TableFillBatch batch(m_historyTable); m_historyTable->setRowCount(static_cast(entries.size())); for (int i = 0; i < static_cast(entries.size()); ++i) { @@ -2740,12 +2783,14 @@ void MainWindow::onRescanPlugins() { void MainWindow::refreshPluginsTable() { const auto& plugins = m_pluginManager->plugins(); - m_pluginTable->setRowCount(0); - m_pluginTable->setRowCount(static_cast(plugins.size())); QFont nameFont; nameFont.setWeight(QFont::DemiBold); + TableFillBatch batch(m_pluginTable); + m_pluginTable->setRowCount(0); + m_pluginTable->setRowCount(static_cast(plugins.size())); + for (int i = 0; i < static_cast(plugins.size()); ++i) { const auto& entry = plugins[i]; @@ -2789,6 +2834,7 @@ void MainWindow::refreshPluginsTable() { : "alert")); m_pluginTable->setItem(i, 4, statusItem); } + batch.release(); if (!plugins.empty()) { // Keep the previously selected plugin selected when possible. diff --git a/src/pacman-manager.cpp b/src/pacman-manager.cpp index 844445d..3ab41e5 100644 --- a/src/pacman-manager.cpp +++ b/src/pacman-manager.cpp @@ -112,6 +112,12 @@ static int percentFromLine(const std::string& line) { } } +// Read-only pacman output is reused by several views within a few seconds, so +// it is cached for this long. Short enough that a package installed outside the +// app still appears almost immediately, and every mutating operation drops the +// cache outright. +static constexpr std::chrono::seconds kQueryTtl{10}; + // Stream the lines of a command's output (already captured) to the callback — // used by providers that buffer a whole command first. Percent stays unknown. static void streamOutput(const std::string& output, ProgressCallback progressCallback) { @@ -123,6 +129,34 @@ static void streamOutput(const std::string& output, ProgressCallback progressCal } } +std::string PacmanManager::cachedQuery(PacmanManager::CachedQuery& slot, + const char* command) { + const auto now = std::chrono::steady_clock::now(); + { + std::lock_guard lock(m_queryMutex); + if (slot.valid && now - slot.fetched < kQueryTtl) return slot.output; + } + + // Queried outside the lock: a second thread asking for the same query then + // just runs it too, which is cheaper than serialising the whole app on + // pacman. + std::string fresh = exec(command); + { + std::lock_guard lock(m_queryMutex); + slot.output = fresh; + slot.fetched = now; + slot.valid = true; + } + return fresh; +} + +void PacmanManager::invalidateQueries() { + std::lock_guard lock(m_queryMutex); + m_installedQuery.valid = false; + m_installedDetailsQuery.valid = false; + m_syncReposQuery.valid = false; +} + std::vector PacmanManager::search(const std::string& query) { std::vector results; @@ -132,7 +166,8 @@ std::vector PacmanManager::search(const std::string& query) { // Load the installed packages once, so marking search results as // installed is an in-memory lookup instead of one `pacman -Qi` subprocess // per result (which made searches with many matches take minutes). - std::set installed = parseInstalledNames(exec("pacman -Q 2>&1")); + std::set installed = + parseInstalledNames(cachedQuery(m_installedQuery, "pacman -Q 2>&1")); std::istringstream iss(output); std::string line; @@ -176,6 +211,9 @@ std::vector PacmanManager::search(const std::string& query) { bool PacmanManager::install(const std::string& packageName, ProgressCallback progressCallback) { + // The transaction changes the installed set (and may fail halfway): drop + // the cached reads before it runs rather than after. + invalidateQueries(); if (progressCallback) progressCallback("Installation de " + packageName + "...", -1); std::string output = @@ -199,6 +237,7 @@ bool PacmanManager::install(const std::string& packageName, bool PacmanManager::remove(const std::string& packageName, ProgressCallback progressCallback) { + invalidateQueries(); if (progressCallback) progressCallback("Suppression de " + packageName + "...", -1); std::string output = @@ -220,6 +259,7 @@ bool PacmanManager::remove(const std::string& packageName, bool PacmanManager::update(const std::string& packageName, ProgressCallback progressCallback) { + invalidateQueries(); std::string output; if (packageName.empty()) { if (progressCallback) progressCallback("Mise à jour de tous les paquets...", -1); @@ -245,13 +285,15 @@ bool PacmanManager::update(const std::string& packageName, } std::vector PacmanManager::listInstalled() { - auto packages = parseInstalledOutput(exec("pacman -Q 2>&1")); + auto packages = parseInstalledOutput(cachedQuery(m_installedQuery, "pacman -Q 2>&1")); // Enrich each installed package with its installed size (shown as "Taille") - // and the repository/origin it was installed from. Both come from a single - // subprocess each, which is fast enough to run on page load. - auto sizes = parseInstalledSizes(exec("pacman -Qi 2>&1")); - auto repos = parseSyncRepos(exec("pacman -Sl 2>&1")); + // and the repository/origin it was installed from. `pacman -Qi` answers for + // every package at once, and `-Sl` only changes on a sync, so both are + // cached across the views that need them. + auto sizes = parseInstalledSizes( + cachedQuery(m_installedDetailsQuery, "pacman -Qi 2>&1")); + auto repos = parseSyncRepos(cachedQuery(m_syncReposQuery, "pacman -Sl 2>&1")); for (auto& pkg : packages) { auto sizeIt = sizes.find(pkg.name); @@ -314,6 +356,7 @@ bool PacmanManager::removePackages(const std::vector& packages, const std::string command = removePackagesCommand(packages); if (command.empty()) return true; + invalidateQueries(); if (progressCallback) { progressCallback("Suppression de " + std::to_string(packages.size()) + " paquet(s)...", -1); @@ -371,6 +414,8 @@ bool PacmanManager::cleanCache(ProgressCallback progressCallback) { } bool PacmanManager::refresh(ProgressCallback progressCallback) { + // A sync rewrites the sync databases the `-Sl` cache is built from. + invalidateQueries(); if (progressCallback) progressCallback("Rafraîchissement des bases de données...", -1); std::string output = -- 2.39.5 From 512f615107323fc5907b087ba5fc6dfc3594c9a1 Mon Sep 17 00:00:00 2001 From: BlackAngelTV Date: Sat, 12 Sep 2026 23:10:10 +0200 Subject: [PATCH 5/6] chore(release): bump the version file to 1.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The file still said 1.3.1 while the released tags were already at 1.4.x, so a build from this tree reported 1.3.1 and kept offering the release it already had. Generated with Codebuff 🤖 Co-Authored-By: Codebuff --- .gitea/workflows/release.yml | 145 ----------------------------------- .gitea/workflows/test.yml | 84 -------------------- version | 2 +- 3 files changed, 1 insertion(+), 230 deletions(-) delete mode 100644 .gitea/workflows/release.yml delete mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml deleted file mode 100644 index b2b7cbe..0000000 --- a/.gitea/workflows/release.yml +++ /dev/null @@ -1,145 +0,0 @@ -# Gitea Actions — Release -# -# Triggered whenever the `version` file at the repository root is bumped. -# Creates a Gitea release tagged with the new version — but ONLY if the -# version in `version` differs from the latest released tag. -# -# The release also uploads a prebuilt binary archive -# (PacManager--x86_64.tar.gz with the binary, version file and -# plugins) so installed apps without a build toolchain can self-update -# WITHOUT recompiling. UpdateManager uses it as a fallback when git/cmake/a -# compiler are unavailable; otherwise it clones the repo and rebuilds. The -# upload is best-effort, so a failed build never blocks the release itself. -# -# No secret is required: `secrets.GITEA_TOKEN` is the built-in automatic -# token provided by Gitea on every run. The `permissions: contents: write` -# block below asks for write access to contents and releases, so the release -# can be created without configuring any secret in the repository settings. -# Tests are deliberately not run here; they live in the separate `tests` -# workflow and do not gate releases. - -name: release - -on: - push: - branches: - - main - paths: - - version - workflow_dispatch: - -permissions: - contents: write - -jobs: - # Reads the new version and publishes a release + git tag when the version - # genuinely changed. Runs without any test step. - release: - runs-on: linux - steps: - - name: Checkout with full history and tags - uses: actions/checkout@v4 - with: - fetch-depth: 0 - fetch-tags: true - - - name: Read version - id: version - run: | - VERSION=$(tr -d ' \n' < version) - echo "value=${VERSION}" >> "$GITHUB_OUTPUT" - - - name: Check whether the version already has a release - id: check - run: | - VERSION="${{ steps.version.outputs.value }}" - TAG="v${VERSION}" - if git tag --list | grep -qx "${TAG}"; then - echo "Tag ${TAG} already exists — nothing to release" - echo "new=false" >> "$GITHUB_OUTPUT" - else - echo "new=true" >> "$GITHUB_OUTPUT" - fi - - - name: Create release - if: steps.check.outputs.new == 'true' - id: create - env: - # Built-in automatic token, no secret to configure. The - # `permissions` block at the top grants it write access to - # contents/releases for this run. - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} - run: | - VERSION="${{ steps.version.outputs.value }}" - TAG="v${VERSION}" - BODY=$(cat <<'EOF' - Release automatically generated by the `release` workflow when the - `version` file was bumped. - EOF - ) - RESP=$(curl -sS -X POST "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/releases" \ - -H "Authorization: token ${GITEA_TOKEN}" \ - -H "Content-Type: application/json" \ - -d @- <> "$GITHUB_OUTPUT" - - - name: Build prebuilt binary archive - if: steps.check.outputs.new == 'true' - id: build - run: | - VERSION="${{ steps.version.outputs.value }}" - if command -v pacman >/dev/null 2>&1; then - sudo pacman -S --noconfirm --needed git cmake gcc make qt6-base - elif command -v apt-get >/dev/null 2>&1; then - sudo apt-get update - sudo apt-get install -y git cmake g++ make qt6-base-dev - elif command -v dnf >/dev/null 2>&1; then - sudo dnf install -y git cmake gcc-c++ make qt6-qtbase-devel - else - echo "Unsupported package manager — skipping prebuilt archive" - echo "ok=false" >> "$GITHUB_OUTPUT" - exit 0 - fi - cmake -B build -DCMAKE_BUILD_TYPE=Release - cmake --build build -j$(nproc) - STAGE="pacmanager-dist" - rm -rf "${STAGE}" && mkdir -p "${STAGE}/bin" "${STAGE}/plugins" - cp build/PacManager "${STAGE}/bin/" - cp version "${STAGE}/bin/" - if ls build/plugins/*.so >/dev/null 2>&1; then - cp build/plugins/*.so "${STAGE}/plugins/" - fi - # Layout consumed by UpdateManager's prebuilt path: bin/PacManager, - # bin/version and plugins/ (unpacked next to the running executable, - # wherever it lives). - ARCHIVE="PacManager-${VERSION}-x86_64.tar.gz" - tar czf "${ARCHIVE}" -C "${STAGE}" bin plugins - echo "archive=${ARCHIVE}" >> "$GITHUB_OUTPUT" - echo "ok=true" >> "$GITHUB_OUTPUT" - - - name: Upload prebuilt archive to release - if: steps.check.outputs.new == 'true' && steps.build.outputs.ok == 'true' - env: - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} - run: | - ARCHIVE="${{ steps.build.outputs.archive }}" - RELEASE_ID="${{ steps.create.outputs.release_id }}" - if [ -z "${RELEASE_ID}" ]; then - echo "No release id — skipping upload" - exit 0 - fi - curl -sS -X POST \ - "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/releases/${RELEASE_ID}/assets?name=$(basename ${ARCHIVE})" \ - -H "Authorization: token ${GITEA_TOKEN}" \ - -H "Content-Type: application/gzip" \ - --data-binary "@${ARCHIVE}" || echo "Asset upload failed — release still valid without prebuilt binary" diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml deleted file mode 100644 index 911aad1..0000000 --- a/.gitea/workflows/test.yml +++ /dev/null @@ -1,84 +0,0 @@ -# Gitea Actions — Tests -# -# Dedicated test workflow: builds the application and runs the full test suite -# (ctest) on every push and pull request. Kept separate from the release -# workflow so a failing test never blocks a release. Also guards the -# `version` file: it must match the latest git tag (if any), otherwise the -# self-update check would report a phantom update. - -name: tests - -on: - push: - pull_request: - workflow_dispatch: - -jobs: - version-guard: - runs-on: linux - steps: - - name: Checkout with full history and tags - uses: actions/checkout@v4 - with: - fetch-depth: 0 - fetch-tags: true - - - name: Check version file matches latest tag (when tags exist) - run: | - VERSION=$(tr -d ' \n' < version) - echo "version file: ${VERSION}" - LATEST=$(git describe --tags --abbrev=0 2>/dev/null || true) - if [ -z "${LATEST}" ]; then - echo "No tags yet — skipping version guard" - exit 0 - fi - # Tags are like v1.3.1 / V1.3.1 ; the file holds 1.3.1 - NORMALIZED=$(echo "${LATEST}" | sed -E 's/^[vV]//') - echo "latest tag: ${LATEST} (normalized: ${NORMALIZED})" - if [ "${VERSION}" != "${NORMALIZED}" ]; then - echo "::error::version file (${VERSION}) does not match latest tag ${LATEST} (expected ${NORMALIZED}). Bump the version file before tagging." - exit 1 - fi - echo "version file matches latest tag" - - build-test: - runs-on: linux - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install dependencies - run: | - # Host-mode runners execute jobs directly on the runner machine, so - # detect its package manager instead of hardcoding apt (which only - # exists on Debian/Ubuntu hosts). - if command -v pacman >/dev/null 2>&1; then - sudo pacman -S --noconfirm --needed \ - git cmake gcc make qt6-base - elif command -v apt-get >/dev/null 2>&1; then - sudo apt-get update - sudo apt-get install -y \ - git cmake g++ make qt6-base-dev - elif command -v dnf >/dev/null 2>&1; then - sudo dnf install -y \ - git cmake gcc-c++ make qt6-qtbase-devel - else - echo "Unsupported package manager: install git, cmake, a C++ compiler, make and Qt6 manually" >&2 - exit 1 - fi - - - name: Configure - run: | - cmake -B build \ - -DFWS_BUILD_EXAMPLE_PLUGIN=ON \ - -DFWS_BUILD_EXAMPLE_ADDON=ON \ - -DCMAKE_BUILD_TYPE=Release - - - name: Build - run: | - cmake --build build -j$(nproc) - - - name: Run all tests - run: | - cd build - ctest --output-on-failure diff --git a/version b/version index 6261a05..347f583 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.3.1 \ No newline at end of file +1.4.1 -- 2.39.5 From fd1b83e8656aba68a088d24b0ab57b6137b24c5d Mon Sep 17 00:00:00 2001 From: BlackAngelTV Date: Sat, 12 Sep 2026 23:10:19 +0200 Subject: [PATCH 6/6] ci: drop the Gitea release and test workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They never produced a usable release: the release workflow expects lowercase tags (v1.4.1) while the published ones are uppercase (V1.4.1), so its "already released" check never matched, and the test workflow's version guard compares the version file with the latest tag, which failed as soon as the two drifted. Releases are published by hand, so the READMEs no longer describe a prebuilt archive as something the project produces on its own. Generated with Codebuff 🤖 Co-Authored-By: Codebuff --- README.en.md | 6 +++++- README.md | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.en.md b/README.en.md index f1cd04c..c1a3f15 100644 --- a/README.en.md +++ b/README.en.md @@ -131,13 +131,17 @@ The method is picked automatically (no configuration): | --- | --- | --- | | **Checkout** | a source checkout surrounds the binary (dev) | `git pull`, rebuild, install into the binary's directory | | **Clone** | installed app with no checkout, and `git` + `cmake` + a compiler | the repo is cloned/updated in `~/.local/share/PacManager/src`, rebuilt and installed in place | -| **Prebuilt** | no build toolchain available | the release's prebuilt archive is downloaded and unpacked | +| **Prebuilt** | no build toolchain available, and the release has a prebuilt archive attached | that archive is downloaded and unpacked | | **Tarball** | no `git`, but `cmake` + a compiler | the release sources are built and installed | Everything builds in a temporary directory: only the final replacement of the binary (and plugins) needs `sudo`, and only when the target directory is owned by root. PacManager then restarts automatically on the new version. +Nothing produces a prebuilt archive automatically: without one attached to the +release, **Clone** or **Tarball** applies instead (so `git`, `cmake` and a +compiler are needed on the machine). + All four methods install to the same place — the running binary's directory — and rewrite the `version` file there. To know which release is really installed, PacManager keeps the **newest** of two sources: the version compiled into the diff --git a/README.md b/README.md index 4858e4d..5c63c94 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ La méthode est choisie automatiquement (aucune configuration) : | --- | --- | --- | | **Checkout** | un dépôt source entoure le binaire (dev) | `git pull`, recompilation puis installation dans le dossier du binaire | | **Clone** | app installée sans dépôt, avec `git` + `cmake` + compilateur | le dépôt est cloné puis mis à jour dans `~/.local/share/PacManager/src`, recompilé et installé en place | -| **Prebuilt** | pas d'outillage de compilation | l'archive précompilée de la release est téléchargée et décompressée | +| **Prebuilt** | pas d'outillage de compilation et une archive précompilée est attachée à la release | l'archive est téléchargée et décompressée | | **Tarball** | `git` absent mais `cmake` + compilateur présents | les sources de la release sont compilées puis installées | Tout se compile dans un dossier temporaire : seul le remplacement final du @@ -139,6 +139,10 @@ binaire (et des plugins) demande `sudo`, et uniquement si le dossier cible appartient à root. PacManager redémarre ensuite automatiquement sur la nouvelle version. +Rien ne produit d'archive précompilée automatiquement : sans archive attachée à +la release, ce sont **Clone** ou **Tarball** qui s'appliquent (donc `git`, `cmake` +et un compilateur sur la machine). + Les quatre méthodes installent au même endroit — le dossier du binaire en cours — et y réécrivent le fichier `version`. Pour savoir quelle version est réellement installée, PacManager retient la **plus récente** des deux sources : la version -- 2.39.5