blob: efc183e815d08354a7a507e3a22be9b1241527d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/usr/bin/env sh
set -ue
# unused
#TAG=$(git tag -l --points-at HEAD)
# Add Qt binaries to path
PATH="${HOME}/Qt/6.5.1/macos/bin/:${PATH}"
export PATH
CMAKE_PREFIX_PATH="${HOME}/Qt/6.5.1/macos/lib/cmake"
export CMAKE_PREFIX_PATH
cmake -GNinja -S. -Bbuild \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX="nheko.temp" \
-DHUNTER_ROOT="../.hunter" \
-DHUNTER_ENABLED=ON -DBUILD_SHARED_LIBS=OFF \
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DHUNTER_CONFIGURATION_TYPES=RelWithDebInfo \
-DUSE_BUNDLED_OPENSSL=ON \
-DQt6_DIR=${HOME}/Qt/6.5.1/macos/lib/cmake \
-DCI_BUILD=ON
cmake --build build
cmake --install build
( cd build
git clone https://github.com/Nheko-Reborn/qt-jdenticon.git
( cd qt-jdenticon
qmake
make -j 4
cp libqtjdenticon.dylib ../../nheko.temp/nheko.app/Contents/MacOS
)
# "$(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
)
mv nheko.temp/nheko.app nheko.app
|