Skip to content

Commit 14468ef

Browse files
authored
[release/6.0] Add RID to targeting pack archive names (#40731)
* [release/6.0] Add RID to targeting pack archive names * Fixup
1 parent ef0bd0f commit 14468ef

File tree

5 files changed

+13
-104
lines changed

5 files changed

+13
-104
lines changed

.azure/pipelines/jobs/default-build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ parameters:
5353
# jobDisplayName: '' - use agentOs by default.
5454
artifacts: []
5555
buildDirectory: $(System.DefaultWorkingDirectory)/eng/
56-
installTar: true
5756
installNodeJs: true
5857
installJdk: true
5958
timeoutInMinutes: 180
@@ -179,9 +178,6 @@ jobs:
179178
Write-Host "##vso[task.setvariable variable=SeleniumProcessTrackingFolder]$(Build.SourcesDirectory)\artifacts\tmp\selenium\"
180179
./eng/scripts/InstallGoogleChrome.ps1
181180
displayName: Install Chrome
182-
- ${{ if and(eq(parameters.installTar, 'true'), eq(parameters.agentOs, 'Windows')) }}:
183-
- powershell: ./eng/scripts/InstallTar.ps1
184-
displayName: Find or install Tar
185181
- ${{ if eq(parameters.agentOs, 'Windows') }}:
186182
- powershell: Write-Host "##vso[task.prependpath]$(DOTNET_CLI_HOME)\.dotnet\tools"
187183
displayName: Add dotnet tools to path

eng/scripts/InstallTar.ps1

Lines changed: 0 additions & 74 deletions
This file was deleted.

src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant
8585
<LayoutTargetDir>$(TargetingPackLayoutRoot)$(TargetingPackSubPath)</LayoutTargetDir>
8686
<LocalInstallationOutputPath>$(LocalDotNetRoot)$(TargetingPackSubPath)</LocalInstallationOutputPath>
8787

88-
<ArchiveOutputFileName>aspnetcore-targeting-pack-$(PackageVersion)</ArchiveOutputFileName>
89-
<ZipArchiveOutputPath>$(InstallersOutputPath)$(ArchiveOutputFileName).zip</ZipArchiveOutputPath>
90-
<TarArchiveOutputPath>$(InstallersOutputPath)$(ArchiveOutputFileName).tar.gz</TarArchiveOutputPath>
88+
<ArchiveOutputFileName>aspnetcore-targeting-pack-$(PackageVersion)-$(TargetRuntimeIdentifier)</ArchiveOutputFileName>
89+
<ArchiveOutputPath>$(InstallersOutputPath)$(ArchiveOutputFileName)$(ArchiveExtension)</ArchiveOutputPath>
9190
</PropertyGroup>
9291

9392
<PropertyGroup>
@@ -221,29 +220,17 @@ This package is an internal implementation of the .NET Core SDK and is not meant
221220

222221
<Target Name="_CreateTargetingPackArchive"
223222
Inputs="@(RefPackContent)"
224-
Outputs="$(ZipArchiveOutputPath);$(TarArchiveOutputPath)"
225-
Condition=" '$(IsPackable)' == 'true' ">
226-
<PropertyGroup>
227-
<_TarCommand>tar</_TarCommand>
228-
<_TarCommand Condition="Exists('$(RepoRoot).tools\tar.exe')">"$(RepoRoot).tools\tar.exe"</_TarCommand>
229-
230-
<!-- For the tar packed with git, transform e.g. "C:\root\AspNetCore\File.tar.gz" to "/C/root/AspNetCore/File.tar.gz". -->
231-
<_TarArchiveOutputPath>$(TarArchiveOutputPath)</_TarArchiveOutputPath>
232-
<_TarArchiveOutputPath
233-
Condition="Exists('$(repoRoot)\.tools\tar.fromGit')">/$(TarArchiveOutputPath.Replace('\','/').Replace(':',''))</_TarArchiveOutputPath>
234-
</PropertyGroup>
235-
223+
Outputs="$(ArchiveOutputPath)">
236224
<ZipDirectory
237225
SourceDirectory="$(TargetingPackLayoutRoot)"
238-
DestinationFile="$(ZipArchiveOutputPath)"
239-
Overwrite="true" />
240-
241-
<!-- Requires Windows 10 version 1803 or newer -->
242-
<Message Importance="High" Text="Executing: $(_TarCommand) -czf &quot;$(_TarArchiveOutputPath)&quot; ." />
243-
<Exec Command="$(_TarCommand) -czf &quot;$(_TarArchiveOutputPath)&quot; ."
244-
WorkingDirectory="$(TargetingPackLayoutRoot)" />
245-
246-
<Message Importance="High" Text="$(MSBuildProjectName) -> $(TarArchiveOutputPath)" />
226+
DestinationFile="$(ArchiveOutputPath)"
227+
Overwrite="true"
228+
Condition="'$(ArchiveExtension)' == '.zip'" />
229+
<Exec
230+
Command="tar -czf $(ArchiveOutputPath) ."
231+
WorkingDirectory="$(TargetingPackLayoutRoot)"
232+
Condition="'$(ArchiveExtension)' == '.tar.gz'" />
233+
<Message Importance="High" Text="$(MSBuildProjectName) -> $(ArchiveOutputPath)" />
247234
</Target>
248235

249236
<Target Name="IncludeFrameworkListFile"

src/Installers/Debian/TargetingPack/Debian.TargetingPack.debproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" />
3838

3939
<PropertyGroup>
40-
<TargetFileName>$(TargetingPackInstallerBaseName)-$(TargetingPackVersion).deb</TargetFileName>
40+
<TargetFileName>$(TargetingPackInstallerBaseName)-$(TargetingPackVersion)-$(TargetArchitecture).deb</TargetFileName>
4141
<TargetPath>$(TargetDir)$(TargetFileName)</TargetPath>
4242

4343
<DebPackageVersion>$(TargetingPackVersionPrefix)</DebPackageVersion>

src/Installers/Windows/TargetingPack/TargetingPack.wixproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<TargetingPackHarvestRoot Condition="'$(TargetingPackHarvestRoot)' == ''">$(InstallersOutputPath)</TargetingPackHarvestRoot>
6767
<TargetingPackZipVersion>$(TargetingPackVersionPrefix)</TargetingPackZipVersion>
6868
<TargetingPackZipVersion Condition="'$(VersionSuffix)' != ''">$(TargetingPackZipVersion)-$(VersionSuffix)</TargetingPackZipVersion>
69-
<IntermediateTargetingPackZip>$(TargetingPackHarvestRoot)aspnetcore-targeting-pack-$(TargetingPackZipVersion).zip</IntermediateTargetingPackZip>
69+
<IntermediateTargetingPackZip>$(TargetingPackHarvestRoot)aspnetcore-targeting-pack-$(TargetingPackZipVersion)-$(TargetRuntimeIdentifier).zip</IntermediateTargetingPackZip>
7070
</PropertyGroup>
7171

7272
<Unzip SourceFiles="$(IntermediateTargetingPackZip)" DestinationFolder="$(HarvestSource)" />

0 commit comments

Comments
 (0)