mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
rbutilqt: Add a CODESIGN_IDENTITY CMake variable for macOS builds
It can be used to choose which Apple Developer ID to use when signing the build of the Qt apps. By default, it uses ad-hoc signing, i.e. no Apple Developer ID is needed. Change-Id: I5634e318f4949107eb954b729b2f8f1d60fad115
This commit is contained in:
parent
e0bbf8f9da
commit
115b2ae800
1 changed files with 3 additions and 1 deletions
|
|
@ -94,6 +94,8 @@ endif()
|
|||
|
||||
# MacOS: Build dmg
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
set(CODESIGN_IDENTITY "-" CACHE STRING
|
||||
"Code signing identity to use for macOS signing")
|
||||
set(DMGBUILD_STAMP ${CMAKE_BINARY_DIR}/dmgbuild.stamp)
|
||||
add_custom_command(
|
||||
COMMENT "Setting up dmgbuild virtualenv"
|
||||
|
|
@ -139,7 +141,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
|||
COMMENT "Running macdeployqt and creating dmg ${deploy_TARGET}"
|
||||
COMMAND ${MACDEPLOYQT_EXECUTABLE} ${deploy_TARGET}.app
|
||||
|
||||
COMMAND codesign --force --deep --sign - ${deploy_TARGET}.app
|
||||
COMMAND codesign --force --deep --sign "${CODESIGN_IDENTITY}" ${deploy_TARGET}.app
|
||||
|
||||
COMMAND ${DMGBUILD} -s ${deploy_DMGBUILDCFG}
|
||||
-Dappbundle=${deploy_TARGET}.app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue