Merge pull request #280 from mas-cli/build

📜 Build workspace instead of project
This commit is contained in:
Ben Chatelain 2020-06-07 13:21:47 -06:00 committed by GitHub
commit 65a5380e92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@
#
BUILD_DIR="$PWD/build"
PROJECT="mas-cli.xcodeproj"
WORKSPACE="mas.xcworkspace"
SCHEME="mas-cli Release"
CONFIG="Release"
VERSION=$(script/version)
@ -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" \
@ -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" \