mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02:15 -07:00
Signing seems to work?
This commit is contained in:
parent
2c5f92c5c4
commit
c4abfc9183
3 changed files with 84 additions and 132 deletions
|
|
@ -4,11 +4,38 @@ if(APPLE)
|
|||
set(APPLICATIONS "cockatrice" "servatrice" "oracle" "dbconverter")
|
||||
foreach(app_name IN LISTS APPLICATIONS)
|
||||
set(FULL_APP_PATH "${CPACK_TEMPORARY_INSTALL_DIRECTORY}/${app_name}.app")
|
||||
message(STATUS "Re-signing ${app_name}.app")
|
||||
|
||||
message(STATUS "Signing Interior Dynamically Loaded Libraries for ${app_name}.app")
|
||||
execute_process(COMMAND
|
||||
"find"
|
||||
"${FULL_APP_PATH}"
|
||||
"-name"
|
||||
"*.dylib"
|
||||
OUTPUT_VARIABLE
|
||||
INTERIOR_DLLS)
|
||||
string(REPLACE "\n" ";" INTERIOR_DLLS_LIST ${INTERIOR_DLLS})
|
||||
|
||||
foreach(INTERIOR_DLL IN LISTS INTERIOR_DLLS_LIST)
|
||||
execute_process(COMMAND
|
||||
"codesign"
|
||||
"--sign"
|
||||
"$ENV{MACOS_CERTIFICATE}"
|
||||
"--entitlements"
|
||||
"../.ci/macos.entitlements"
|
||||
"--options"
|
||||
"runtime"
|
||||
"--force"
|
||||
"--deep"
|
||||
"--timestamp"
|
||||
"--verbose"
|
||||
"${INTERIOR_DLL}")
|
||||
endforeach()
|
||||
|
||||
message(STATUS "Signing Exterior Applications ${app_name}.app")
|
||||
execute_process(COMMAND
|
||||
"codesign"
|
||||
"--sign"
|
||||
"Developer ID Application: Zachary Halpern (STKV3NKYBF)"
|
||||
"$ENV{MACOS_CERTIFICATE}"
|
||||
"--entitlements"
|
||||
"../.ci/macos.entitlements"
|
||||
"--options"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue