Fixing copy command for structure and symlinks.

This commit is contained in:
emiliano.vavassori 2024-08-23 10:27:26 +02:00
parent ba6572c3cf
commit 0b3b10a791
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ class Build():
for libdir in libdirs: for libdir in libdirs:
fulllibdir = os.path.abspath(os.path.join(temporary, libdir)) fulllibdir = os.path.abspath(os.path.join(temporary, libdir))
subprocess.run(shlex.split( subprocess.run(shlex.split(
r"find " + fulllibdir + r" -type f -iname \*.so\* -exec cp {} " + os.path.dirname(main_executable) + r"/ \;" f"cp -Ra {fullibdir}/. {os.path.dirname(main_executable)}/"
), cwd=temporary, check=True) ), cwd=temporary, check=True)
# Find the name of the binary called in the desktop file. # Find the name of the binary called in the desktop file.