2019-01-03 15:30:33 -08:00
|
|
|
#!/bin/bash -e
|
2019-01-18 21:37:51 -07:00
|
|
|
#
|
|
|
|
# script/archive
|
|
|
|
# mas
|
|
|
|
#
|
|
|
|
# Compresses artifacts so the can be archived more easily.
|
|
|
|
#
|
2018-10-16 21:45:07 -06:00
|
|
|
|
|
|
|
pushd build
|
|
|
|
|
|
|
|
echo "==> 🗜️ Compressing mas.xcarchive"
|
|
|
|
zip -r mas.xcarchive.zip mas.xcarchive
|
|
|
|
|
|
|
|
echo "==> ️🗜️ Compressing binary and framework"
|
|
|
|
pushd mas.xcarchive/Products
|
|
|
|
zip -r \
|
2021-03-21 16:50:09 -07:00
|
|
|
mas-cli.zip \
|
|
|
|
bin/mas \
|
|
|
|
Frameworks/MasKit.framework
|
2018-10-16 21:45:07 -06:00
|
|
|
mv mas-cli.zip ../../
|
|
|
|
popd
|
|
|
|
|
|
|
|
echo "==> 🔢 Files Hashes"
|
|
|
|
shasum -a 256 mas-cli.zip mas.xcarchive.zip
|
|
|
|
|
|
|
|
popd
|