build: Remove manual macOS code signing again

This commit is contained in:
Nik 2024-01-05 12:39:19 +01:00 committed by GitHub
parent 0627b36bf6
commit a82fdcca4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,12 +255,6 @@ macro(createPackage)
set(CPACK_BUNDLE_ICON "${CMAKE_SOURCE_DIR}/resources/dist/macos/AppIcon.icns")
set(CPACK_BUNDLE_PLIST "${CMAKE_BINARY_DIR}/${BUNDLE_NAME}/Contents/Info.plist")
# Sign the bundle
find_program(CODESIGN_PATH codesign)
if (CODESIGN_PATH)
add_custom_command(TARGET imhex_all POST_BUILD COMMAND ${CODESIGN_PATH} --force --deep --sign - ${CMAKE_BINARY_DIR}/${BUNDLE_NAME})
endif()
endif()
else()
install(TARGETS main RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})