mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
fix: deploy qt translations for macOS
This commit is contained in:
parent
a61bcb1629
commit
f8f62efa6e
|
@ -267,14 +267,24 @@ if (APPLE)
|
||||||
set(App_Name "${GOLDENDICT}.app")
|
set(App_Name "${GOLDENDICT}.app")
|
||||||
set(Redistributable_APP "${Assembling_Dir}/${App_Name}")
|
set(Redistributable_APP "${Assembling_Dir}/${App_Name}")
|
||||||
|
|
||||||
|
# if anything wrong, delete this and affect lines, and see what's Qt will generate by default.
|
||||||
|
set(QtConfPath "${Redistributable_APP}/Contents/Resources/qt.conf")
|
||||||
|
|
||||||
qt_generate_deploy_script(
|
qt_generate_deploy_script(
|
||||||
TARGET ${GOLDENDICT}
|
TARGET ${GOLDENDICT}
|
||||||
OUTPUT_SCRIPT deploy_script
|
OUTPUT_SCRIPT deploy_script
|
||||||
CONTENT "qt_deploy_runtime_dependencies(
|
CONTENT "
|
||||||
|
set(QT_DEPLOY_PREFIX \"${Redistributable_APP}\")
|
||||||
|
set(QT_DEPLOY_TRANSLATIONS_DIR \"Contents/Resources/translations\")
|
||||||
|
qt_deploy_runtime_dependencies(
|
||||||
EXECUTABLE \"${Redistributable_APP}\"
|
EXECUTABLE \"${Redistributable_APP}\"
|
||||||
GENERATE_QT_CONF
|
GENERATE_QT_CONF
|
||||||
NO_APP_STORE_COMPLIANCE
|
NO_APP_STORE_COMPLIANCE)
|
||||||
)"
|
qt_deploy_translations()
|
||||||
|
qt_deploy_qt_conf(\"${QtConfPath}\"
|
||||||
|
PLUGINS_DIR PlugIns
|
||||||
|
TRANSLATIONS_DIR Resources/translations)
|
||||||
|
"
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS ${GOLDENDICT} BUNDLE DESTINATION "${Assembling_Dir}")
|
install(TARGETS ${GOLDENDICT} BUNDLE DESTINATION "${Assembling_Dir}")
|
||||||
|
|
Loading…
Reference in a new issue