From 2bee59a9bc0227c38737cf28c24c2880e8b53885 Mon Sep 17 00:00:00 2001 From: Daniel Plaisted Date: Tue, 6 Nov 2018 14:29:00 -0800 Subject: [PATCH] Create Mac PKG --- src/redist/redist.csproj | 1 + src/redist/targets/Branding.targets | 2 + src/redist/targets/GenerateDebs.targets | 17 +-- src/redist/targets/GenerateMSIs.targets | 30 ++--- src/redist/targets/GeneratePKG.targets | 116 +++++++++--------- src/redist/targets/GenerateRPMs.targets | 8 +- .../osx/clisdk/Distribution-Template | 0 .../clisdk/resources/cs.lproj/conclusion.html | 0 .../clisdk/resources/cs.lproj/welcome.html | 0 .../clisdk/resources/de.lproj/conclusion.html | 0 .../clisdk/resources/de.lproj/welcome.html | 0 .../clisdk/resources/en.lproj/conclusion.html | 0 .../clisdk/resources/en.lproj/welcome.html | 0 .../clisdk/resources/es.lproj/conclusion.html | 0 .../clisdk/resources/es.lproj/welcome.html | 0 .../clisdk/resources/fr.lproj/conclusion.html | 0 .../clisdk/resources/fr.lproj/welcome.html | 0 .../clisdk/resources/it.lproj/conclusion.html | 0 .../clisdk/resources/it.lproj/welcome.html | 0 .../clisdk/resources/ja.lproj/conclusion.html | 0 .../clisdk/resources/ja.lproj/welcome.html | 0 .../clisdk/resources/ko.lproj/conclusion.html | 0 .../clisdk/resources/ko.lproj/welcome.html | 0 .../clisdk/resources/pl.lproj/conclusion.html | 0 .../clisdk/resources/pl.lproj/welcome.html | 0 .../resources/pt-br.lproj/conclusion.html | 0 .../clisdk/resources/pt-br.lproj/welcome.html | 0 .../clisdk/resources/ru.lproj/conclusion.html | 0 .../clisdk/resources/ru.lproj/welcome.html | 0 .../clisdk/resources/tr.lproj/conclusion.html | 0 .../clisdk/resources/tr.lproj/welcome.html | 0 .../resources/zh-hans.lproj/conclusion.html | 0 .../resources/zh-hans.lproj/welcome.html | 0 .../resources/zh-hant.lproj/conclusion.html | 0 .../resources/zh-hant.lproj/welcome.html | 0 .../packaging/osx/clisdk/scripts/postinstall | 0 36 files changed, 90 insertions(+), 84 deletions(-) rename {old => src/redist/targets}/packaging/osx/clisdk/Distribution-Template (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/cs.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/cs.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/de.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/de.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/en.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/en.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/es.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/es.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/fr.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/fr.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/it.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/it.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/ja.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/ja.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/ko.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/ko.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/pl.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/pl.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/pt-br.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/pt-br.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/ru.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/ru.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/tr.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/tr.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/zh-hans.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/zh-hans.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/zh-hant.lproj/conclusion.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/resources/zh-hant.lproj/welcome.html (100%) rename {old => src/redist/targets}/packaging/osx/clisdk/scripts/postinstall (100%) diff --git a/src/redist/redist.csproj b/src/redist/redist.csproj index e547222cd..b87bd8041 100644 --- a/src/redist/redist.csproj +++ b/src/redist/redist.csproj @@ -18,5 +18,6 @@ + diff --git a/src/redist/targets/Branding.targets b/src/redist/targets/Branding.targets index 516c9eaf0..a7abac29e 100644 --- a/src/redist/targets/Branding.targets +++ b/src/redist/targets/Branding.targets @@ -9,6 +9,8 @@ Microsoft .NET Core Host $(CliVersionNoSuffix) - Preview Microsoft .NET Core Host FX Resolver $(CliVersionNoSuffix) - Preview + Microsoft.NETCore.App + $(SharedFrameworkName) diff --git a/src/redist/targets/GenerateDebs.targets b/src/redist/targets/GenerateDebs.targets index f6eeb425a..1fd192e50 100644 --- a/src/redist/targets/GenerateDebs.targets +++ b/src/redist/targets/GenerateDebs.targets @@ -11,7 +11,8 @@ GetCurrentRuntimeInformation; SetupFileExtensions; CalculateLinuxNativeInstallerDependencyVersions; - SetSdkBrandingInfo"> + SetSdkBrandingInfo; + SetInstallerInfo"> $(MSBuildProjectDirectory) @@ -69,7 +70,7 @@ $(ArtifactsShippingPackagesDir) - $(InstallerOutputDirectory)$(DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(InstallerExtension) + $(InstallerOutputDirectory)$(DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(InstallerExtension) $(IntermediateOutputPath)debian/sdk/ $(SdkDebianIntermediateDirectory)deb-tool-output $(SdkDebianIntermediateDirectory)debian-testResults.xml @@ -139,7 +140,7 @@ --> - + @@ -190,7 +191,7 @@ PrepareDotnetDebTool; GetAspNetSharedFxInstallArgs;" Inputs="@(CLISdkFiles)" - Outputs="$(SdkInstallerFile)" > + Outputs="$(SdkDebInstallerFile)" > @@ -251,7 +252,7 @@ @@ -290,7 +291,7 @@ - + - + $(SdkDebianIntermediateDirectory)debianLayoutDirectory @@ -49,7 +49,7 @@ - + - + - + @@ -98,11 +98,11 @@ DependsOnTargets="GenerateLayout;AcquireWix;MsiTargetsSetupInputOutputs;SetSdkBrandingInfo" Condition=" '$(OS)' == 'Windows_NT'" Inputs="@(GenerateSdkMsiInputs)" - Outputs="$(SdkInstallerFile)"> + Outputs="$(SdkMSIInstallerFile)"> + Outputs="$(CombinedFrameworkSdkHostMSIInstallerFile)"> @@ -193,11 +193,11 @@ diff --git a/src/redist/targets/GeneratePKG.targets b/src/redist/targets/GeneratePKG.targets index 9eae8730d..3234b935a 100644 --- a/src/redist/targets/GeneratePKG.targets +++ b/src/redist/targets/GeneratePKG.targets @@ -1,34 +1,38 @@ - - - - $(IntermediateDirectory)/pkgs/$(SdkVersion) + + + + $(IntermediateOutputPath)pkgs/$(SdkVersion) - - com.microsoft.dotnet.sharedhost.$(SharedHostVersion).component.osx.x64 - com.microsoft.dotnet.hostfxr.$(HostFxrVersion).component.osx.x64 - com.microsoft.dotnet.sharedframework.$(SharedFrameworkNugetName).$(MicrosoftNETCoreAppPackageVersion).component.osx.x64 - com.microsoft.dotnet.dev.$(SdkVersion).component.osx.x64 - com.microsoft.dotnet.dev.$(SdkVersion).osx.x64 + + com.microsoft.dotnet.sharedhost.$(SharedHostVersion).component.osx.x64 + com.microsoft.dotnet.hostfxr.$(HostFxrVersion).component.osx.x64 + com.microsoft.dotnet.sharedframework.$(SharedFrameworkNugetName).$(MicrosoftNETCoreAppPackageVersion).component.osx.x64 + com.microsoft.dotnet.dev.$(SdkVersion).component.osx.x64 + com.microsoft.dotnet.dev.$(SdkVersion).osx.x64 - /usr/local/share/dotnet + /usr/local/share/dotnet - $(RepoRoot)/packaging/osx/clisdk - $(SdkPkgSourcesRootDirectory)/scripts - $(SdkPkgScriptsDirectory)/postinstall - $(PkgIntermediateDirectory)/scripts - $(SdkPkgDestinationScriptsDirectory)/postinstall - $(PkgIntermediateDirectory)/resources + $(MSBuildThisFileDirectory)packaging/osx/clisdk + $(SdkPkgSourcesRootDirectory)/scripts + $(SdkPkgScriptsDirectory)/postinstall + $(PkgIntermediateDirectory)/scripts + $(SdkPkgDestinationScriptsDirectory)/postinstall + $(PkgIntermediateDirectory)/resources - $(SdkPkgSourcesRootDirectory)/Distribution-Template - $(PkgIntermediateDirectory)/CLI-SDK-Formatted-Distribution-Template.xml + $(SdkPkgSourcesRootDirectory)/Distribution-Template + $(PkgIntermediateDirectory)/CLI-SDK-Formatted-Distribution-Template.xml - $(PkgIntermediateDirectory)/$(SdkComponentId).pkg - $(PkgIntermediateDirectory)/$(SharedFrameworkComponentId).pkg - $(PkgIntermediateDirectory)/$(SharedHostComponentId).pkg - $(PkgIntermediateDirectory)/$(HostFxrComponentId).pkg - + $(PkgIntermediateDirectory)/$(SdkComponentId).pkg + $(PkgIntermediateDirectory)/$(SharedFrameworkComponentId).pkg + $(PkgIntermediateDirectory)/$(SharedHostComponentId).pkg + $(PkgIntermediateDirectory)/$(HostFxrComponentId).pkg + + $(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionSdk)$(InstallerExtension) + $(ArtifactsShippingPackagesDir)$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(BundleExtension) + + - + $(SharedFrameworkComponentId) @@ -75,16 +79,16 @@ - + - + - + @@ -95,12 +99,13 @@ - - + + + - + - + '%(Identity)')" ReplacementStrings="@(DistributionTemplateReplacement -> '%(ReplacementString)')" /> - + + GenerateSdkProductArchive"/> diff --git a/src/redist/targets/GenerateRPMs.targets b/src/redist/targets/GenerateRPMs.targets index 0bd23052b..30608fb9a 100644 --- a/src/redist/targets/GenerateRPMs.targets +++ b/src/redist/targets/GenerateRPMs.targets @@ -105,7 +105,7 @@ --> - + dotnet-runtime-deps-$(RuntimeDepsPackageVersion) $(SdkVersion) $(RedistLayoutPath)sdk/ - $(ArtifactsShippingPackagesDir)$(DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(InstallerExtension) - $(SdkInstallerFile) + $(ArtifactsShippingPackagesDir)$(DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)$(InstallerExtension) + $(SdkRPMInstallerFile) $(RepoRoot)/Documentation/manpages $(MSBuildThisFileDirectory)packaging/rpm/dotnet-config.json @@ -239,7 +239,7 @@ - +