Skip to content

Commit

Permalink
Update nuget icon (microsoft#10672)
Browse files Browse the repository at this point in the history
Update nuget icon from url to local file because the old tag is deprecated.
  • Loading branch information
mszhanyi authored Mar 1, 2022
1 parent c1cf16e commit f1b6f0b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Binary file added ORT_icon_for_light_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<PackageProjectUrl>https://github.com/Microsoft/onnxruntime</PackageProjectUrl>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageIconUrl>https://go.microsoft.com/fwlink/?linkid=2049168</PackageIconUrl>
<PackageIcon>ORT_icon_for_light_bg.png</PackageIcon>
<PackageReleaseNotes>
Release Def:
Branch: $(BUILD_SOURCEBRANCH)
Expand Down Expand Up @@ -178,7 +178,7 @@
CopyToOutputDirectory="PreserveNewest"
Visible="false"
/>
<None Include="$(OnnxRuntimeCsharpRoot)\..\LICENSE.txt;$(OnnxRuntimeCsharpRoot)\..\ThirdPartyNotices.txt;$(OnnxRuntimeCsharpRoot)\..\docs\Privacy.md"
<None Include="$(OnnxRuntimeCsharpRoot)\..\LICENSE.txt;$(OnnxRuntimeCsharpRoot)\..\ThirdPartyNotices.txt;$(OnnxRuntimeCsharpRoot)\..\ORT_icon_for_light_bg.png;$(OnnxRuntimeCsharpRoot)\..\docs\Privacy.md"
PackagePath="\"
Pack="true"
Visible="false"
Expand Down
8 changes: 5 additions & 3 deletions tools/nuget/generate_nuspec_for_native_nuget.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ def generate_tags(list, tags):
list.append('<tags>' + tags + '</tags>')


def generate_icon_url(list, icon_url):
list.append('<iconUrl>' + icon_url + '</iconUrl>')
def generate_icon(list, icon_file):
list.append('<icon>' + icon_file + '</icon>')


def generate_license(list):
Expand Down Expand Up @@ -257,7 +257,7 @@ def generate_metadata(list, args):
generate_description(metadata_list, args.package_name)
generate_copyright(metadata_list, '\xc2\xa9 ' + 'Microsoft Corporation. All rights reserved.')
generate_tags(metadata_list, 'ONNX ONNX Runtime Machine Learning')
generate_icon_url(metadata_list, 'https://go.microsoft.com/fwlink/?linkid=2049168')
generate_icon(metadata_list, 'ORT_icon_for_light_bg.png')
generate_license(metadata_list)
generate_project_url(metadata_list, 'https://github.com/Microsoft/onnxruntime')
generate_repo_url(metadata_list, 'https://github.com/Microsoft/onnxruntime.git', args.commit_id)
Expand Down Expand Up @@ -613,6 +613,8 @@ def generate_files(list, args):
'" target="ThirdPartyNotices.txt" />')
files_list.append('<file src=' + '"' + os.path.join(args.sources_path, 'docs', 'Privacy.md') +
'" target="Privacy.md" />')
files_list.append('<file src=' + '"' + os.path.join(args.sources_path, 'ORT_icon_for_light_bg.png') +
'" target="ORT_icon_for_light_bg.png" />')
files_list.append('</files>')

list += files_list
Expand Down

0 comments on commit f1b6f0b

Please sign in to comment.