From 0ff08c276f1909865de0c181e4d5e2fd96bda01f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Mon, 19 Dec 2022 15:40:14 +0100 Subject: [PATCH] Bring back mod_id.txt Removed in 59f89f9a46c4496d873898c5422c7d332722acfb, 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. --- .github/mod_id.txt | 1 + .github/prepare.py | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 .github/mod_id.txt diff --git a/.github/mod_id.txt b/.github/mod_id.txt new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/.github/mod_id.txt @@ -0,0 +1 @@ +0 diff --git a/.github/prepare.py b/.github/prepare.py index 3a2d99db6..dde923f24 100755 --- a/.github/prepare.py +++ b/.github/prepare.py @@ -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'])