Combine packaging props and publish props for deb packages
authorKarthik Rajasekaran <karajas@microsoft.com>
Thu, 25 May 2017 22:52:30 +0000 (15:52 -0700)
committerKarthik Rajasekaran <karajas@microsoft.com>
Thu, 25 May 2017 22:52:30 +0000 (15:52 -0700)
Commit migrated from https://github.com/dotnet/core-setup/commit/25f8974b793cf75e6509083e6d3b1b67fac298a8

src/installer/dir.props
src/installer/pkg/packaging/dir.props
src/installer/publish/dir.targets

index 783789f..39af4de 100644 (file)
     <HostPolicyBaseName>$(LibPrefix)hostpolicy$(LibSuffix)</HostPolicyBaseName>      
   </PropertyGroup>
 
-  <!-- Use actual publishable (non-dummy) package name produced by the build system for this RID -->
-  <!-- TODO: chcosta - do we really need this? -->
-  <PropertyGroup Condition="'$(TargetRid)' != ''">
-    <PackageTargetRid>$(TargetRid)</PackageTargetRid>
-    <PackageTargetRid Condition="'$(TargetRid)' == 'osx.10.11-x64'">osx.10.10-x64</PackageTargetRid>
-    <PackageTargetRid Condition="'$(TargetRid)' == 'rhel.7.0-x64'">rhel.7-x64</PackageTargetRid>
-    <PackageTargetRid Condition="'$(TargetRid)' == 'rhel.7.1-x64'">rhel.7-x64</PackageTargetRid>
-    <PackageTargetRid Condition="'$(TargetRid)' == 'rhel.7.2-x64'">rhel.7-x64</PackageTargetRid>
-    <PackageTargetRid Condition="'$(TargetRid)' == 'rhel.7.3-x64'">rhel.7-x64</PackageTargetRid>
-    <PackageTargetRid Condition="'$(TargetRid)' == 'rhel.7.2-x64'">rhel.7-x64</PackageTargetRid>    
-  </PropertyGroup>
-
   <PropertyGroup>
     <CrossGenSymbolExtension>.map</CrossGenSymbolExtension>
     <CrossGenSymbolExtension Condition="'$(OSGroup)' == 'Windows_NT'">.ni.pdb</CrossGenSymbolExtension>
index 0a4b661..708c409 100644 (file)
   </PropertyGroup>
 
   <PropertyGroup>
-    <ProductMoniker>$(SharedFrameworkNugetVersion)-$(PackageTargetRid)</ProductMoniker>
-    <HostResolverVersionMoniker>$(HostResolverVersion)-$(PackageTargetRid)</HostResolverVersionMoniker>
-  </PropertyGroup>
-
-  <PropertyGroup>
     <CombinedCompressedFile>dotnet-runtime-$(ProductMoniker)$(CompressedFileExtension)</CombinedCompressedFile>
     <HostFxrCompressedFile>dotnet-hostfxr-internal-$(PackageTargetRid).$(HostResolverVersion)$(CompressedFileExtension)</HostFxrCompressedFile>
     <SharedFrameworkCompressedFile>dotnet-runtime-internal-$(ProductMoniker)$(CompressedFileExtension)</SharedFrameworkCompressedFile>
   </PropertyGroup>
 
   <PropertyGroup>
-    <CombinedInstallerFile>$(CombinedInstallerStart)$(ProductMoniker)$(CombinedInstallerExtension)</CombinedInstallerFile>
-    <CombinedInstallerEngine>$(CombinedInstallerStart)$(ProductMoniker)-engine.exe</CombinedInstallerEngine>
-    <SharedHostInstallerFile>$(SharedHostInstallerStart)$(ProductMoniker)$(InstallerExtension)</SharedHostInstallerFile>
-    <HostFxrInstallerFile>$(HostFxrInstallerStart)$(HostResolverVersionMoniker)$(InstallerExtension)</HostFxrInstallerFile>
-    <SharedFrameworkInstallerFile>$(SharedFrameworkInstallerStart)$(ProductMoniker)$(InstallerExtension)</SharedFrameworkInstallerFile>
-  </PropertyGroup>
-
-  <PropertyGroup>
     <ProductBrandPrefix>Microsoft .NET Core $(ProductionVersion)</ProductBrandPrefix>
     <ProductBrandPrefix Condition="'$(ReleaseBrandSuffix)'!=''">Microsoft .NET Core $(ProductionVersion) $(ReleaseBrandSuffix)</ProductBrandPrefix>
     <SharedHostBrandName>$(ProductBrandPrefix) Host</SharedHostBrandName>
index d28c172..3862365 100644 (file)
            Text=" Missing parameters for debian publish." />
            
     <ItemGroup>
-      <DebInstallerFile Include="$(SharedHostInstallerStart)$(ProductMoniker).deb" >
+      <DebInstallerFile Include="$(SharedHostInstallerFile)" >
         <PackageName>dotnet-host</PackageName>
       </DebInstallerFile>
-      <DebInstallerFile Include="$(HostFxrInstallerStart)$(HostResolverVersionMoniker).deb" >
-        <PackageName>dotnet-hostfxr-$(HostResolverVersion.ToLower())</PackageName>
+      <DebInstallerFile Include="$(HostFxrInstallerFile)" >
+        <PackageName>$([System.IO.Path]::GetFileNameWithoutExtension('$(HostFxrInstallerFile)'))</PackageName>
       </DebInstallerFile>
-      <DebInstallerFile Include="$(SharedFrameworkInstallerStart)$(ProductMoniker).deb">
-        <PackageName>dotnet-runtime-$(SharedFrameworkNugetVersion.ToLower())</PackageName>
+      <DebInstallerFile Include="$(SharedFrameworkInstallerFile)">
+        <PackageName>$([System.IO.Path]::GetFileNameWithoutExtension('$(SharedFrameworkInstallerFile)'))</PackageName>
       </DebInstallerFile>
 
       <DebInstallerFile>