Skip to content

Commit f34a3fd

Browse files
authored
[sharpie] Set a few required properties for the nupkg. (#24813)
1 parent 5ae1b92 commit f34a3fd

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

Make.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ else
364364
$(error "The variable XCODE_IS_STABLE is not set!")
365365
endif
366366
$(Q) printf "\t\t<TRACKING_DOTNET_RUNTIME_SEPARATELY>$(TRACKING_DOTNET_RUNTIME_SEPARATELY)</TRACKING_DOTNET_RUNTIME_SEPARATELY>\n" >> $@.tmp
367+
$(Q) printf "\t\t<CURRENT_BRANCH>$(CURRENT_BRANCH)</CURRENT_BRANCH>\n" >> $@.tmp
368+
$(Q) printf "\t\t<CURRENT_HASH_LONG>$(CURRENT_HASH_LONG)</CURRENT_HASH_LONG>\n" >> $@.tmp
367369
$(Q) printf "\t</PropertyGroup>\n" >> $@.tmp
368370
$(Q) printf "</Project>\n" >> $@.tmp
369371
$(Q) mv $@.tmp $@

tools/sharpie/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ SHARPIE_BIND_TOOL_NUPKG=Sharpie.Bind.Tool/bin/Release/$(SHARPIE_BIND_TOOL_NUPKG_
2323

2424
pack: $(SHARPIE_BIND_TOOL_NUPKG)
2525
$(SHARPIE_BIND_TOOL_NUPKG): $(Sharpie.Bind_dependencies)
26-
$(Q_BUILD) $(DOTNET) pack Sharpie.Bind.Tool/Sharpie.Bind.Tool.csproj "/p:Version=$(SHARPIE_VERSION)" $(DOTNET_PACK_VERBOSITY) -bl:$@.binlog
26+
$(Q_BUILD) $(DOTNET) pack Sharpie.Bind.Tool/Sharpie.Bind.Tool.csproj "/p:Version=$(SHARPIE_VERSION)" "/p:CurrentBranch=$(CURRENT_BRANCH)" "/p:CurrentHash=$(CURRENT_HASH_LONG)" $(DOTNET_PACK_VERBOSITY) -bl:$@.binlog
2727

2828
all-local:: $(DOTNET_NUPKG_DIR)/$(SHARPIE_BIND_TOOL_NUPKG_NAME)
2929
$(DOTNET_NUPKG_DIR)/$(SHARPIE_BIND_TOOL_NUPKG_NAME): $(SHARPIE_BIND_TOOL_NUPKG)

tools/sharpie/Sharpie.Bind.Tool/Sharpie.Bind.Tool.csproj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,18 @@
2121
<PublishAot>true</PublishAot>
2222
<RollForward>major</RollForward>
2323

24+
<RepositoryUrl>https://github.com/dotnet/macios</RepositoryUrl>
25+
<RepositoryBranch>$(CurrentBranch)</RepositoryBranch>
26+
<RepositoryCommit>$(CurrentHash)</RepositoryCommit>
27+
28+
<Authors>Microsoft</Authors>
29+
<Owners>microsoft,dotnetframework</Owners>
30+
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
2431
<PackageReadmeFile>README.md</PackageReadmeFile>
2532
<PackageLicenseFile>LICENSE</PackageLicenseFile>
33+
<PackageIcon>Icon.png</PackageIcon>
34+
<PackageProjectUrl>https://github.com/dotnet/macios</PackageProjectUrl>
35+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2636
</PropertyGroup>
2737

2838
<ItemGroup>
@@ -34,6 +44,7 @@
3444

3545
<ItemGroup>
3646
<None Include="../clang/include/**/*" Pack="true" PackagePath="content/clang/include" Link="clang/include" />
47+
<None Include="../../../dotnet/package/Icon.png" Pack="true" PackagePath="/" />
3748

3849
<None Include="README.md" Pack="true" PackagePath="/"/>
3950
<None Include="../../../LICENSE" Pack="true" PackagePath="/"/>

0 commit comments

Comments
 (0)