Packaging script

This commit is contained in:
Gonçalo Correia 2026-04-13 14:10:52 +01:00
parent 907e0464ed
commit 158c1742fe

15
package.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
ADDON_NAME="AltSystem"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
OUTPUT_DIR="$(mktemp -d)"
OUTPUT_FILE="$OUTPUT_DIR/$ADDON_NAME.zip"
cd "$SCRIPT_DIR/.." && \
zip -r "$OUTPUT_FILE" "$ADDON_NAME" \
-x "*/.DS_Store" \
-x "*/__MACOSX/*" \
-x "*/.git/*" \
-x "*/.git"
echo "$OUTPUT_FILE"