26 lines
613 B
Bash
26 lines
613 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
PLUGIN_DIR="$HOME/.local/lib/PackageMapper/plugins"
|
|
|
|
echo "📦 Installation des plugins..."
|
|
|
|
mkdir -p "$PLUGIN_DIR"
|
|
|
|
# Find and copy all plugin .so files
|
|
for plugin in build/plugins/*/lib*.so; do
|
|
if [ -f "$plugin" ]; then
|
|
cp "$plugin" "$PLUGIN_DIR/"
|
|
echo " ✅ Installé: $(basename $plugin)"
|
|
fi
|
|
done
|
|
|
|
# Universal plugin (priority)
|
|
if [ -f "build/plugins/universal/libuniversal.so" ]; then
|
|
echo " 🌍 Plugin universal chargé"
|
|
fi
|
|
|
|
echo ""
|
|
echo "📁 Plugins installés dans: $PLUGIN_DIR"
|
|
echo "🔄 Redémarrez PackageMapper pour charger les nouveaux plugins."
|