fix build on github
This commit is contained in:
parent
5569524efa
commit
ae16b19515
1 changed files with 25 additions and 24 deletions
|
|
@ -424,33 +424,34 @@ if(NOT IOS AND NOT ANDROID AND NOT MACOS_NE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_sources(${PROJECT} PRIVATE ${SOURCES} ${HEADERS} ${RESOURCES} ${QRC} ${I18NQRC})
|
target_sources(${PROJECT} PRIVATE ${SOURCES} ${HEADERS} ${RESOURCES} ${QRC} ${I18NQRC})
|
||||||
# Sao chép QtConcurrent.framework vào thư mục Frameworks
|
# if(APPLE AND NOT ANDROID)
|
||||||
add_custom_command(TARGET ${PROJECT} POST_BUILD
|
# # MacOS specific bundle operations
|
||||||
COMMAND ${CMAKE_COMMAND} -E make_directory
|
# add_custom_command(TARGET ${PROJECT} POST_BUILD
|
||||||
"$<TARGET_BUNDLE_DIR:AmneziaVPN>/Contents/Frameworks"
|
# COMMAND ${CMAKE_COMMAND} -E make_directory
|
||||||
|
# "$<TARGET_BUNDLE_DIR:AmneziaVPN>/Contents/Frameworks"
|
||||||
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
# COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||||
"/Users/macbook/Qt/6.8.0/macos/lib/QtConcurrent.framework"
|
# "/Users/macbook/Qt/6.8.0/macos/lib/QtConcurrent.framework"
|
||||||
"$<TARGET_BUNDLE_DIR:AmneziaVPN>/Contents/Frameworks/QtConcurrent.framework"
|
# "$<TARGET_BUNDLE_DIR:AmneziaVPN>/Contents/Frameworks/QtConcurrent.framework"
|
||||||
|
|
||||||
COMMENT "Copying QtConcurrent.framework to the bundle's Frameworks directory"
|
# COMMENT "Copying QtConcurrent.framework to the bundle's Frameworks directory"
|
||||||
)
|
# )
|
||||||
|
|
||||||
|
# # MacOS specific application deployment
|
||||||
|
# add_custom_command(TARGET ${PROJECT} POST_BUILD
|
||||||
|
# COMMAND ${QT_BIN_DIR_DETECTED}/macdeployqt $<TARGET_BUNDLE_DIR:AmneziaVPN> -appstore-compliant -qmldir=${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
# )
|
||||||
|
|
||||||
# Triển khai ứng dụng với macdeployqt và ký mã (nếu cần)
|
# # MacOS specific code signing for Release
|
||||||
add_custom_command(TARGET ${PROJECT} POST_BUILD
|
# if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||||
COMMAND ${QT_BIN_DIR_DETECTED}/macdeployqt $<TARGET_BUNDLE_DIR:AmneziaVPN> -appstore-compliant -qmldir=${CMAKE_CURRENT_SOURCE_DIR}
|
# SET(SIGN_CMD codesign --deep --force --sign 'Apple Distribution: Privacy Technologies OU \(X7UJ388FXK\)' --timestamp --options runtime $<TARGET_BUNDLE_DIR:AmneziaVPN>)
|
||||||
)
|
# message("Manual signing bundle...")
|
||||||
|
# message(${SIGN_CMD})
|
||||||
|
|
||||||
# Nếu ở chế độ Release, ký mã gói ứng dụng
|
# add_custom_command(TARGET ${PROJECT} POST_BUILD
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
# COMMAND ${SIGN_CMD}
|
||||||
SET(SIGN_CMD codesign --deep --force --sign 'Apple Distribution: Privacy Technologies OU \(X7UJ388FXK\)' --timestamp --options runtime $<TARGET_BUNDLE_DIR:AmneziaVPN>)
|
# )
|
||||||
message("Manual signing bundle...")
|
# endif()
|
||||||
message(${SIGN_CMD})
|
# endif()
|
||||||
|
|
||||||
add_custom_command(TARGET ${PROJECT} POST_BUILD
|
|
||||||
COMMAND ${SIGN_CMD}
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
qt_finalize_target(${PROJECT})
|
qt_finalize_target(${PROJECT})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue