2022-10-25 02:28:52 +03:00
|
|
|
#!/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 \
|
|
|
|
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
|
|
|
|
cmake --build build
|
|
|
|
( cd build || exit
|
|
|
|
git clone https://github.com/Nheko-Reborn/qt-jdenticon.git
|
2022-10-25 03:32:43 +03:00
|
|
|
( cd qt-jdenticon || exit
|
|
|
|
qmake
|
|
|
|
make -j 4
|
|
|
|
cp libqtjdenticon.dylib ../nheko.app/Contents/MacOS
|
|
|
|
)
|
2022-10-25 02:47:20 +03:00
|
|
|
macdeployqt nheko.app -always-overwrite -qmldir=../resources/qml/
|
2022-10-25 02:28:52 +03:00
|
|
|
)
|