Other adjustments to copy commands for libs.
This commit is contained in:
parent
827928b31e
commit
6c4311b706
|
@ -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
|
||||||
subprocess.run(shlex.split(
|
libdirs = [ 'lib/x86_64-linux-gnu', 'usr/lib/x86_64-linux-gnu' ]
|
||||||
f"cp -fr * {os.path.dirname(main_executable)}/"
|
for libdir in libdirs:
|
||||||
), cwd = os.path.abspath(os.path.join(temporary, '/lib/x86_64-linux-gnu')), shell=True, check=True)
|
fulllibdir = os.path.abspath(os.path.join(temporary, libdir))
|
||||||
subprocess.run(shlex.split(
|
subprocess.run(shlex.split(
|
||||||
f"cp -r * {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, '/usr/lib/x86_64-linux-gnu')), shell=True, 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.
|
||||||
binaryname = ''
|
binaryname = ''
|
||||||
|
|
Loading…
Reference in New Issue