Use different app constants for betas and snapshots

This commit is contained in:
Tamás Bálint Misius 2022-12-24 08:41:10 +01:00
parent 762208356a
commit 6e9b9cd861
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

12
.github/prepare.py vendored
View File

@ -50,6 +50,18 @@ if int(build_options['mod_id']) == 0 and os.path.exists('.github/mod_id.txt'):
with open('.github/mod_id.txt') as f:
build_options['mod_id'] = f.read()
if int(build_options['mod_id']) == 0:
if release_type == 'beta':
build_options['app_name' ] += ' Beta'
build_options['app_comment'] += ' - Beta'
build_options['app_exe' ] += 'beta'
build_options['app_id' ] += 'beta'
if release_type == 'snapshot':
build_options['app_name' ] += ' Snapshot'
build_options['app_comment'] += ' - Snapshot'
build_options['app_exe' ] += 'snapshot'
build_options['app_id' ] += 'snapshot'
set_output('mod_id' , build_options['mod_id' ])
set_output('app_name' , build_options['app_name' ])
set_output('app_comment', build_options['app_comment'])