matrixion/.ci/macos/build.sh

33 lines
794 B
Bash
Raw Normal View History

#!/usr/bin/env sh
2023-05-09 00:54:45 +03:00
set -ue
# 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 \
2023-05-29 20:18:55 +03:00
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=.deps/usr \
-DHUNTER_ROOT="../.hunter" \
-DHUNTER_ENABLED=ON -DBUILD_SHARED_LIBS=OFF \
2023-05-29 20:18:55 +03:00
-DHUNTER_CONFIGURATION_TYPES=Debug \
-DUSE_BUNDLED_OPENSSL=ON \
-DCI_BUILD=ON
cmake --build build
2023-05-09 00:54:45 +03:00
( cd build
git clone https://github.com/Nheko-Reborn/qt-jdenticon.git
2023-05-09 00:54:45 +03:00
( cd qt-jdenticon
qmake
make -j 4
cp libqtjdenticon.dylib ../nheko.app/Contents/MacOS
)
2022-10-28 17:13:41 +03:00
"$(brew --prefix qt5)/bin/macdeployqt" nheko.app -always-overwrite -qmldir=../resources/qml/
)