aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/platforms/linux.py
diff options
context:
space:
mode:
Diffstat (limited to 'build_scripts/platforms/linux.py')
-rw-r--r--build_scripts/platforms/linux.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/build_scripts/platforms/linux.py b/build_scripts/platforms/linux.py
index cbd47070d..092660072 100644
--- a/build_scripts/platforms/linux.py
+++ b/build_scripts/platforms/linux.py
@@ -37,6 +37,7 @@
##
#############################################################################
+import os
from ..utils import (copydir, copyfile, copy_icu_libs, find_files_using_glob,
linux_patch_executable)
from ..config import config
@@ -96,12 +97,6 @@ def prepare_standalone_package_linux(self, vars):
linux_patch_executable(self._patchelf_path, designer_path)
if self.is_webengine_built(built_modules):
- copydir("{qt_lib_execs_dir}",
- "{st_build_dir}/{st_package_name}/Qt/libexec",
- filter=None,
- recursive=False,
- vars=vars)
-
copydir("{qt_prefix_dir}/resources",
"{st_build_dir}/{st_package_name}/Qt/resources",
filter=None,
@@ -142,7 +137,8 @@ def prepare_standalone_package_linux(self, vars):
if copy_qt_conf:
# Copy the qt.conf file to libexec.
- copyfile(
- f"{{build_dir}}/{PYSIDE}/{{st_package_name}}/qt.conf",
- "{st_build_dir}/{st_package_name}/Qt/libexec",
- vars=vars)
+ qt_libexec_path = "{st_build_dir}/{st_package_name}/Qt/libexec".format(**vars)
+ if not os.path.isdir(qt_libexec_path):
+ os.makedirs(qt_libexec_path)
+ copyfile(f"{{build_dir}}/{PYSIDE}/{{st_package_name}}/qt.conf",
+ qt_libexec_path, vars=vars)