mirror of https://github.com/Nheko-Reborn/nheko
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
369 B
21 lines
369 B
#!/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
|
|
|