Files
FWS-PacManage/build.sh
T

31 lines
652 B
Bash

#!/bin/bash
set -e
echo "🔨 Compilation de PackageMapper..."
# 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 " ./PackageMapper"
echo ""
echo "📋 Pour installer :"
echo " sudo make install"
echo ""
echo "📋 Pour copier les plugins (user mode) :"
echo " mkdir -p ~/.local/lib/PackageMapper/plugins"
echo " cp plugins/*/lib*.so ~/.local/lib/PackageMapper/plugins/"
echo ""