forked from mirror/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.
29 lines
671 B
29 lines
671 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
|
|
|
|
# macdeployqt does not copy symlinks over.
|
|
# this specifically addresses icu4c issues but nothing else.
|
|
export ICU_LIB="$(brew --prefix icu4c)/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 ..
|
|
popd
|
|
|
|
dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg
|
|
|
|
if [ ! -z $VERSION ]; then
|
|
mv nheko.dmg nheko-${VERSION}.dmg
|
|
fi
|
|
|