Other adjustments to copy commands for libs.

This commit is contained in:
emiliano.vavassori 2024-08-23 01:10:16 +02:00
parent 827928b31e
commit 6c4311b706
1 changed files with 6 additions and 7 deletions

View File

@ -585,13 +585,12 @@ class Build():
), cwd=self.builddir, check=True) ), cwd=self.builddir, check=True)
# We are finally copying the .so files in the same path as main_executable # We are finally copying the .so files in the same path as main_executable
libdirs = [ 'lib/x86_64-linux-gnu', 'usr/lib/x86_64-linux-gnu' ]
for libdir in libdirs:
fulllibdir = os.path.abspath(os.path.join(temporary, libdir))
subprocess.run(shlex.split( subprocess.run(shlex.split(
f"cp -fr * {os.path.dirname(main_executable)}/" r"find " + fulllibdir + r" -type f -iname \*.so\* -exec cp {} " + os.path.dirname(main_executable) + r"/ \;"
), cwd = os.path.abspath(os.path.join(temporary, '/lib/x86_64-linux-gnu')), shell=True, check=True) ), cwd=temporary, check=True)
subprocess.run(shlex.split(
f"cp -r * {os.path.dirname(main_executable)}/"
), cwd = os.path.abspath(os.path.join(temporary, '/usr/lib/x86_64-linux-gnu')), shell=True, check=True)
# Find the name of the binary called in the desktop file. # Find the name of the binary called in the desktop file.
binaryname = '' binaryname = ''