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 <