Cross-compiling Godot for macOS on Linux is a much more involved process than the Godot documentation lets on (as of writing). Here's the steps I had to take to successfully compile templates for macOS of a custom engine build for x86 and arm64:
-
Make sure you've installed all required programs as per the Godot documentation for running scons/godot's build system.
Namely:- Python 3.8+
- Scons 4.0+
You should be able to install python using your package manager of choice and scons using
python -m pip install sconsorpython -m pip install --user sconsfor a user based install.