build: add real version numbering
This commit is contained in:
@@ -33,7 +33,7 @@ if is_arg_set('release'):
|
||||
build_type = 'release'
|
||||
|
||||
current_tag = subprocess.check_output(['git', 'describe', '--tags', '--abbrev=0']).decode('utf-8').strip()
|
||||
current_tag = current_tag[1:]
|
||||
revision = subprocess.check_output(['git', 'rev-list', '{}..HEAD'.format(current_tag), '--count']).decode('utf-8').strip()
|
||||
|
||||
build_id = '{}/{}_{}'.format(current_tag, build_type, arch)
|
||||
build_id = '{}~{}/{}_{}'.format(current_tag[1:], revision, build_type, arch)
|
||||
print('{}'.format(build_id.upper()))
|
||||
|
||||
Reference in New Issue
Block a user