Move OSX deployment target to toolchain file for hunter; add codesign debug

cirrus_ci_apple_silicon
Joseph Donofry 2 years ago
parent 5244952b83
commit 1fa21af38e
No known key found for this signature in database
GPG Key ID: E8A1D78EF044B0CB
  1. 3
      .ci/macos/build.sh
  2. 3
      .ci/macos/notarize.sh
  3. 1
      toolchain.cmake

@ -19,8 +19,7 @@ cmake -GNinja -S. -Bbuild \
-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
-DCI_BUILD=ON
cmake --build build
( cd build || exit
git clone https://github.com/Nheko-Reborn/qt-jdenticon.git

@ -41,6 +41,7 @@ find "build/nheko.app/Contents"|while read -r fname; do
done
codesign --force --timestamp --options=runtime --sign "${APPLE_DEV_IDENTITY}" "build/nheko.app"
codesign -vvv --deep --strict "build/nheko.app"
NOTARIZE_SUBMIT_LOG=$(mktemp /tmp/notarize-submit.XXXXXX)
NOTARIZE_STATUS_LOG=$(mktemp /tmp/notarize-status.XXXXXX)
@ -52,6 +53,8 @@ trap finish EXIT
dmgbuild -s .ci/macos/settings.json "Nheko" nheko.dmg
codesign -s "${APPLE_DEV_IDENTITY}" nheko.dmg
codesign -vvv --deep --strict nheko.dmg
user=$(id -nu)
chown "${user}" nheko.dmg

@ -1,3 +1,4 @@
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15)
Loading…
Cancel
Save