Skip to content

Commit

Permalink
Adding maint version to brackets win installer (adobe#640)
Browse files Browse the repository at this point in the history
This will allow an prerelease installer to upgrade a release build
easily.
  • Loading branch information
gavankar authored and swmitra committed Apr 25, 2018
1 parent d5c923f commit 5be890b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions installer/win/brackets-win-install-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ default="build.mul">
<property name="product.shortname" value="Brackets"/>
<property name="product.release.number.major" value="1"/>
<property name="product.release.number.minor" value="13"/>
<property name="product.version.number" value="${product.release.number.major}.${product.release.number.minor}"/>
<property name="product.version.name" value="Release ${product.version.number}"/>
<property name="product.release.number.maint" value="0"/>
<property name="product.version.number" value="${product.release.number.major}.${product.release.number.minor}.${product.release.number.maint}"/>
<property name="product.version.name" value="Release ${product.release.number.major}.${product.release.number.minor}"/>
<property name="product.fullname" value="Brackets ${product.version.name}"/>
<property name="product.manufacturer" value="brackets.io"/>
<property name="product.registry.root" value="${product.shortname}"/>
Expand Down
5 changes: 5 additions & 0 deletions tasks/set-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ module.exports = function (grunt) {
/<property name="product\.release\.number\.minor" value="(\d+)"\/>/,
'<property name="product.release.number.minor" value="' + newVersion.minor + '"/>'
);
text = safeReplace(
text,
/<property name="product\.release\.number\.maint" value="(\d+)"\/>/,
'<property name="product.release.number.maint" value="' + newVersion.patch + '"/>'
);
grunt.file.write(winInstallerBuildXmlPath, text);

// 3. Open installer/mac/buildInstaller.sh and change `dmgName`
Expand Down

0 comments on commit 5be890b

Please sign in to comment.