Files
FWS-PacManage/build.sh
T
2026-08-26 20:49:05 +02:00

31 lines
640 B
Bash

#!/bin/bash
set -e
echo "🔨 Compilation de PacManager..."
# Create build directory
mkdir -p build
cd build
# Configure
echo "⚙️ Configuration CMake..."
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
# Build everything
echo "🏗️ Compilation..."
make -j$(nproc)
echo ""
echo "✅ Compilation terminée !"
echo ""
echo "📋 Pour lancer :"
echo " ./PacManager"
echo ""
echo "📋 Pour installer :"
echo " sudo make install"
echo ""
echo "📋 Pour copier les plugins (user mode) :"
echo " mkdir -p ~/.local/lib/PacManager/plugins"
echo " cp plugins/*/lib*.so ~/.local/lib/PacManager/plugins/"
echo ""