From 1cb3e8481435677510e042f59388299b9ff29d7e Mon Sep 17 00:00:00 2001 From: Enrico Giordani Date: Wed, 24 Jun 2015 11:59:45 +0200 Subject: [PATCH] ReleasePackagingTool changes: [change] the release notes file is not anymore generated from a template [change] the .md files are not anymore generated from the .docx files [new] added redis-server.pdb symbols to the zip package file [fix] create the release package directory if it doesn't exist --- msvs/ReleasePackagingTool/Program.cs | 19 ++++++++++++++++--- .../chocolatey/template/Redis.nuspec.template | 6 +++--- .../nuget/template/Redis.nuspec.template | 6 +++--- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/msvs/ReleasePackagingTool/Program.cs b/msvs/ReleasePackagingTool/Program.cs index dd7d1789..fbe9286d 100644 --- a/msvs/ReleasePackagingTool/Program.cs +++ b/msvs/ReleasePackagingTool/Program.cs @@ -28,10 +28,16 @@ namespace ReleasePackagingTool string version; version = p.GetRedisVersion(); - p.UpdateReleaseNotes(version); + // Starting with the 2.8.21 release the Release Notes file has a new format and it doesn't need to be updated + //p.UpdateReleaseNotes(version); + p.UpdateNuSpecFiles(version); + p.BuildReleasePackage(version); - p.DocxToMd(); + + // Starting with the 2.8.21 release the .md documents are not anymore generated using the .docx files + //p.DocxToMd(); + Console.Write("Release packaging complete."); Environment.ExitCode = 0; } @@ -154,6 +160,12 @@ namespace ReleasePackagingTool void BuildReleasePackage(string version) { + string releasePackageDir = Path.Combine(rootPath, @"bin\Release\"); + if (Directory.Exists(releasePackageDir) == false) + { + Directory.CreateDirectory(releasePackageDir); + } + string releasePackagePath = Path.Combine(rootPath, @"bin\Release\redis-" + version + ".zip"); ForceFileErase(releasePackagePath); @@ -164,7 +176,8 @@ namespace ReleasePackagingTool "redis-check-aof.exe", "redis-check-dump.exe", "redis-cli.exe", - "redis-server.exe" + "redis-server.exe", + "redis-server.pdb" }; string documentsRoot = Path.Combine(rootPath, @"msvs\setups\documentation"); List docuementNames = new List() diff --git a/msvs/setups/chocolatey/template/Redis.nuspec.template b/msvs/setups/chocolatey/template/Redis.nuspec.template index c44066ed..475c1c3a 100644 --- a/msvs/setups/chocolatey/template/Redis.nuspec.template +++ b/msvs/setups/chocolatey/template/Redis.nuspec.template @@ -4,17 +4,17 @@ redis-64 redis-64 CurrentRedisVersion - Jonathan Pickett + Alexis Campailla, Enrico Giordani, Jonathan Pickett Microsoft Open Technologies, Inc. Redis is a very popular open-source, networked, in-memory, key-value data store known for high performance, flexibility, a rich set of data structures, and a simple straightforward API. - A production-ready Windows port of Redis, including 64-bit support, Chocolatey support, and much more. + Redis on Windows 64-bit. https://msopentech.com/opentech-projects/redis/ Redis nosql cache Copyright Microsoft Open Technologies, Inc. https://github.com/MSOpenTech/redis/blob/2.8/license.txt false http://redis.io/images/redis.png - Includes the changes from Redis 2.8.12 -> CurrentRedisVersion. Please see the release notes for the UNIX 2.8 branch to understand how this impacts Redis functionality. + https://raw.githubusercontent.com/MSOpenTech/redis/2.8/Redis%20on%20Windows%20Release%20Notes.md diff --git a/msvs/setups/nuget/template/Redis.nuspec.template b/msvs/setups/nuget/template/Redis.nuspec.template index c44066ed..475c1c3a 100644 --- a/msvs/setups/nuget/template/Redis.nuspec.template +++ b/msvs/setups/nuget/template/Redis.nuspec.template @@ -4,17 +4,17 @@ redis-64 redis-64 CurrentRedisVersion - Jonathan Pickett + Alexis Campailla, Enrico Giordani, Jonathan Pickett Microsoft Open Technologies, Inc. Redis is a very popular open-source, networked, in-memory, key-value data store known for high performance, flexibility, a rich set of data structures, and a simple straightforward API. - A production-ready Windows port of Redis, including 64-bit support, Chocolatey support, and much more. + Redis on Windows 64-bit. https://msopentech.com/opentech-projects/redis/ Redis nosql cache Copyright Microsoft Open Technologies, Inc. https://github.com/MSOpenTech/redis/blob/2.8/license.txt false http://redis.io/images/redis.png - Includes the changes from Redis 2.8.12 -> CurrentRedisVersion. Please see the release notes for the UNIX 2.8 branch to understand how this impacts Redis functionality. + https://raw.githubusercontent.com/MSOpenTech/redis/2.8/Redis%20on%20Windows%20Release%20Notes.md