From e076f3a125c27672407a7205bf36a47330e29ba2 Mon Sep 17 00:00:00 2001 From: Thomas Rondahl Date: Wed, 23 Feb 2022 20:04:49 +0100 Subject: [PATCH] Fix incorrect target name Now updating the arch variable after matching for tar file. --- tools/nuget/generate_nuspec_for_native_nuget.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/nuget/generate_nuspec_for_native_nuget.py b/tools/nuget/generate_nuspec_for_native_nuget.py index d31a9e7227..9bf29949ca 100644 --- a/tools/nuget/generate_nuspec_for_native_nuget.py +++ b/tools/nuget/generate_nuspec_for_native_nuget.py @@ -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('' % 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