trying to fix macos builds again

This commit is contained in:
2023-12-23 00:25:22 +01:00
parent f8a84cf3d5
commit 0fb4526191
6 changed files with 21 additions and 7 deletions

View File

@@ -16,10 +16,14 @@ if choice in yes:
"python -m SCons && python -m SCons target=template_release && cd project && godot"
)
elif choice in no:
if os.name == "nt":
if os.name == "nt": # Windows
os.system(
"python -m SCons && python -m SCons target=template_release && godot project\project.godot"
)
elif os.name == "darwin": # macOS
os.system(
"python -m SCons target=template_release arch=x86_64 && python -m SCons target=template_debug arch=x86_64 && python -m SCons target=template_release arch=arm64 && python -m SCons target=template_debug arch=arm64 && godot project/project.godot"
)
else:
os.system(
"python -m SCons && python -m SCons target=template_release && godot project/project.godot"