2022-11-16 21:24:29 +00:00
|
|
|
if (APPLE AND KICAD_OSX_CODESIGN )
|
|
|
|
install( CODE "
|
2023-08-08 16:49:39 +00:00
|
|
|
include( ${KICAD_CMAKE_MODULE_PATH}/InstallSteps/SignMacOS.cmake )
|
|
|
|
|
|
|
|
# InstallMacOS.cmake pulls in all the dynamic dependencies of Python into the Python framework dir.
|
|
|
|
# We don't want this because it makes signing fail, and they are not needed either.
|
|
|
|
# I can't figure out how to keep it from happening, so for now, just clean them up
|
|
|
|
message( STATUS \"Cleaning up Python.framework...\" )
|
|
|
|
file( GLOB _PYTHON_TO_REMOVE ${OSX_BUNDLE_INSTALL_LIB_DIR}/Python.framework/* )
|
|
|
|
file( REMOVE \${_PYTHON_TO_REMOVE} )
|
2022-11-16 21:24:29 +00:00
|
|
|
|
|
|
|
message( STATUS \"Signing bundles...\" )
|
|
|
|
sign_kicad_bundle( \"${OSX_BUNDLE_INSTALL_DIR}\" \"\${KICAD_OSX_SIGNING_ID}\" \"\${KICAD_OSX_SIGNING_USE_SECURE_TIMESTAMP}\" \"\${KICAD_OSX_SIGNING_USE_HARDENED_RUNTIME}\" \"\${KICAD_OSX_SIGNING_ENTITLEMENTS_FILE}\" )
|
|
|
|
" COMPONENT Runtime )
|
|
|
|
endif()
|