mas/script/archive
2019-01-18 21:37:51 -07:00

26 lines
466 B
Bash
Executable file

#!/bin/bash -e
#
# script/archive
# mas
#
# Compresses artifacts so the can be archived more easily.
#
pushd build
echo "==> 🗜️ Compressing mas.xcarchive"
zip -r mas.xcarchive.zip mas.xcarchive
echo "==> ️🗜️ Compressing binary and framework"
pushd mas.xcarchive/Products
zip -r \
mas-cli.zip \
bin/mas \
Frameworks/MasKit.framework
mv mas-cli.zip ../../
popd
echo "==> 🔢 Files Hashes"
shasum -a 256 mas-cli.zip mas.xcarchive.zip
popd