build: Don't re-sign macOS bundle unless requested
This commit is contained in:
parent
959a404e1c
commit
a80f9e9ca7
@ -261,11 +261,14 @@ macro(createPackage)
|
|||||||
set(CPACK_BUNDLE_ICON "${CMAKE_SOURCE_DIR}/resources/dist/macos/AppIcon.icns")
|
set(CPACK_BUNDLE_ICON "${CMAKE_SOURCE_DIR}/resources/dist/macos/AppIcon.icns")
|
||||||
set(CPACK_BUNDLE_PLIST "${CMAKE_BINARY_DIR}/${BUNDLE_NAME}/Contents/Info.plist")
|
set(CPACK_BUNDLE_PLIST "${CMAKE_BINARY_DIR}/${BUNDLE_NAME}/Contents/Info.plist")
|
||||||
|
|
||||||
|
if (IMHEX_RESIGN_BUNDLE)
|
||||||
|
message(STATUS "Resigning bundle...")
|
||||||
find_program(CODESIGN_PATH codesign)
|
find_program(CODESIGN_PATH codesign)
|
||||||
if (CODESIGN_PATH)
|
if (CODESIGN_PATH)
|
||||||
add_custom_command(TARGET imhex_all POST_BUILD COMMAND "codesign" ARGS "--force" "--deep" "--sign" "-" "${CMAKE_BINARY_DIR}/${BUNDLE_NAME}")
|
add_custom_command(TARGET imhex_all POST_BUILD COMMAND "codesign" ARGS "--force" "--deep" "--sign" "-" "${CMAKE_BINARY_DIR}/${BUNDLE_NAME}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
install(TARGETS main RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
install(TARGETS main RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
if (TARGET updater)
|
if (TARGET updater)
|
||||||
|
Loading…
Reference in New Issue
Block a user