mirror of
https://github.com/mas-cli/mas
synced 2024-11-24 20:43:10 +00:00
Merge pull request #280 from mas-cli/build
📜 Build workspace instead of project
This commit is contained in:
commit
65a5380e92
1 changed files with 5 additions and 3 deletions
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue