File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 env :
6161 CODE_SIGN_IDENTITY : ${{ secrets.CODE_SIGN_IDENTITY }}
6262 TEAM_ID : ${{ secrets.TEAM_ID }}
63+ KEYCHAIN_NAME : ${{ env.KEYCHAIN_NAME }}
6364 run : |
6465 chmod +x Scripts/build-dmg.sh
6566 ./Scripts/build-dmg.sh
Original file line number Diff line number Diff line change @@ -52,6 +52,13 @@ if [[ "$SKIP_BUILD" == false ]]; then
5252 # Use Developer ID signing if available (CI), otherwise ad-hoc for local dev
5353 if [[ -n " ${CODE_SIGN_IDENTITY:- } " && -n " ${TEAM_ID:- } " ]]; then
5454 echo " 🔐 Code signing with: ${CODE_SIGN_IDENTITY} "
55+
56+ # Determine keychain flags (CI uses a temporary keychain)
57+ KEYCHAIN_FLAGS=" "
58+ if [[ -n " ${KEYCHAIN_NAME:- } " ]]; then
59+ KEYCHAIN_FLAGS=" --keychain ${KEYCHAIN_NAME} "
60+ fi
61+
5562 xcodebuild \
5663 -scheme " $SCHEME " \
5764 -configuration " $CONFIG " \
@@ -61,7 +68,10 @@ if [[ "$SKIP_BUILD" == false ]]; then
6168 CODE_SIGN_IDENTITY=" ${CODE_SIGN_IDENTITY} " \
6269 DEVELOPMENT_TEAM=" ${TEAM_ID} " \
6370 CODE_SIGN_STYLE=" Manual" \
64- clean build 2>&1 | tail -3
71+ PROVISIONING_PROFILE_SPECIFIER=" " \
72+ ENABLE_HARDENED_RUNTIME=YES \
73+ OTHER_CODE_SIGN_FLAGS=" ${KEYCHAIN_FLAGS} " \
74+ clean build
6575 else
6676 echo " ⚠️ No signing identity — using ad-hoc signature (local dev)"
6777 xcodebuild \
You can’t perform that action at this time.
0 commit comments