|
6 | 6 | <RepoApiImplemented>false</RepoApiImplemented>
|
7 | 7 | <ProjectDirectory>$(SubmoduleDirectory)$(RepositoryName)/</ProjectDirectory>
|
8 | 8 | <SkipEnsurePackagesCreated>true</SkipEnsurePackagesCreated>
|
9 |
| - <BuildArgs>--binaryLog</BuildArgs> |
10 |
| - <BuildArgs Condition="'$(OfflineBuild)' != 'true'">$(BuildArgs) /p:IncludedPackageVersionPropsFile="$(PackageVersionPropsPath)"</BuildArgs> |
11 |
| - <BuildArgs Condition="'$(OfflineBuild)' == 'true'">$(BuildArgs) /p:IncludedPackageVersionPropsFile="$(GennedPackageVersionPropsPath)"</BuildArgs> |
12 |
| - <BuildCommand>$(ProjectDirectory)pack$(ShellExtension) $(BuildArgs)</BuildCommand> |
| 9 | + <IncludedPackageVersionPropsFile Condition="'$(OfflineBuild)' != 'true'">$(PackageVersionPropsPath)</IncludedPackageVersionPropsFile> |
| 10 | + <IncludedPackageVersionPropsFile Condition="'$(OfflineBuild)' == 'true'">$(GennedPackageVersionPropsPath)</IncludedPackageVersionPropsFile> |
13 | 11 | </PropertyGroup>
|
14 | 12 |
|
15 | 13 | <ItemGroup>
|
16 |
| - <UseSourceBuiltSdkOverride Include="@(ArcadeSdkOverride)" /> |
17 | 14 | <RepositoryReference Include="arcade" />
|
18 | 15 | <RepositoryReference Include="sdk" />
|
19 | 16 | </ItemGroup>
|
20 | 17 |
|
21 | 18 | <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))/dir.targets" />
|
| 19 | + |
| 20 | + <Target Name="RepoBuild"> |
| 21 | + <!-- Copy PVP to packages dir in order to package them together --> |
| 22 | + <Copy SourceFiles="$(IncludedPackageVersionPropsFile)" DestinationFiles="$(SourceBuiltPackagesPath)PackageVersions.props" /> |
| 23 | + |
| 24 | + <!-- Copy coreclr tools to packages dir to include it in the source-built tarball as well --> |
| 25 | + <ItemGroup> |
| 26 | + <CoreClrToolsFiles Include="$(ToolPackageExtractDir)coreclr-tools/*" /> |
| 27 | + </ItemGroup> |
| 28 | + <Copy SourceFiles="@(CoreClrToolsFiles)" DestinationFolder="$(SourceBuiltPackagesPath)coreclr-tools" /> |
| 29 | + |
| 30 | + <PropertyGroup> |
| 31 | + <SourceBuiltTarballName>$(OutputPath)$(SourceBuiltArtifactsTarballName).$(VersionPrefix)-$(VersionSuffix).tar.gz</SourceBuiltTarballName> |
| 32 | + </PropertyGroup> |
| 33 | + |
| 34 | + <Exec Command="tar --numeric-owner -czf $(SourceBuiltTarballName) *.nupkg *.props coreclr-tools/*" WorkingDirectory="$(SourceBuiltPackagesPath)" /> |
| 35 | + |
| 36 | + <Message Importance="High" Text="Packaged source-built artifacts to $(SourceBuiltTarballName)" /> |
| 37 | + </Target> |
| 38 | + |
22 | 39 | </Project>
|
0 commit comments