added theme support
This commit is contained in:
@@ -1,5 +1,26 @@
|
|||||||
zip -r ~/Downloads/sonardesk-stylist-source.zip \
|
#!/bin/bash
|
||||||
sonar-desk-licensing \
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Determine project directory automatically
|
||||||
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||||
|
PROJECT_NAME="$(basename "$PROJECT_DIR")"
|
||||||
|
PARENT_DIR="$(dirname "$PROJECT_DIR")"
|
||||||
|
|
||||||
|
OUTPUT="$HOME/Downloads/sonardesk-stylist-source.zip"
|
||||||
|
|
||||||
|
echo "Project: $PROJECT_DIR"
|
||||||
|
echo "Output: $OUTPUT"
|
||||||
|
|
||||||
|
mkdir -p "$HOME/Downloads"
|
||||||
|
|
||||||
|
# Remove previous archive
|
||||||
|
rm -f "$OUTPUT"
|
||||||
|
|
||||||
|
# Run from parent so the project directory is included
|
||||||
|
cd "$PARENT_DIR"
|
||||||
|
|
||||||
|
zip -r "$OUTPUT" "$PROJECT_NAME" \
|
||||||
-x '*/vendor/*' \
|
-x '*/vendor/*' \
|
||||||
'*/node_modules/*' \
|
'*/node_modules/*' \
|
||||||
'*/.git/*' \
|
'*/.git/*' \
|
||||||
@@ -9,3 +30,7 @@ zip -r ~/Downloads/sonardesk-stylist-source.zip \
|
|||||||
'*/storage/framework/cache/*' \
|
'*/storage/framework/cache/*' \
|
||||||
'*/storage/framework/sessions/*' \
|
'*/storage/framework/sessions/*' \
|
||||||
'*/storage/framework/views/*'
|
'*/storage/framework/views/*'
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Export completed successfully."
|
||||||
|
ls -lh "$OUTPUT"
|
||||||
|
|||||||
Reference in New Issue
Block a user