You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than using OSX_QT_TRANSLATIONS which must be manually updated,
and we forget to update anyway, i.e: #19059, automatically find and copy
available translations from the translations directory.
Copy file name to clipboardExpand all lines: contrib/macdeploy/macdeployqtplus
+21-42Lines changed: 21 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,9 @@
17
17
#
18
18
19
19
importsubprocess, sys, re, os, shutil, stat, os.path, time
20
-
fromstringimportTemplate
21
20
fromargparseimportArgumentParser
21
+
frompathlibimportPath
22
+
fromstringimportTemplate
22
23
fromtypingimportList, Optional
23
24
24
25
# This is ported from the original macdeployqt with modifications
@@ -526,8 +527,7 @@ ap.add_argument("-no-strip", dest="strip", action="store_false", default=True, h
526
527
ap.add_argument("-sign", dest="sign", action="store_true", default=False, help="sign .app bundle with codesign tool")
527
528
ap.add_argument("-dmg", nargs="?", const="", metavar="basename", help="create a .dmg disk image; if basename is not specified, a camel-cased version of the app name is used")
528
529
ap.add_argument("-fancy", nargs=1, metavar="plist", default=[], help="make a fancy looking disk image using the given plist file with instructions; requires -dmg to work")
529
-
ap.add_argument("-add-qt-tr", nargs=1, metavar="languages", default=[], help="add Qt translation files to the bundle's resources; the language list must be separated with commas, not with whitespace")
530
-
ap.add_argument("-translations-dir", nargs=1, metavar="path", default=None, help="Path to Qt's translation files")
530
+
ap.add_argument("-translations-dir", nargs=1, metavar="path", default=None, help="Path to Qt's translations. Base translations will automatically be added to the bundle's resources.")
531
531
ap.add_argument("-add-resources", nargs="+", metavar="path", default=[], help="list of additional files or folders to be copied into the bundle's resources; must be the last argument")
532
532
ap.add_argument("-volname", nargs=1, metavar="volname", default=[], help="custom volume name for dmg")
533
533
@@ -547,15 +547,6 @@ if not os.path.exists(app_bundle):
0 commit comments