diff options
author | Joe Donofry <rubberduckie3554@gmail.com> | 2022-10-27 22:21:59 +0000 |
---|---|---|
committer | Joe Donofry <rubberduckie3554@gmail.com> | 2022-10-27 22:21:59 +0000 |
commit | 1d477dfc65c79511e012daf74cf02aac41b9c2ea (patch) | |
tree | 1600912418502998c2b176337cfbcec368e6454b /.ci/macos/build.sh | |
parent | fix blurry thumbnails (diff) | |
parent | Add support for Apple Silicon builds via Cirrus CI (diff) | |
download | nheko-1d477dfc65c79511e012daf74cf02aac41b9c2ea.tar.xz |
Merge branch 'cirrus_ci_apple_silicon' into 'master'
See merge request nheko-reborn/nheko!22
Diffstat (limited to '.ci/macos/build.sh')
-rwxr-xr-x | .ci/macos/build.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.ci/macos/build.sh b/.ci/macos/build.sh new file mode 100755 index 00000000..ef95181c --- /dev/null +++ b/.ci/macos/build.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env sh + +set -u + +# unused +#TAG=$(git tag -l --points-at HEAD) + +# Add Qt binaries to path +PATH="$(brew --prefix qt5):${PATH}" +export PATH + +CMAKE_PREFIX_PATH="$(brew --prefix qt5)" +export CMAKE_PREFIX_PATH + +cmake -GNinja -S. -Bbuild \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=.deps/usr \ + -DHUNTER_ROOT="../.hunter" \ + -DHUNTER_ENABLED=ON -DBUILD_SHARED_LIBS=OFF \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHUNTER_CONFIGURATION_TYPES=RelWithDebInfo \ + -DUSE_BUNDLED_OPENSSL=ON \ + -DCI_BUILD=ON +cmake --build build +( cd build || exit + git clone https://github.com/Nheko-Reborn/qt-jdenticon.git + ( cd qt-jdenticon || exit + qmake + make -j 4 + cp libqtjdenticon.dylib ../nheko.app/Contents/MacOS + ) + macdeployqt nheko.app -always-overwrite -qmldir=../resources/qml/ +) |