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:
parent
4e997b71de
commit
5b83667aba
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user