update script

This commit is contained in:
Brad Cimbura
2024-07-25 15:33:41 -05:00
parent d3feab8e04
commit e044c3fe45

View File

@@ -35,7 +35,14 @@ fi
# Create a ZIP file from the project directory
ZIP_NAME="package-$(date +%Y%m%d%H%M%S).zip"
zip -r $ZIP_NAME $PROJECT_DIR
#zip -r "$ZIP_NAME" "$PROJECT_DIR" -x "*vendor/*" || { echo "Failed to create ZIP file"; exit 1; }
# Change to the project directory
cd "$PROJECT_DIR" || { echo "Failed to enter project directory $PROJECT_DIR"; exit 1; }
# Use git archive to respect .gitignore and exclude .git
git archive --format=zip -o "../$ZIP_NAME" HEAD
cd ..
# Check if version is provided
if [ -z "$VERSION" ]; then