Skip to content

Commit d7adb8c

Browse files
authored
Code sign app (#8285)
1 parent af36cb4 commit d7adb8c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/osx/xcode_project.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,13 @@ copy_binary() {
230230
echo "ERROR: Failed to copy the app"
231231
exit 1
232232
fi
233+
234+
if [ -z "${CODE_SIGN_IDENTITY}" ]; then
235+
echo "No CODE_SIGN_IDENTITY set. Unable to sign the app."
236+
exit 0
237+
fi
238+
echo "Current CODE_SIGN_IDENTITY: '${CODE_SIGN_IDENTITY}'"
239+
codesign --force --sign "${CODE_SIGN_IDENTITY}" "${APP_DEST}/${APP_NAME}"
233240
}
234241

235242
echo ''

0 commit comments

Comments
 (0)