matrixion/.ci/macos/deploy.sh

22 lines
369 B
Bash
Raw Normal View History

2017-11-05 20:14:52 +03:00
#!/usr/bin/env bash
2018-01-13 15:59:48 +03:00
set -ex
2017-11-05 20:14:52 +03:00
TAG=`git tag -l --points-at HEAD`
2017-11-05 21:07:14 +03:00
# Add Qt binaries to path
PATH=/usr/local/opt/qt/bin/:${PATH}
2018-04-28 17:28:26 +03:00
pushd build
sudo macdeployqt nheko.app -dmg
2017-11-05 20:14:52 +03:00
user=$(id -nu)
2018-04-28 17:28:26 +03:00
sudo chown ${user} nheko.dmg
mv nheko.dmg ..
popd
dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg
2018-06-17 16:53:14 +03:00
if [ ! -z $TRAVIS_TAG ]; then
mv nheko.dmg nheko-${TRAVIS_TAG}.dmg
fi