2022-10-28 01:21:58 +03:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
2023-05-09 00:54:45 +03:00
|
|
|
set -ue
|
2022-10-28 01:21:58 +03:00
|
|
|
|
|
|
|
# unused
|
|
|
|
#TAG=$(git tag -l --points-at HEAD)
|
|
|
|
|
|
|
|
# Add Qt binaries to path
|
2023-06-09 04:13:41 +03:00
|
|
|
PATH="$(brew --prefix qt6)/bin/:${PATH}"
|
2022-10-28 01:21:58 +03:00
|
|
|
export PATH
|
|
|
|
|
2023-06-09 02:51:11 +03:00
|
|
|
CMAKE_PREFIX_PATH="$(brew --prefix qt6)"
|
2022-10-28 01:21:58 +03:00
|
|
|
export CMAKE_PREFIX_PATH
|
|
|
|
|
|
|
|
cmake -GNinja -S. -Bbuild \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
2023-06-16 02:49:47 +03:00
|
|
|
-DCMAKE_INSTALL_PREFIX="nheko.app" \
|
2022-10-28 01:21:58 +03:00
|
|
|
-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
|
2023-05-09 00:54:45 +03:00
|
|
|
( cd build
|
2022-10-28 01:21:58 +03:00
|
|
|
git clone https://github.com/Nheko-Reborn/qt-jdenticon.git
|
2023-05-09 00:54:45 +03:00
|
|
|
( cd qt-jdenticon
|
2022-10-28 01:21:58 +03:00
|
|
|
qmake
|
|
|
|
make -j 4
|
|
|
|
cp libqtjdenticon.dylib ../nheko.app/Contents/MacOS
|
|
|
|
)
|
2023-06-16 02:08:22 +03:00
|
|
|
# "$(brew --prefix qt6)/bin/macdeployqt" nheko.app -always-overwrite -qmldir=../resources/qml/
|
|
|
|
# # workaround for https://bugreports.qt.io/browse/QTBUG-100686
|
|
|
|
# cp "$(brew --prefix brotli)/lib/libbrotlicommon.1.dylib" nheko.app/Contents/Frameworks/libbrotlicommon.1.dylib
|
2023-06-16 02:49:47 +03:00
|
|
|
cmake --install .
|
2022-10-28 01:21:58 +03:00
|
|
|
)
|