mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 11:33:13 +00:00
[build] Wrap long commands
This commit is contained in:
parent
281dcf084c
commit
e2ef2349c8
1 changed files with 12 additions and 2 deletions
14
script/build
14
script/build
|
@ -11,11 +11,21 @@ main() {
|
|||
}
|
||||
|
||||
build() {
|
||||
set -o pipefail && xcodebuild -project "mas-cli.xcodeproj" -scheme mas-cli -configuration Release clean build | xcpretty -c
|
||||
set -o pipefail && \
|
||||
xcodebuild -project "mas-cli.xcodeproj" \
|
||||
-scheme mas-cli \
|
||||
-configuration Release \
|
||||
clean build \
|
||||
| xcpretty -c
|
||||
}
|
||||
|
||||
archive() {
|
||||
set -o pipefail && xcodebuild -project "mas-cli.xcodeproj" -scheme mas-cli -archivePath mas.xcarchive archive | xcpretty -c
|
||||
set -o pipefail && \
|
||||
xcodebuild -project "mas-cli.xcodeproj" \
|
||||
-scheme mas-cli \
|
||||
-archivePath mas.xcarchive \
|
||||
archive \
|
||||
| xcpretty -c
|
||||
}
|
||||
|
||||
main
|
||||
|
|
Loading…
Reference in a new issue