File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
3+ import sys
34import subprocess
45from methods import print_warning
56
@@ -82,10 +83,21 @@ if lib_arch_dir != "":
8283 env_android .Command (out_dir + "/libc++_shared.so" , stl_lib_path , Copy ("$TARGET" , "$SOURCE" ))
8384
8485 def generate_apk (target , source , env ):
86+ gradle_process = []
87+
88+ if sys .platform .startswith ("win" ):
89+ gradle_process = [
90+ "cmd" ,
91+ "/c" ,
92+ "gradlew.bat" ,
93+ ]
94+ else :
95+ gradle_process = ["./gradlew" ]
96+
8597 if env ["target" ] != "editor" and env ["dev_build" ]:
8698 subprocess .run (
87- [
88- "./gradlew" ,
99+ gradle_process
100+ + [
89101 "generateDevTemplate" ,
90102 "--quiet" ,
91103 ],
@@ -94,8 +106,8 @@ if lib_arch_dir != "":
94106 else :
95107 # Android editor with `dev_build=yes` is handled by the `generateGodotEditor` task.
96108 subprocess .run (
97- [
98- "./gradlew" ,
109+ gradle_process
110+ + [
99111 "generateGodotEditor" if env ["target" ] == "editor" else "generateGodotTemplates" ,
100112 "--quiet" ,
101113 ],
You can’t perform that action at this time.
0 commit comments