mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-14 04:13:59 +02:00
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:
1
.github/mod_id.txt
vendored
Normal file
1
.github/mod_id.txt
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
0
|
4
.github/prepare.py
vendored
4
.github/prepare.py
vendored
@@ -46,6 +46,10 @@ with open('build-prepare/meson-info/intro-buildoptions.json') as f:
|
|||||||
for option in json.loads(f.read()):
|
for option in json.loads(f.read()):
|
||||||
build_options[option['name']] = option['value']
|
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('mod_id' , build_options['mod_id' ])
|
||||||
set_output('app_name' , build_options['app_name' ])
|
set_output('app_name' , build_options['app_name' ])
|
||||||
set_output('app_comment', build_options['app_comment'])
|
set_output('app_comment', build_options['app_comment'])
|
||||||
|
Reference in New Issue
Block a user