From 83ff6b607f073c24940d9068d22c3d288e59c53c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 16 Mar 2014 15:49:12 +0800 Subject: [PATCH] Fix bump-version script. --- script/bump-version.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/bump-version.py b/script/bump-version.py index 1baaf355755e..a5067e9c5f60 100755 --- a/script/bump-version.py +++ b/script/bump-version.py @@ -71,7 +71,7 @@ def update_win_rc(version, versions): pattern_fvs = re.compile(' *VALUE "FileVersion", "[0-9.]+"') pattern_pvs = re.compile(' *VALUE "ProductVersion", "[0-9.]+"') - win_rc = os.path.join('browser', 'resources', 'win', 'atom.rc') + win_rc = os.path.join('atom', 'browser', 'resources', 'win', 'atom.rc') with open(win_rc, 'r') as f: lines = f.readlines() @@ -92,7 +92,7 @@ def update_win_rc(version, versions): def update_version_h(versions): - version_h = os.path.join('common', 'atom_version.h') + version_h = os.path.join('atom', 'common', 'atom_version.h') with open(version_h, 'r') as f: lines = f.readlines() @@ -109,7 +109,7 @@ def update_version_h(versions): def update_info_plist(version): - info_plist = os.path.join('browser', 'resources', 'mac', 'Info.plist') + info_plist = os.path.join('atom', 'browser', 'resources', 'mac', 'Info.plist') with open(info_plist, 'r') as f: lines = f.readlines() @@ -130,7 +130,7 @@ def tag_version(version): def git_push(): - subprocess.check_call(['git', 'push']) + subprocess.check_call(['git', 'push', '--follow-tags']) if __name__ == '__main__':