matrixion/.ci/macos/deploy.sh

31 lines
710 B
Bash
Raw Normal View History

#!/usr/bin/env sh
2017-11-05 20:14:52 +03:00
set -eux
2017-11-05 20:14:52 +03:00
# unused
#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}
( cd build
# macdeployqt does not copy symlinks over.
# this specifically addresses icu4c issues but nothing else.
ICU_LIB="$(brew --prefix icu4c)/lib"
export ICU_LIB
mkdir -p nheko.app/Contents/Frameworks
find "${ICU_LIB}" -type l -name "*.dylib" -exec cp -a -n {} nheko.app/Contents/Frameworks/ \; || true
sudo macdeployqt nheko.app -dmg -always-overwrite
user=$(id -nu)
sudo chown "${user}" nheko.dmg
mv nheko.dmg ..
)
2018-04-28 17:28:26 +03:00
dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg
2018-06-17 16:53:14 +03:00
2019-05-18 07:05:51 +03:00
if [ -n "$VERSION" ]; then
mv nheko.dmg "nheko-${VERSION}.dmg"
2018-06-17 16:53:14 +03:00
fi