-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·31 lines (24 loc) · 861 Bytes
/
install.sh
File metadata and controls
executable file
·31 lines (24 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
UUID="screenshot-annotator@inled.es"
DEST_DIR="$HOME/.local/share/gnome-shell/extensions/$UUID"
ZIP_FILE="screenshot-annotator@inled.es.shell-extension.zip"
echo "🚀 Iniciando instalación de la extensión v28..."
# 1. Generar el paquete
./package.sh
# 2. Eliminar instalación anterior si existe
if [ -d "$DEST_DIR" ]; then
echo "🗑️ Eliminando versión anterior..."
rm -rf "$DEST_DIR"
fi
# 3. Crear directorio y extraer
echo "📂 Instalando nueva versión..."
mkdir -p "$DEST_DIR"
unzip -q "$ZIP_FILE" -d "$DEST_DIR"
# 4. Compilar esquemas GSettings
echo "⚙️ Compilando esquemas GSettings..."
glib-compile-schemas "$DEST_DIR/schemas/"
# 5. Limpiar el zip temporal
rm "$ZIP_FILE"
echo "✨ Instalación completada."
echo "⚠️ IMPORTANTE: Reinicia GNOME Shell (Alt+F2 -> r)."
gnome-extensions enable "$UUID" 2>/dev/null