Installer generation updates

This commit is contained in:
John Luo 2017-06-28 20:18:18 -07:00
parent 64ed5bb4ff
commit eb1f72c369
3 changed files with 69 additions and 22 deletions

View File

@ -362,13 +362,65 @@
SkipUnchangedFiles="False" SkipUnchangedFiles="False"
UseHardlinksIfPossible="False" /> UseHardlinksIfPossible="False" />
<!-- Update Date and Version --> <!-- Common installer parameters -->
<Exec Command="sed -i -e 's/DATE/$([System.DateTime]::UtcNow.ToString(ddd MMM dd yyyy))/' $(RuntimeStoreInstallerLayoutTimestampDirectory)templates/changelog" /> <JsonPeek Query="$.short_description" JsonInputPath="$(DebianConfigTemplateFile)">
<Exec Command="sed -i -e 's/DATE/$([System.DateTime]::UtcNow.ToString(ddd MMM dd yyyy))/' $(RuntimeStoreInstallerLayoutNoTimestampDirectory)templates/changelog" /> <Output TaskParameter="Result" ItemName="_InstallerSummary" />
<Exec Command="sed -i -e 's/PACKAGE_VERSION/$(TimestampVersion)/' $(RuntimeStoreInstallerLayoutTimestampDirectory)templates/changelog" /> </JsonPeek>
<Exec Command="sed -i -e 's/PACKAGE_VERSION/$(NoTimestampVersion)/' $(RuntimeStoreInstallerLayoutNoTimestampDirectory)templates/changelog" /> <JsonPeek Query="$.long_description" JsonInputPath="$(DebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_InstallerDescription" />
</JsonPeek>
<JsonPeek Query="$.license.type" JsonInputPath="$(DebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_InstallerLicense" />
</JsonPeek>
<JsonPeek Query="$.release.package_revision" JsonInputPath="$(DebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_InstallerPackageRevision" />
</JsonPeek>
<JsonPeek Query="$.homepage" JsonInputPath="$(DebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_InstallerHomepage" />
</JsonPeek>
<JsonPeek Query="$.maintainer_name" JsonInputPath="$(DebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_InstallerMaintainerName" />
</JsonPeek>
<JsonPeek Query="$.maintainer_email" JsonInputPath="$(DebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_InstallerMaintainerEmail" />
</JsonPeek>
<JsonPeek Query="$.release.changelog_message" JsonInputPath="$(DebianConfigTemplateFile)">
<Output TaskParameter="Result" ItemName="_InstallerChangelogMessage" />
</JsonPeek>
<MSBuild Projects="$(ProjectPath)" Targets="BuildRuntimeStoreRPM" Properties="InstallerPlatform=rhel" /> <PropertyGroup>
<InstallerSummary>@(_InstallerSummary)</InstallerSummary>
<InstallerDescription>@(_InstallerDescription)</InstallerDescription>
<InstallerLicense>@(_InstallerLicense)</InstallerLicense>
<InstallerPackageRevision>@(_InstallerPackageRevision)</InstallerPackageRevision>
<InstallerHomepage>@(_InstallerHomepage)</InstallerHomepage>
<InstallerMaintainerName>@(_InstallerMaintainerName)</InstallerMaintainerName>
<InstallerMaintainerEmail>@(_InstallerMaintainerEmail)</InstallerMaintainerEmail>
<InstallerChangelogMessage>@(_InstallerChangelogMessage)</InstallerChangelogMessage>
</PropertyGroup>
<!-- Update Date, Maintainer, Version, Revision and Changelog Message -->
<Exec Command="sed -i
-e 's/DATE/$([System.DateTime]::UtcNow.ToString(ddd MMM dd yyyy))/'
-e 's/MAINTAINER_NAME/$(InstallerMaintainerName)/'
-e 's/MAINTAINER_EMAIL/$(InstallerMaintainerEmail)/'
-e 's/PACKAGE_VERSION/$(TimestampVersion)/'
-e 's/PACKAGE_REVISION/$(InstallerPackageRevision)/'
-e 's/CHANGELOG_MESSAGE/$(InstallerChangelogMessage)/'
$(RuntimeStoreInstallerLayoutTimestampDirectory)templates/changelog" />
<Exec Command="sed -i
-e 's/DATE/$([System.DateTime]::UtcNow.ToString(ddd MMM dd yyyy))/'
-e 's/MAINTAINER_NAME/$(InstallerMaintainerName)/'
-e 's/MAINTAINER_EMAIL/$(InstallerMaintainerEmail)/'
-e 's/PACKAGE_VERSION/$(NoTimestampVersion)/'
-e 's/PACKAGE_REVISION/$(InstallerPackageRevision)/'
-e 's/CHANGELOG_MESSAGE/$(InstallerChangelogMessage)/'
$(RuntimeStoreInstallerLayoutNoTimestampDirectory)templates/changelog" />
<MSBuild
Projects="$(ProjectPath)"
Targets="BuildRuntimeStoreRPM"
Properties="InstallerPlatform=rhel;InstallerSummary=$(InstallerSummary);InstallerDescription=$(InstallerDescription);InstallerLicense=$(InstallerLicense);InstallerPackageRevision=$(InstallerPackageRevision);InstallerHomepage=$(InstallerHomepage);InstallerMaintainerName=$(InstallerMaintainerName);InstallerMaintainerEmail=$(InstallerMaintainerEmail);InstallerChangelogMessage=$(InstallerChangelogMessage)" />
</Target> </Target>
<Target Name="BuildRuntimeStoreRPM"> <Target Name="BuildRuntimeStoreRPM">
@ -378,17 +430,12 @@
</ItemGroup> </ItemGroup>
<PropertyGroup> <PropertyGroup>
<!-- rpm unique installer parameters -->
<RuntimeStoreTimestampRPMFileName>$(RuntimeStoreTimestampInstallerPackageName)-$(InstallerPlatform)-$(PACKAGE_CACHE_PLATFORM).rpm</RuntimeStoreTimestampRPMFileName> <RuntimeStoreTimestampRPMFileName>$(RuntimeStoreTimestampInstallerPackageName)-$(InstallerPlatform)-$(PACKAGE_CACHE_PLATFORM).rpm</RuntimeStoreTimestampRPMFileName>
<RuntimeStoreNoTimestampRPMFileName>$(RuntimeStoreNoTimestampInstallerPackageName)-$(InstallerPlatform)-$(PACKAGE_CACHE_PLATFORM).rpm</RuntimeStoreNoTimestampRPMFileName> <RuntimeStoreNoTimestampRPMFileName>$(RuntimeStoreNoTimestampInstallerPackageName)-$(InstallerPlatform)-$(PACKAGE_CACHE_PLATFORM).rpm</RuntimeStoreNoTimestampRPMFileName>
<RPMDirectoriesArguments>@(RPMDirectories->' --directories &quot;%(FullPath)&quot;', ' ')</RPMDirectoriesArguments> <RPMDirectoriesArguments>@(RPMDirectories->' --directories &quot;%(FullPath)&quot;', ' ')</RPMDirectoriesArguments>
<InstallerSummary>Microsoft ASP.NET Core Runtime Package Store 2.0.0 - Preview 2</InstallerSummary> <InstallerMaintainer>$(InstallerMaintainerName) &lt;$(InstallerMaintainerEmail)&gt;</InstallerMaintainer>
<InstalerDescription>Runtime package store for Microsoft ASP.NET Core. It is open source, cross-platform and is supported by Microsoft. We hope you enjoy using it! If you do, please consider joining the active community of developers that are contributing to the project on GitHub (https://github.com/aspnet/home). We happily accept issues and PRs.</InstalerDescription>
<InstallerMaintainerName>Microsoft</InstallerMaintainerName>
<InstallerMaintainerEmail>nugetaspnet@microsoft.com</InstallerMaintainerEmail>
<InstallerVendor>.NET Foundation</InstallerVendor> <InstallerVendor>.NET Foundation</InstallerVendor>
<InstallerLicense>Apache-2.0</InstallerLicense>
<InstallerPackageRevision>1</InstallerPackageRevision>
<InstallerHomepage>https://www.asp.net/</InstallerHomepage>
<InstallerInstallRoot>/opt/rh/rh-dotnet20/root/usr/lib64/dotnet</InstallerInstallRoot> <InstallerInstallRoot>/opt/rh/rh-dotnet20/root/usr/lib64/dotnet</InstallerInstallRoot>
</PropertyGroup> </PropertyGroup>
@ -416,14 +463,14 @@
$(RPMDirectoriesArguments) $(RPMDirectoriesArguments)
--rpm-changelog $(DockerRootDirectory)artifacts/itLayout/templates/changelog --rpm-changelog $(DockerRootDirectory)artifacts/itLayout/templates/changelog
--rpm-summary &quot;$(InstallerSummary)&quot; --rpm-summary &quot;$(InstallerSummary)&quot;
--description &quot;$(InstalerDescription)&quot; --description &quot;$(InstallerDescription)&quot;
--maintainer &quot;$(InstallerMaintainerName) &lt;$(InstallerMaintainerEmail)&gt;&quot; --maintainer &quot;$(InstallerMaintainer)&quot;
--vendor &quot;$(InstallerVendor)&quot; --vendor &quot;$(InstallerVendor)&quot;
-p $(DockerRootDirectory)artifacts/itOutput/$(RuntimeStoreTimestampRPMFileName) -p $(DockerRootDirectory)artifacts/itOutput/$(RuntimeStoreTimestampRPMFileName)
--license &quot;$(InstallerLicense)&quot; --license &quot;$(InstallerLicense)&quot;
--iteration $(InstallerPackageRevision) --iteration $(InstallerPackageRevision)
--url &quot;$(InstallerHomepage)&quot; --url &quot;$(InstallerHomepage)&quot;
$(DockerRootDirectory)artifacts/itLayout/package_root/=$(InstallerInstallRoot)" /> $(DockerRootDirectory)artifacts/itLayout/package_root/=&quot;$(InstallerInstallRoot)&quot;" />
<Exec Command="docker run <Exec Command="docker run
--rm --rm
-v $(RepositoryRoot):$(DockerRootDirectory) -v $(RepositoryRoot):$(DockerRootDirectory)
@ -438,8 +485,8 @@
$(RPMDirectoriesArguments) $(RPMDirectoriesArguments)
--rpm-changelog $(DockerRootDirectory)artifacts/inLayout/templates/changelog --rpm-changelog $(DockerRootDirectory)artifacts/inLayout/templates/changelog
--rpm-summary &quot;$(InstallerSummary)&quot; --rpm-summary &quot;$(InstallerSummary)&quot;
--description &quot;$(InstalerDescription)&quot; --description &quot;$(InstallerDescription)&quot;
--maintainer &quot;$(InstallerMaintainerName) %3C$(InstallerMaintainerEmail)%3E&quot; --maintainer &quot;$(InstallerMaintainer)&quot;
--vendor &quot;$(InstallerVendor)&quot; --vendor &quot;$(InstallerVendor)&quot;
-p $(DockerRootDirectory)artifacts/inOutput/$(RuntimeStoreNoTimestampRPMFileName) -p $(DockerRootDirectory)artifacts/inOutput/$(RuntimeStoreNoTimestampRPMFileName)
--license &quot;$(InstallerLicense)&quot; --license &quot;$(InstallerLicense)&quot;

View File

@ -1,2 +1,2 @@
* DATE Microsoft <nugetaspnet@microsoft.com> - PACKAGE_VERSION-1 * DATE MAINTAINER_NAME <MAINTAINER_EMAIL> - PACKAGE_VERSION-PACKAGE_REVISION
- Bootstrap loop package - CHANGELOG_MESSAGE

View File

@ -5,7 +5,7 @@
"package_name": "aspnetcore-store", "package_name": "aspnetcore-store",
"install_root": "/usr/share/dotnet", "install_root": "/usr/share/dotnet",
"short_description": "Microsoft ASP.NET Core Runtime Package Store 2.0.0 - Preview 3", "short_description": "Microsoft ASP.NET Core Runtime Package Store 2.0.0",
"long_description": "Runtime package store for Microsoft ASP.NET Core. It is open source, cross-platform and is supported by Microsoft. We hope you enjoy using it! If you do, please consider joining the active community of developers that are contributing to the project on GitHub (https://github.com/aspnet/home). We happily accept issues and PRs.", "long_description": "Runtime package store for Microsoft ASP.NET Core. It is open source, cross-platform and is supported by Microsoft. We hope you enjoy using it! If you do, please consider joining the active community of developers that are contributing to the project on GitHub (https://github.com/aspnet/home). We happily accept issues and PRs.",
"homepage": "https://www.asp.net/", "homepage": "https://www.asp.net/",
@ -16,7 +16,7 @@
"changelog_message" : "Bootstrap loop package" "changelog_message" : "Bootstrap loop package"
}, },
"control": { "control": {
"priority":"standard", "priority":"standard",
"section":"devel", "section":"devel",
"architecture":"any" "architecture":"any"