Skip to content

Commit 38119b7

Browse files
committed
Remove certain qt plugins from mac packaging
1 parent 7740665 commit 38119b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

freeze.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,10 @@ def find_files(directory, patterns):
347347
for filename in find_files(os.path.join(qt_webengine_path, "Resources", "qtwebengine_locales"), ["*"]):
348348
external_so_files.append((filename, os.path.relpath(filename, start=os.path.join(qt_webengine_path, "Resources"))))
349349
for filename in find_files(os.path.join(qt_install_path, "plugins"), ["*"]):
350-
external_so_files.append((filename, os.path.relpath(filename, start=os.path.join(qt_install_path, "plugins"))))
350+
relative_filepath = os.path.relpath(filename, start=os.path.join(qt_install_path, "plugins"))
351+
plugin_name = os.path.split(relative_filepath)[0]
352+
if plugin_name not in ["sqldrivers", "playlistformats", "gamepads", "bearer"]:
353+
external_so_files.append((filename, relative_filepath))
351354

352355
# Append all source files
353356
src_files.append((os.path.join(PATH, "installer", "qt.conf"), "qt.conf"))

0 commit comments

Comments
 (0)