Skip to content

Remove internal archives #49879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,6 @@
<TargetingPackName>Microsoft.AspNetCore.App.Ref</TargetingPackName>
<RuntimeInstallerBaseName>aspnetcore-runtime</RuntimeInstallerBaseName>
<TargetingPackInstallerBaseName>aspnetcore-targeting-pack</TargetingPackInstallerBaseName>

<!--
Archives and installers using this prefix are intended for internal use only.
For example, this .zip is used to handoff bits to partner teams who then incorporate our shared frameworks
into their own installers.
-->
<InternalInstallerBaseName>$(RuntimeInstallerBaseName)-internal</InternalInstallerBaseName>
</PropertyGroup>

<!-- Compilation options which apply to all languages. Language-specific options should be set in eng/targets/$(lang).Common.props -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ This package is an internal implementation of the .NET Core SDK and is not meant
<RuntimeListFileName>RuntimeList.xml</RuntimeListFileName>
<RuntimeListOutputPath>$(BaseIntermediateOutputPath)$(RuntimeListFileName)</RuntimeListOutputPath>

<InternalArchiveOutputFileName>$(InternalInstallerBaseName)-$(PackageVersion)-$(TargetRuntimeIdentifier)$(ArchiveExtension)</InternalArchiveOutputFileName>
<InternalArchiveOutputPath>$(InstallersOutputPath)$(InternalArchiveOutputFileName)</InternalArchiveOutputPath>
<RedistArchiveOutputFileName>$(RuntimeInstallerBaseName)-$(PackageVersion)-$(TargetRuntimeIdentifier)$(ArchiveExtension)</RedistArchiveOutputFileName>
<RedistArchiveOutputPath>$(InstallersOutputPath)$(RedistArchiveOutputFileName)</RedistArchiveOutputPath>
<CompositeArchiveOutputFileName>$(RuntimeInstallerBaseName)-composite-$(PackageVersion)-$(TargetRuntimeIdentifier)$(ArchiveExtension)</CompositeArchiveOutputFileName>
Expand Down Expand Up @@ -207,7 +205,6 @@ This package is an internal implementation of the .NET Core SDK and is not meant
_BatchCopyToSharedFrameworkLayout;
_BatchCopyToRedistLayout;
_BatchCopyToCompositeLayout;
_CreateInternalSharedFxArchive;
_CreateRedistSharedFxArchive;
_CreateRedistCompositeArchive;
</CoreBuildDependsOn>
Expand Down Expand Up @@ -709,21 +706,6 @@ This package is an internal implementation of the .NET Core SDK and is not meant
<Message Importance="High" Text="$(MSbuildProjectFile) -> $(LocalInstallationOutputPath)" />
</Target>

<Target Name="_CreateInternalSharedFxArchive"
Inputs="@(SharedFxContent)"
Outputs="$(InternalArchiveOutputPath)">
<ZipDirectory
SourceDirectory="$(SharedFrameworkLayoutRoot)"
DestinationFile="$(InternalArchiveOutputPath)"
Overwrite="true"
Condition="'$(ArchiveExtension)' == '.zip'" />
<Exec
Command="tar -czf $(InternalArchiveOutputPath) ."
WorkingDirectory="$(SharedFrameworkLayoutRoot)"
Condition="'$(ArchiveExtension)' == '.tar.gz'" />
<Message Importance="High" Text="$(MSbuildProjectFile) -> $(InternalArchiveOutputPath)" />
</Target>

<Target Name="_CreateRedistCompositeArchive"
Condition="'$(TargetOsName)' == 'linux' or '$(TargetOsName)' == 'linux-musl'"
Inputs="$(CompositeTargetDir)"
Expand Down
20 changes: 14 additions & 6 deletions src/Installers/Windows/SharedFramework/SharedFramework.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<HarvestDirectorySuppressSpecificWarnings>5150;5151</HarvestDirectorySuppressSpecificWarnings>
<HarvestDirectorySuppressRegistry>true</HarvestDirectorySuppressRegistry>
<HarvestSource>$(IntermediateOutputPath)fx\</HarvestSource>
<ExtractPath>$(IntermediateOutputPath)fxExtractPath\</ExtractPath>
<IsShipping>true</IsShipping>
<DefineConstants>$(DefineConstants);ProductNameFolder=$(ProductNameFolder)</DefineConstants>
<DefineConstants>$(DefineConstants);ProductNameShort=$(ProductNameShort)</DefineConstants>
Expand Down Expand Up @@ -65,17 +66,24 @@
<SharedFrameworkArm64HarvestRootPath Condition="'$(SharedFrameworkArm64HarvestRootPath)' == ''">$(InstallersOutputPath)</SharedFrameworkArm64HarvestRootPath>
<SharedFrameworkX64HarvestRootPath Condition="'$(SharedFrameworkX64HarvestRootPath)' == ''">$(InstallersOutputPath)</SharedFrameworkX64HarvestRootPath>
<SharedFrameworkX86HarvestRootPath Condition="'$(SharedFrameworkX86HarvestRootPath)' == ''">$(InstallersOutputPath)</SharedFrameworkX86HarvestRootPath>
<IntermediateArm64SharedFxZip>$(SharedFrameworkArm64HarvestRootPath)aspnetcore-runtime-internal-$(PackageVersion)-win-arm64.zip</IntermediateArm64SharedFxZip>
<IntermediateX64SharedFxZip>$(SharedFrameworkX64HarvestRootPath)aspnetcore-runtime-internal-$(PackageVersion)-win-x64.zip</IntermediateX64SharedFxZip>
<IntermediateX86SharedFxZip>$(SharedFrameworkX86HarvestRootPath)aspnetcore-runtime-internal-$(PackageVersion)-win-x86.zip</IntermediateX86SharedFxZip>
<IntermediateArm64SharedFxZip>$(SharedFrameworkArm64HarvestRootPath)aspnetcore-runtime-$(PackageVersion)-win-arm64.zip</IntermediateArm64SharedFxZip>
<IntermediateX64SharedFxZip>$(SharedFrameworkX64HarvestRootPath)aspnetcore-runtime-$(PackageVersion)-win-x64.zip</IntermediateX64SharedFxZip>
<IntermediateX86SharedFxZip>$(SharedFrameworkX86HarvestRootPath)aspnetcore-runtime-$(PackageVersion)-win-x86.zip</IntermediateX86SharedFxZip>
</PropertyGroup>

<Unzip Condition="'$(Platform)' == 'arm64'"
SourceFiles="$(IntermediateArm64SharedFxZip)" DestinationFolder="$(HarvestSource)" />
SourceFiles="$(IntermediateArm64SharedFxZip)" DestinationFolder="$(ExtractPath)" />
<Unzip Condition="'$(Platform)' == 'x64'"
SourceFiles="$(IntermediateX64SharedFxZip)" DestinationFolder="$(HarvestSource)" />
SourceFiles="$(IntermediateX64SharedFxZip)" DestinationFolder="$(ExtractPath)" />
<Unzip Condition="'$(Platform)' == 'x86'"
SourceFiles="$(IntermediateX86SharedFxZip)" DestinationFolder="$(HarvestSource)" />
SourceFiles="$(IntermediateX86SharedFxZip)" DestinationFolder="$(ExtractPath)" />

<!-- The runtime zips also contain the core runtime shared framework, which we don't want when harvesting.
Copy just the aspnetcore shared Fx to the harvest location -->
<ItemGroup>
<SharedFxFilesToHarvest Include="$(ExtractPath)\shared\Microsoft.AspNetCore.App\**\*" />
</ItemGroup>
<Copy SourceFiles="@(SharedFxFilesToHarvest)" DestinationFolder="$(HarvestSource)\shared\Microsoft.AspNetCore.App\%(RecursiveDir)" />
</Target>

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />

<PropertyGroup>
<PackageFileName>$(InternalInstallerBaseName)-$(PackageVersion)-win-$(Platform)$(TargetExt)</PackageFileName>
<PackageFileName>$(RuntimeInstallerBaseName)-internal-$(PackageVersion)-win-$(Platform)$(TargetExt)</PackageFileName>
</PropertyGroup>

<!-- Overwrite the wix package drop creation target to create a lit
Expand Down