1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(build): add sha256sum for MacOS deployments

This commit is contained in:
sudden6 2019-01-18 15:00:35 +01:00
parent 4e997b71de
commit 5b83667aba
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
2 changed files with 8 additions and 1 deletions

View File

@ -152,6 +152,7 @@ deploy:
api_key:
secure: "BRbzTWRvadALRQSTihMKruOj64ydxusMUS9FQR//qFlS345ZYfYta43W//4LcWWDKtj6IvA6DRqNdabgWnpbpxpnm9gVftGUdOKlU3niPZhwsMkB2M12QHUnAP6DVOfGPvdciBV+6mu73SSxniEcrYjZ1CrRX7mknmehPpVKxNk="
file: "./qTox.dmg"
file: "./qTox.dmg.sha256"
on:
condition: $TRAVIS_OS_NAME == osx
repo: qTox/qTox

View File

@ -19,6 +19,8 @@
# Fail out on error
set -eu -o pipefail
readonly BIN_NAME="qTox.dmg"
# accelerate builds with ccache
install_ccache() {
# manually update even though `install` will already update, due to bug:
@ -40,7 +42,6 @@ build() {
# check if binary was built
check() {
local BIN_NAME="qTox.dmg"
if [[ ! -s "$BIN_NAME" ]]
then
echo "There's no $BIN_NAME !"
@ -48,9 +49,14 @@ check() {
fi
}
make_hash() {
shasum -a 256 "$BIN_NAME" > "$BIN_NAME".sha256
}
main() {
install_ccache
build
check
make_hash
}
main