Creati gli script per comprimere tutto in un .zip per Hostinger

This commit is contained in:
2026-04-26 16:30:24 +02:00
parent 5b671779da
commit e36a122687
2 changed files with 47 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
# Nome del file zip con data e ora
NOME_ZIP="sito.zip"
echo "Creazione archivio: $NOME_ZIP"
# Controlla che zip sia disponibile
if ! command -v zip &> /dev/null; then
echo "ERRORE: 'zip' non trovato. Installalo con: sudo pacman -S zip"
exit 1
fi
zip -r "$NOME_ZIP" \
src/ \
static/ \
svelte.config.js \
vite.config.ts \
package.json \
package-lock.json \
yarn.lock \
tsconfig.json \
recensioni.json \
--exclude "*/node_modules/*" \
--exclude "*/.svelte-kit/*" \
--exclude "*/build/*"
echo ""
echo "Fatto! Archivio creato: $NOME_ZIP"