cmake: Fix mac app zip + misc..
Remove keychain unlock for codesigning, that doesn't work anymore, the key has to be in the system keychain. Use `zip -9yr` instead of `zip -9r` to make the .zip file of the .app so that symlinks are preserved, this was creating a corrupted .app. Don't build zip in the mac builder, use the system zip instead. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
parent
eaf4785915
commit
ab68794361
|
@ -1202,35 +1202,25 @@ if(APPLE AND (UPSTREAM_RELEASE OR ENABLE_ONLINEUPDATES))
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(DEFINED ENV{LOGIN_KEYCHAIN_PASSWORD})
|
add_custom_command(
|
||||||
add_custom_command(
|
TARGET visualboyadvance-m
|
||||||
TARGET visualboyadvance-m
|
POST_BUILD
|
||||||
POST_BUILD
|
COMMAND codesign --sign "Developer ID Application" --force --deep ./visualboyadvance-m.app
|
||||||
COMMAND /bin/sh -c "security unlock-keychain -p \"$$LOGIN_KEYCHAIN_PASSWORD\" ~/Library/Keychains/login.keychain*"
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_command(
|
if(EXISTS ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Frameworks)
|
||||||
TARGET visualboyadvance-m
|
# Sign frameworks individually, like Xcode.
|
||||||
POST_BUILD
|
file(GLOB frameworks ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Frameworks/*)
|
||||||
COMMAND codesign --sign "Developer ID Application" --force --deep ./visualboyadvance-m.app
|
foreach(framework ${frameworks})
|
||||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
message(STATUS "Signing framework: " ${framework})
|
||||||
)
|
add_custom_command(
|
||||||
|
TARGET visualboyadvance-m
|
||||||
if(EXISTS ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Frameworks)
|
POST_BUILD
|
||||||
# Sign frameworks individually, like Xcode.
|
COMMAND codesign --sign "Developer ID Application" --force ${framework}
|
||||||
file(GLOB frameworks ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Frameworks/*)
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||||
foreach(framework ${frameworks})
|
)
|
||||||
message(STATUS "Signing framework: " ${framework})
|
endforeach()
|
||||||
add_custom_command(
|
|
||||||
TARGET visualboyadvance-m
|
|
||||||
POST_BUILD
|
|
||||||
COMMAND codesign --sign "Developer ID Application" --force ${framework}
|
|
||||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
|
||||||
)
|
|
||||||
endforeach()
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
message(WARNING "Set the environment variable LOGIN_KEYCHAIN_PASSWORD to your login keychain password to codesign.")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(UPSTREAM_RELEASE)
|
if(UPSTREAM_RELEASE)
|
||||||
|
@ -1240,7 +1230,7 @@ if(APPLE AND (UPSTREAM_RELEASE OR ENABLE_ONLINEUPDATES))
|
||||||
TARGET visualboyadvance-m
|
TARGET visualboyadvance-m
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E remove ${appzip}
|
COMMAND ${CMAKE_COMMAND} -E remove ${appzip}
|
||||||
COMMAND ${ZIP_PROGRAM} -9r ${appzip} ./visualboyadvance-m.app
|
COMMAND ${ZIP_PROGRAM} -9yr ${appzip} ./visualboyadvance-m.app
|
||||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -65,10 +65,9 @@ fi
|
||||||
|
|
||||||
. "$(dirname "$0")/../builder/core.sh"
|
. "$(dirname "$0")/../builder/core.sh"
|
||||||
|
|
||||||
table_line_remove DISTS flex
|
for dist in flex libsecret c2man graphviz zip; do
|
||||||
table_line_remove DISTS libsecret
|
table_line_remove DISTS "$dist"
|
||||||
table_line_remove DISTS c2man
|
done
|
||||||
table_line_remove DISTS graphviz
|
|
||||||
|
|
||||||
# issues with perl modules linked to our libs and brew perl
|
# issues with perl modules linked to our libs and brew perl
|
||||||
table_line_remove DISTS shared-mime-info
|
table_line_remove DISTS shared-mime-info
|
||||||
|
|
Loading…
Reference in New Issue