mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Make sure all dynamic libs are copied to the dist
Solve it dynamically in the Ultimaker-Cura.spec, Such that we can copy files manually (OpenSSL shared) to the bin/Script folder after the cura install step. Contributes to CURA-9342
This commit is contained in:
parent
798facd63b
commit
cd303b4e6f
2 changed files with 8 additions and 8 deletions
|
@ -171,15 +171,7 @@ class CuraConan(ConanFile):
|
|||
for bin in src_path.glob(binary["binary"]):
|
||||
binaries.append((str(bin), binary["dst"]))
|
||||
|
||||
# Add dynamic libs in the venv bin/Script and lib Path. This is needed because we might copy some additional libs
|
||||
# e.q.: OpenSSL 1.1.1l in that directory with a separate:
|
||||
# `conan install openssl@1.1.1l -g deploy && cp openssl/bin/*.so cura_inst/bin`
|
||||
for bin in self._script_dir.glob("*.[so|dll|dylib]"):
|
||||
binaries.append(str(bin), ".")
|
||||
|
||||
for _, dependency in self.dependencies.items():
|
||||
# if dependency.ref.name == "cpython":
|
||||
# continue
|
||||
for bin_paths in dependency.cpp_info.bindirs:
|
||||
binaries.extend([(f"{p}", ".") for p in Path(bin_paths).glob("**/*.dll")])
|
||||
binaries.extend([(f"{p}", ".") for p in Path(bin_paths).glob("**/*.dylib")])
|
||||
|
@ -203,6 +195,7 @@ class CuraConan(ConanFile):
|
|||
entrypoint = entrypoint_location,
|
||||
datas = datas,
|
||||
binaries = binaries,
|
||||
venv_script_path = str(self._script_dir),
|
||||
hiddenimports = pyinstaller_metadata["hiddenimports"],
|
||||
collect_all = pyinstaller_metadata["collect_all"],
|
||||
icon = icon_path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue