matrixion/.ci/macos/deploy.sh
Konstantinos Sideris d081fe9b9e Setup BinTray
2018-06-17 16:53:14 +03:00

21 lines
369 B
Bash
Executable file

#!/usr/bin/env bash
set -ex
TAG=`git tag -l --points-at HEAD`
# Add Qt binaries to path
PATH=/usr/local/opt/qt/bin/:${PATH}
pushd build
sudo macdeployqt nheko.app -dmg
user=$(id -nu)
sudo chown ${user} nheko.dmg
mv nheko.dmg ..
popd
dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg
if [ ! -z $TRAVIS_TAG ]; then
mv nheko.dmg nheko-${TRAVIS_TAG}.dmg
fi