mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-24 03:46:03 +08:00
Add tag and commit after version is bumped.
This commit is contained in:
@@ -24,6 +24,7 @@ def main():
|
||||
update_win_rc(version, versions)
|
||||
update_version_h(versions)
|
||||
update_info_plist(version)
|
||||
tag_version(version)
|
||||
|
||||
|
||||
def parse_version(version):
|
||||
@@ -105,5 +106,11 @@ def update_info_plist(version):
|
||||
return
|
||||
|
||||
|
||||
def tag_version(version):
|
||||
subprocess.check_call(['git', 'commit', '-a', '-m',
|
||||
'Bump v{0}.'.format(version)])
|
||||
subprocess.check_call(['git', 'tag', 'v{0}'.format(version)])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
|
||||
Reference in New Issue
Block a user