Bump v2.1.0-unsupported.20180809

This commit is contained in:
John Kleinschmidt
2018-08-09 15:29:29 -04:00
parent cd87b2e709
commit 9d1e7a7a65
5 changed files with 16 additions and 9 deletions

View File

@@ -17,9 +17,9 @@
<key>CFBundleIconFile</key>
<string>electron.icns</string>
<key>CFBundleVersion</key>
<string>2.1.0-unsupported-20180809</string>
<string>2.1.0</string>
<key>CFBundleShortVersionString</key>
<string>2.1.0-unsupported-20180809</string>
<string>2.1.0</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSMinimumSystemVersion</key>

View File

@@ -56,8 +56,8 @@ END
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,1,0-unsupported-20180809,0
PRODUCTVERSION 2,1,0-unsupported-20180809,0
FILEVERSION 2,1,0,20180809
PRODUCTVERSION 2,1,0,20180809
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L

View File

@@ -7,8 +7,8 @@
#define ATOM_MAJOR_VERSION 2
#define ATOM_MINOR_VERSION 1
#define ATOM_PATCH_VERSION 0-unsupported-20180809
// #define ATOM_PRE_RELEASE_VERSION
#define ATOM_PATCH_VERSION 0
#define ATOM_PRE_RELEASE_VERSION -unsupported.20180809
#ifndef ATOM_STRINGIFY
#define ATOM_STRINGIFY(n) ATOM_STRINGIFY_HELPER(n)

View File

@@ -1,6 +1,6 @@
{
"name": "electron",
"version": "2.1.0-unsupported-20180809",
"version": "2.1.0-unsupported.20180809",
"repository": "https://github.com/electron/electron",
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
"devDependencies": {

View File

@@ -72,10 +72,17 @@ def main():
versions[3] = '0'
if args.new_version != None:
versions = parse_version(re.sub('-beta', '', args.new_version))
clean_version = re.sub('-beta', '', args.new_version)
clean_version = re.sub('-unsupported', '', clean_version)
versions = parse_version(clean_version)
version = '.'.join(versions[:3])
suffix = '' if versions[3] == '0' else '-beta.' + versions[3]
suffix = ''
if args.new_version != None and '-unsupported' in args.new_version:
suffix = '-unsupported.' + versions[3]
elif versions[3] != '0':
suffix = '-beta.' + versions[3]
if args.dry_run:
print 'new version number would be: {0}\n'.format(version + suffix)