modules/build.py: Windows requires .bat extension to be specified explicitly

Fixes: #104

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
This commit is contained in:
Andrew Gunnerson
2023-06-14 18:04:44 -04:00
parent 5dda181e90
commit 6c7165cfb7
+2
View File
@@ -41,6 +41,8 @@ def build_dex(sources):
build_tools = newest_child_by_name(os.path.join(sdk, 'build-tools'))
platform = newest_child_by_name(os.path.join(sdk, 'platforms'))
d8 = os.path.join(build_tools, 'd8')
if os.name == 'nt':
d8 += '.bat'
android_jar = os.path.join(platform, 'android.jar')
with tempfile.TemporaryDirectory() as temp_dir: