mirror of
https://github.com/mas-cli/mas
synced 2024-11-28 22:40:24 +00:00
26 lines
460 B
Bash
Executable file
26 lines
460 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
|