mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 03:58:49 +03:00
34 lines
821 B
Bash
Executable file
34 lines
821 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
set -ex
|
|
|
|
# unused
|
|
#TAG=$(git tag -l --points-at HEAD)
|
|
|
|
# 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 ..
|
|
)
|
|
|
|
dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg
|
|
|
|
if [ -n "$VERSION" ]; then
|
|
mv nheko.dmg "nheko-${VERSION}.dmg"
|
|
fi
|
|
|
|
if [ -n "$ARTIFACT_STAGING_DIRECTORY" ]; then
|
|
cp "nheko-${VERSION}.dmg" "${ARTIFACT_STAGING_DIRECTORY}"
|
|
fi
|