Skip to content

Commit 7d73058

Browse files
committed
Adding missing QtWebEngine locale and resource files
1 parent 208d527 commit 7d73058

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

freeze.py

+13-5
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,19 @@ def find_files(directory, patterns):
216216

217217
# Add QtWebEngineProcess (if found)
218218
web_process_path = "/usr/lib/x86_64-linux-gnu/qt5/libexec/QtWebEngineProcess"
219-
if os.path.exists(web_process_path):
220-
external_so_files.append((web_process_path, os.path.basename(web_process_path)))
221-
web_process_resource_path = "/usr/share/qt5/resources"
222-
for filename in find_files(web_process_resource_path, ["*"]):
223-
src_files.append((filename, os.path.basename(filename)))
219+
external_so_files.append((web_process_path, os.path.basename(web_process_path)))
220+
221+
# Add libsoftokn3
222+
nss_path = "/usr/lib/x86_64-linux-gnu/nss/"
223+
for filename in find_files(nss_path, ["*"]):
224+
external_so_files.append((filename, os.path.basename(filename)))
225+
226+
# Add QtWebEngineProcess Resources & Local
227+
qt5_path = "/usr/share/qt5/"
228+
for filename in find_files(os.path.join(PATH, "resources"), ["*"]):
229+
external_so_files.append((filename, os.path.relpath(filename, start=qt5_path)))
230+
for filename in find_files(os.path.join(PATH, "translations", "qtwebengine_locales"), ["*"]):
231+
external_so_files.append((filename, os.path.relpath(filename, start=qt5_path)))
224232

225233
# Append Linux ICON file
226234
iconFile += ".svg"

0 commit comments

Comments
 (0)