Skip to content

Commit

Permalink
Merge pull request mas-cli#280 from mas-cli/build
Browse files Browse the repository at this point in the history
πŸ“œ Build workspace instead of project
  • Loading branch information
phatblat authored Jun 7, 2020
2 parents 35da5fd + f302009 commit 65a5380
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions script/build
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#

BUILD_DIR="$PWD/build"
PROJECT="mas-cli.xcodeproj"
WORKSPACE="mas.xcworkspace"
SCHEME="mas-cli Release"
CONFIG="Release"
VERSION=$(script/version)
Expand Down Expand Up @@ -43,7 +43,8 @@ main() {
build() {
echo "==> πŸ—οΈ Building mas ($VERSION)"
set -o pipefail && \
xcodebuild -project "$PROJECT" \
xcodebuild \
-workspace "$WORKSPACE" \
-scheme "$SCHEME" \
-configuration "$CONFIG" \
OBJROOT="$BUILD_DIR" \
Expand All @@ -55,7 +56,8 @@ build() {
archive() {
echo "==> πŸ“¦ Archiving mas ($VERSION)"
set -o pipefail && \
xcodebuild -project "$PROJECT" \
xcodebuild \
-workspace "$WORKSPACE" \
-scheme "$SCHEME" \
-configuration "$CONFIG" \
-archivePath "$BUILD_DIR/mas.xcarchive" \
Expand Down

0 comments on commit 65a5380

Please sign in to comment.