ArPow: Add package-source-build project (#10998)

* Add package-source-build project

* Remove unneccessary reference
This commit is contained in:
Dan Seefeldt 2021-06-28 17:19:27 -05:00 committed by GitHub
parent 81ae7b363b
commit 1d29250565
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 8 deletions

View file

@ -31,6 +31,10 @@
<RepositoryReference Include="arcade" />
<RepositoryReference Include="linker" />
<!-- Package source-build artifacts -->
<RepositoryReference Include="package-source-build" />
</ItemGroup>
</Otherwise>
</Choose>

View file

@ -11,7 +11,6 @@
<ItemGroup>
<RepositoryReference Include="arcade" />
<RepositoryReference Include="sdk" />
</ItemGroup>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
@ -20,17 +19,11 @@
<!-- Copy PVP to packages dir in order to package them together -->
<Copy SourceFiles="$(IncludedPackageVersionPropsFile)" DestinationFiles="$(SourceBuiltPackagesPath)PackageVersions.props" />
<!-- Copy coreclr tools to packages dir to include it in the source-built tarball as well -->
<ItemGroup>
<CoreClrToolsFiles Include="$(ToolPackageExtractDir)coreclr-tools/*" />
</ItemGroup>
<Copy SourceFiles="@(CoreClrToolsFiles)" DestinationFolder="$(SourceBuiltPackagesPath)coreclr-tools" />
<PropertyGroup>
<SourceBuiltTarballName>$(OutputPath)$(SourceBuiltArtifactsTarballName).$(VersionPrefix)-$(VersionSuffix).tar.gz</SourceBuiltTarballName>
</PropertyGroup>
<Exec Command="tar --numeric-owner -czf $(SourceBuiltTarballName) *.nupkg *.props coreclr-tools/*" WorkingDirectory="$(SourceBuiltPackagesPath)" />
<Exec Command="tar --numeric-owner -czf $(SourceBuiltTarballName) *.nupkg *.props" WorkingDirectory="$(SourceBuiltPackagesPath)" />
<Message Importance="High" Text="Packaged source-built artifacts to $(SourceBuiltTarballName)" />
</Target>