mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
Cleanup
This commit is contained in:
parent
74ded3a077
commit
96f270c052
1 changed files with 19 additions and 19 deletions
|
|
@ -1,25 +1,25 @@
|
||||||
# This script re-signs all apps after CPack packages them. This is necessary because CPack modifies
|
# 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.
|
# the library references used by Cockatrice to App relative paths, invalidating the code signature.
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set(APPLICATIONS "cockatrice" "servatrice" "oracle" "dbconverter")
|
set(APPLICATIONS "cockatrice" "servatrice" "oracle" "dbconverter")
|
||||||
foreach(app_name IN LISTS APPLICATIONS)
|
foreach(app_name IN LISTS APPLICATIONS)
|
||||||
set(FULL_APP_PATH "${CPACK_TEMPORARY_INSTALL_DIRECTORY}/${app_name}.app")
|
set(FULL_APP_PATH "${CPACK_TEMPORARY_INSTALL_DIRECTORY}/${app_name}.app")
|
||||||
|
|
||||||
message(STATUS "Signing Interior Dynamically Loaded Libraries for ${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)
|
execute_process(COMMAND "find" "${FULL_APP_PATH}" "-name" "*.dylib" OUTPUT_VARIABLE INTERIOR_DLLS)
|
||||||
string(REPLACE "\n" ";" INTERIOR_DLLS_LIST ${INTERIOR_DLLS})
|
string(REPLACE "\n" ";" INTERIOR_DLLS_LIST ${INTERIOR_DLLS})
|
||||||
|
|
||||||
foreach(INTERIOR_DLL IN LISTS INTERIOR_DLLS_LIST)
|
foreach(INTERIOR_DLL IN LISTS INTERIOR_DLLS_LIST)
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND "codesign" "--sign" "$ENV{MACOS_CERTIFICATE_NAME}" "--entitlements" ".ci/macos.entitlements"
|
COMMAND "codesign" "--sign" "$ENV{MACOS_CERTIFICATE_NAME}" "--entitlements" ".ci/macos.entitlements"
|
||||||
"--options" "runtime" "--force" "--deep" "--timestamp" "--verbose" "${INTERIOR_DLL}"
|
"--options" "runtime" "--force" "--deep" "--timestamp" "--verbose" "${INTERIOR_DLL}"
|
||||||
)
|
)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
message(STATUS "Signing Exterior Applications ${app_name}.app")
|
message(STATUS "Signing Exterior Applications ${app_name}.app")
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND "codesign" "--sign" "$ENV{MACOS_CERTIFICATE_NAME}" "--entitlements" ".ci/macos.entitlements" "--options"
|
COMMAND "codesign" "--sign" "$ENV{MACOS_CERTIFICATE_NAME}" "--entitlements" ".ci/macos.entitlements" "--options"
|
||||||
"runtime" "--force" "--deep" "--timestamp" "--verbose" "${FULL_APP_PATH}"
|
"runtime" "--force" "--deep" "--timestamp" "--verbose" "${FULL_APP_PATH}"
|
||||||
)
|
)
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue