mirror of
https://github.com/chenx-dust/EZ4Connect.git
synced 2026-09-20 10:23:33 +08:00
fix: macOS 本地化问题
This commit is contained in:
@@ -23,6 +23,7 @@ macdeployqt "$TARGET_NAME.app"
|
||||
# macdeployqt has a bug that it doesn't copy the Qt translations to the bundle
|
||||
# so we need to copy them manually
|
||||
QT_TRANSLATIONS=$(qmake -query QT_INSTALL_TRANSLATIONS)
|
||||
mkdir -p "$TARGET_NAME.app/Contents/translations"
|
||||
if [ -d "$QT_TRANSLATIONS" ]; then
|
||||
cp -R "$QT_TRANSLATIONS"/qtbase_*.qm "$TARGET_NAME.app/Contents/"
|
||||
cp -R "$QT_TRANSLATIONS"/qtbase_*.qm "$TARGET_NAME.app/Contents/translations"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user