Cette révision appartient à :
arabcoders
2025-08-12 00:58:25 +03:00
Parent 166cab90df
révision 4f2617ae6e
7 fichiers modifiés avec 137 ajouts et 20 suppressions
+29
Voir le fichier
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -e
zip_file="ytptube-extension.zip"
extension_dir="./src"
if [ -f "$zip_file" ]; then
echo "Removing existing zip file: $zip_file"
rm "$zip_file"
fi
IGNORE_FILES=(
"*.git*"
"*.vscode*"
"*.idea*"
"*.DS_Store"
"node_modules/*"
"dist/*"
"build/*"
"screenshots/*"
)
echo "Creating zip file: $zip_file"
# The zip file should contain the contents of the src directory not the directory itself
(
cd "$extension_dir" || exit 1
zip -r "../$zip_file" . -x "${IGNORE_FILES[@]}"
)