mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 11:33:13 +00:00
Package binaries for release on Travis
This commit is contained in:
parent
c9e899544e
commit
cabf18410b
4 changed files with 20 additions and 0 deletions
|
@ -13,3 +13,6 @@ install:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- bash script/build
|
- bash script/build
|
||||||
|
|
||||||
|
before_deploy:
|
||||||
|
- bash script/package
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
script/clean
|
||||||
build
|
build
|
||||||
|
|
||||||
# If this is a tagged build we are going to relase
|
# If this is a tagged build we are going to relase
|
||||||
|
|
9
script/clean
Executable file
9
script/clean
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
main() {
|
||||||
|
rm -rf mas.xcarchive
|
||||||
|
rm -f mas.xcarchive.zip
|
||||||
|
rm -f mas-cli.zip
|
||||||
|
}
|
||||||
|
|
||||||
|
main
|
7
script/package
Executable file
7
script/package
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash -x
|
||||||
|
|
||||||
|
echo "==> Compressing mas.xcarchive"
|
||||||
|
zip -r mas.xcarchive.zip mas.xcarchive
|
||||||
|
|
||||||
|
echo "==> Compressing binary"
|
||||||
|
zip mas-cli.zip mas.xcarchive/Products/usr/local/bin/mas-cli
|
Loading…
Reference in a new issue