improved build script
This commit is contained in:
6
build.py
6
build.py
@@ -11,13 +11,13 @@ else:
|
|||||||
"Do you want to open only the built project instead of the Godot Editor after building? ([y]es/[n]o): ")
|
"Do you want to open only the built project instead of the Godot Editor after building? ([y]es/[n]o): ")
|
||||||
choice = input().lower()
|
choice = input().lower()
|
||||||
if choice in yes:
|
if choice in yes:
|
||||||
os.system("scons && scons target=template_release && cd project && godot")
|
os.system("python -m SCons && python -m SCons target=template_release && cd project && godot")
|
||||||
elif choice in no:
|
elif choice in no:
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
os.system(
|
os.system(
|
||||||
"scons && scons target=template_release && godot project\project.godot")
|
"python -m SCons && python -m SCons target=template_release && godot project\project.godot")
|
||||||
else:
|
else:
|
||||||
os.system(
|
os.system(
|
||||||
"scons && scons target=template_release && godot project/project.godot")
|
"python -m SCons && python -m SCons target=template_release && godot project/project.godot")
|
||||||
else:
|
else:
|
||||||
sys.stdout.write("Please respond with 'yes' or 'no'")
|
sys.stdout.write("Please respond with 'yes' or 'no'")
|
||||||
|
Reference in New Issue
Block a user