better handling for patch version increments; rm random space

This commit is contained in:
theopolisme 2014-05-19 15:45:11 -05:00
parent b0ad8a24b6
commit 346b3017bd
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ version_name = raw_input('Version name > ')
# Update src/afch.js
update_file('src/afch.js',
r'AFCH\.consts\.version = [0-9\.]*;','AFCH.consts.version = {};'.format(version))
r'AFCH\.consts\.version = .*?;',"AFCH.consts.version = '{}';".format(version))
update_file('src/afch.js',
r'AFCH\.consts\.versionName = .*?;',"AFCH.consts.versionName = '{}';".format(version_name))

View File

@ -24,8 +24,8 @@
AFCH.consts = {};
// Master version data
AFCH.consts.version = 0.8;
AFCH.consts.versionName = 'Less is More';
AFCH.consts.version = '0.8';
AFCH.consts.versionName = 'Wandering Walrus';
// FIXME: Change when moving into production
AFCH.consts.beta = true;