Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Commit

Permalink
ReleasePackagingTool changes:
Browse files Browse the repository at this point in the history
 [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
  • Loading branch information
enricogior committed Jun 24, 2015
1 parent 8ea708f commit 1cb3e84
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
19 changes: 16 additions & 3 deletions msvs/ReleasePackagingTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ static void Main(string[] args)

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;
}
Expand Down Expand Up @@ -154,6 +160,12 @@ void UpdateNuSpecFiles(string redisVersion)

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);

Expand All @@ -164,7 +176,8 @@ void BuildReleasePackage(string version)
"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<string> docuementNames = new List<string>()
Expand Down
6 changes: 3 additions & 3 deletions msvs/setups/chocolatey/template/Redis.nuspec.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
<id>redis-64</id>
<title>redis-64</title>
<version>CurrentRedisVersion</version>
<authors>Jonathan Pickett</authors>
<authors>Alexis Campailla, Enrico Giordani, Jonathan Pickett</authors>
<owners>Microsoft Open Technologies, Inc.</owners>
<summary>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.</summary>
<description>A production-ready Windows port of Redis, including 64-bit support, Chocolatey support, and much more.</description>
<description>Redis on Windows 64-bit.</description>
<projectUrl>https://msopentech.com/opentech-projects/redis/</projectUrl>
<tags>Redis nosql cache</tags>
<copyright>Copyright Microsoft Open Technologies, Inc.</copyright>
<licenseUrl>https://github.com/MSOpenTech/redis/blob/2.8/license.txt</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>http://redis.io/images/redis.png</iconUrl>
<releaseNotes>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.</releaseNotes>
<releaseNotes>https://raw.githubusercontent.com/MSOpenTech/redis/2.8/Redis%20on%20Windows%20Release%20Notes.md</releaseNotes>
</metadata>
<files>
<file src="..\signed_binaries\*.*" target=".\" />
Expand Down
6 changes: 3 additions & 3 deletions msvs/setups/nuget/template/Redis.nuspec.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
<id>redis-64</id>
<title>redis-64</title>
<version>CurrentRedisVersion</version>
<authors>Jonathan Pickett</authors>
<authors>Alexis Campailla, Enrico Giordani, Jonathan Pickett</authors>
<owners>Microsoft Open Technologies, Inc.</owners>
<summary>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.</summary>
<description>A production-ready Windows port of Redis, including 64-bit support, Chocolatey support, and much more.</description>
<description>Redis on Windows 64-bit.</description>
<projectUrl>https://msopentech.com/opentech-projects/redis/</projectUrl>
<tags>Redis nosql cache</tags>
<copyright>Copyright Microsoft Open Technologies, Inc.</copyright>
<licenseUrl>https://github.com/MSOpenTech/redis/blob/2.8/license.txt</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>http://redis.io/images/redis.png</iconUrl>
<releaseNotes>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.</releaseNotes>
<releaseNotes>https://raw.githubusercontent.com/MSOpenTech/redis/2.8/Redis%20on%20Windows%20Release%20Notes.md</releaseNotes>
</metadata>
<files>
<file src="..\signed_binaries\*.*" target=".\" />
Expand Down

0 comments on commit 1cb3e84

Please sign in to comment.