15 lines
308 B
Bash
Executable file
15 lines
308 B
Bash
Executable file
#!/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"
|