-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.sh
More file actions
executable file
·30 lines (24 loc) · 853 Bytes
/
package.sh
File metadata and controls
executable file
·30 lines (24 loc) · 853 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
#!/bin/bash
UUID="screenshot-annotator@inled.es"
OUTPUT="$UUID.shell-extension.zip"
echo "📦 Generando paquete para GNOME Extensions Store..."
# Limpiar versiones anteriores
rm -f "$OUTPUT"
# Entrar al directorio de la extensión
cd extension
# Empaquetar solo los archivos necesarios
# Excluimos archivos de sistema, logs, o carpetas ocultas si las hubiera
python3 -m zipfile -c "../$OUTPUT" \
extension.js \
metadata.json \
prefs.js \
LICENSE \
editor/ \
schemas/
cd ..
echo "✅ Paquete generado: $OUTPUT"
echo "--------------------------------------------------"
echo "🔍 Verificando contenido del paquete..."
python3 -m zipfile -l "$OUTPUT" | grep -E "metadata.json|extension.js|LICENSE"
echo "--------------------------------------------------"
echo "🚀 Listo para subir a https://extensions.gnome.org/upload/"