From 6e9b9cd86188803928cb5f7090bad255dd9faf8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sat, 24 Dec 2022 08:41:10 +0100 Subject: [PATCH] Use different app constants for betas and snapshots --- .github/prepare.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/prepare.py b/.github/prepare.py index 18c954c84..6da65fd0c 100755 --- a/.github/prepare.py +++ b/.github/prepare.py @@ -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'])