-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathArchive.sh
More file actions
executable file
·18 lines (14 loc) · 803 Bytes
/
Archive.sh
File metadata and controls
executable file
·18 lines (14 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/zsh
PROJECT_PATH="/Users/tajc/Library/Mobile Documents/com~apple~CloudDocs/Projects/Programming/Applications/Focustomize/Focustomize.xcodeproj"
ARCHIVE_PATH="/tmp/Focustomize.xcarchive"
APP_PATH="~/Downloads/Focustomize.app"
ZIP_PATH="~/Downloads/Focustomize.zip"
echo "Building Focustomize for Archival, please wait..."
# Build the project, skip code signing, and archive it
xcodebuild -project "$PROJECT_PATH" -scheme Focustomize -configuration Release -archivePath "$ARCHIVE_PATH" CODE_SIGN_STYLE=Manual archive
echo "Finishing up..."
# Copy the .app to Downloads and zip it
cp -R "$ARCHIVE_PATH/Products/Applications/Focustomize.app" "$APP_PATH"
rm -f "$ZIP_PATH" # Remove any existing Focustomize.zip
zip -r "$ZIP_PATH" "$APP_PATH"
echo "Done! Focustomize.app is ready for distribution!"