summaryrefslogtreecommitdiffstats
path: root/packaging/nsis/windeployqt-to-nsis.py
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/nsis/windeployqt-to-nsis.py')
-rw-r--r--packaging/nsis/windeployqt-to-nsis.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/packaging/nsis/windeployqt-to-nsis.py b/packaging/nsis/windeployqt-to-nsis.py
index f3e3e9a5..2063282a 100644
--- a/packaging/nsis/windeployqt-to-nsis.py
+++ b/packaging/nsis/windeployqt-to-nsis.py
@@ -83,13 +83,19 @@ with open(args.outfile, 'w') as f:
if len(rel_path) > 1:
base_dir = rel_path[0].strip('"')
if base_dir != current_dir:
- set_out_path = 'SetOutPath "$INSTDIR\{}"'.format(base_dir)
+ set_out_path = r'SetOutPath "$INSTDIR\{}"'.format(base_dir)
print(set_out_path, file=f)
current_dir = base_dir
path = path.strip('"')
if args.sysroot:
path = os.path.join(args.sysroot, path)
+ if args.mapping and not os.path.isfile(path):
+ # This hack is because Qt 6.7 renamed QWindowsVistaStylePlugin
+ # to QModernWindowsStylePlugin. (This explicit mapping because
+ # windeployqt6 doesn't work well with cross-compiling is
+ # brittle.)
+ continue
file_path = 'File "{}"'.format(path)
print(file_path, file=f)