diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-11-06 20:49:54 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-11-06 20:49:54 +0100 |
commit | 31aebb33ae95557b1b8c0e746d7bb7c7e1ed0592 (patch) | |
tree | a259613fe8039f8a0e3153407fced9886a9e6388 /.ci | |
parent | Fix crash during calls (diff) | |
download | nheko-31aebb33ae95557b1b8c0e746d7bb7c7e1ed0592.tar.xz |
Fix macos builds with newer icu
Diffstat (limited to '.ci')
-rwxr-xr-x | .ci/macos/build.sh | 9 | ||||
-rwxr-xr-x | .ci/macos/notarize.sh | 6 |
2 files changed, 8 insertions, 7 deletions
diff --git a/.ci/macos/build.sh b/.ci/macos/build.sh index efc183e8..e4978231 100755 --- a/.ci/macos/build.sh +++ b/.ci/macos/build.sh @@ -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 diff --git a/.ci/macos/notarize.sh b/.ci/macos/notarize.sh index b5c83201..b0c05154 100755 --- a/.ci/macos/notarize.sh +++ b/.ci/macos/notarize.sh @@ -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 |