mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 09:22:15 -07:00
Try something else... closer maybe?
This commit is contained in:
parent
eca65cd1e4
commit
2c5f92c5c4
3 changed files with 27 additions and 4 deletions
22
cmake/SignMacApplications.cmake
Normal file
22
cmake/SignMacApplications.cmake
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# This script re-signs all apps after CPack packages them. This is necessary because CPack modifies
|
||||
# the library references used by Cockatrice to App relative paths, invalidating the code signature.
|
||||
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")
|
||||
execute_process(COMMAND
|
||||
"codesign"
|
||||
"--sign"
|
||||
"Developer ID Application: Zachary Halpern (STKV3NKYBF)"
|
||||
"--entitlements"
|
||||
"../.ci/macos.entitlements"
|
||||
"--options"
|
||||
"runtime"
|
||||
"--force"
|
||||
"--deep"
|
||||
"--timestamp"
|
||||
"--verbose"
|
||||
"${FULL_APP_PATH}")
|
||||
endforeach()
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue