Fix incorrect target name

Now updating the arch variable after matching for tar file.
This commit is contained in:
Thomas Rondahl 2022-02-23 20:04:49 +01:00 committed by Changming Sun
parent 573e440d35
commit e076f3a125

View file

@ -66,11 +66,13 @@ def generate_file_list_for_ep(nuget_artifacts_dir, ep, files_list):
if child_file.is_file() and child_file.suffix == '.dylib' and not is_versioned_dylib:
files_list.append('<file src="' + str(child_file) +
'" target="runtimes/osx.10.14-%s/native"/>' % cpu_arch)
for cpu_arch in ['x64', 'arm64']:
for cpu_arch in ['x64', 'aarch64']:
if child.name == get_package_name('linux', cpu_arch, ep):
child = child / 'lib'
if cpu_arch == 'x86_64':
cpu_arch = 'x64'
elif cpu_arch == 'aarch64':
cpu_arch = 'arm64'
for child_file in child.iterdir():
if not child_file.is_file():
continue