Fix macos builds with newer icu

pull/1614/head
Nicolas Werner 1 year ago
parent 63a2d4b4bb
commit 31aebb33ae
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 9
      .ci/macos/build.sh
  2. 6
      .ci/macos/notarize.sh
  3. 5
      .cirrus.yml
  4. 3
      .gitlab-ci.yml

@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
set -ue
@ -6,10 +6,11 @@ set -ue
#TAG=$(git tag -l --points-at HEAD)
# Add Qt binaries to path
PATH="${HOME}/Qt/6.5.1/macos/bin/:${PATH}"
QT_BASEPATH=(${HOME}/Qt/6.*/macos/)
PATH="${QT_BASEPATH}/bin/:${PATH}"
export PATH
CMAKE_PREFIX_PATH="${HOME}/Qt/6.5.1/macos/lib/cmake"
CMAKE_PREFIX_PATH="${QT_BASEPATH}/lib/cmake"
export CMAKE_PREFIX_PATH
cmake -GNinja -S. -Bbuild \
@ -19,7 +20,7 @@ cmake -GNinja -S. -Bbuild \
-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 \
-DQt6_DIR=${QT_BASEPATH}/lib/cmake \
-DCI_BUILD=ON
cmake --build build
cmake --install build

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -u
@ -6,8 +6,8 @@ set -u
# https://forum.qt.io/topic/96652/how-to-notarize-qt-application-on-macos/18
# Add Qt binaries to path
PATH="${HOME}/Qt/6.5.1/macos/bin/:${PATH}"
export PATH
export QTPATH=(${PATH}/Qt/6.*/macos/bin)
export PATH=${QTPATH}:${PATH}
security unlock-keychain -p "${RUNNER_USER_PW}" login.keychain

@ -12,9 +12,10 @@ task:
aqt_script:
- pip3 install aqtinstall
- mkdir $HOME/Qt
- aqt install-qt --outputdir $HOME/qt mac desktop 6.5.1 clang_64 -m all
- aqt install-qt --outputdir $HOME/qt mac desktop 6 clang_64 -m all
build_script:
- export PATH="${HOME}/Qt/6.5.1/macos/bin:${PATH}"
- export QTPATH=($HOME/qt/6.*/macos/bin)
- export PATH="$QTPATH:${PATH}"
- ./.ci/macos/build.sh
zip_script:
- ditto -c -k --sequesterRsrc --keepParent nheko.app nheko.zip

@ -173,7 +173,8 @@ codesign-macos:
before_script:
- pip3 install dmgbuild
script:
- export PATH=/Users/jdonof/Qt/6.5.1/macos/bin:${PATH}
- export QTPATH=(/Users/jdonof/Qt/6.*/macos/bin)
- export PATH=${QTPATH}:${PATH}
- ./.ci/macos/notarize.sh
after_script:
- ./.ci/upload-nightly-gitlab.sh artifacts/nheko-${CI_COMMIT_SHORT_SHA}-${PLAT}.dmg

Loading…
Cancel
Save