From 26ca0e4d88a7bfaadc40c652a78fd4e6bc3e4aa6 Mon Sep 17 00:00:00 2001 From: BlackAngelTV Date: Sat, 29 Aug 2026 17:40:09 +0200 Subject: [PATCH] docs: document install and desktop-launcher setup commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modernize the build instructions (cmake -B build) and document the three install paths: per-user without sudo, system-wide with sudo, and the desktop launcher integration that turns PacManager into a regular app shown by any application menu (wofi, GNOME, KDE...). 🤖 Generated with Codebuff Co-Authored-By: Codebuff --- README.en.md | 54 ++++++++++++++++++++++++++++++++++++++++++---------- README.md | 54 ++++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 88 insertions(+), 20 deletions(-) diff --git a/README.en.md b/README.en.md index afd145b..40deaae 100644 --- a/README.en.md +++ b/README.en.md @@ -52,26 +52,60 @@ sudo pacman -S qt6-base cmake gcc base-devel ```bash cd package-manager -# Create the build directory -mkdir -p build && cd build +# Configure and compile +cmake -B build -DFWS_BUILD_EXAMPLE_PLUGIN=ON +cmake --build build -j$(nproc) +``` -# Configure -cmake .. -DCMAKE_INSTALL_PREFIX=/usr +### Install -# Compile -make -j$(nproc) +**User install** (recommended, no sudo — the binary goes to `~/.local/bin`): -# Install (optional) -sudo make install +```bash +cmake --install build --prefix ~/.local + +# To run `PacManager` from a terminal (optional): +echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc # then restart your shell +``` + +**System install** (root, into `/usr/local/bin`): + +```bash +sudo cmake --install build +``` + +### Show up in the app launcher (a real app, no command) + +To make PacManager appear in the launcher of any desktop (wofi, GNOME, KDE...), like a pacman install: + +```bash +mkdir -p ~/.local/share/applications ~/.local/share/icons/hicolor/scalable/apps +cp resources/icons/package.svg ~/.local/share/icons/hicolor/scalable/apps/org.fws.PacManager.svg +cat > ~/.local/share/applications/org.fws.PacManager.desktop <> ~/.bashrc # puis relancez votre shell +``` + +**Installation système** (root, dans `/usr/local/bin`) : + +```bash +sudo cmake --install build +``` + +### Apparaître dans le launcher (vraie app, sans commande) + +Pour que PacManager s'affiche dans le launcher de n'importe quel bureau (wofi, GNOME, KDE…), comme une install pacman : + +```bash +mkdir -p ~/.local/share/applications ~/.local/share/icons/hicolor/scalable/apps +cp resources/icons/package.svg ~/.local/share/icons/hicolor/scalable/apps/org.fws.PacManager.svg +cat > ~/.local/share/applications/org.fws.PacManager.desktop <