Bring back mod_id.txt

Removed in 59f89f9a46, brought back to minimize discomfort downstream. prepare.py will still default to the mod_id in meson_options.txt if mod_id.txt is deleted though.
This commit is contained in:
Tamás Bálint Misius 2022-12-19 15:40:14 +01:00
parent dd7178dbc8
commit 0ff08c276f
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2
2 changed files with 5 additions and 0 deletions

1
.github/mod_id.txt vendored Normal file
View File

@ -0,0 +1 @@
0

4
.github/prepare.py vendored
View File

@ -46,6 +46,10 @@ with open('build-prepare/meson-info/intro-buildoptions.json') as f:
for option in json.loads(f.read()):
build_options[option['name']] = option['value']
if os.path.exists('.github/mod_id.txt'):
with open('.github/mod_id.txt') as f:
build_options['mod_id'] = f.read()
set_output('mod_id' , build_options['mod_id' ])
set_output('app_name' , build_options['app_name' ])
set_output('app_comment', build_options['app_comment'])