These steps must be done under Linux / Windows Subsystem for Linux (WSL) or MSYS2 on Windows.
If you haven't done so already, install the dependencies called for by the official Godot docs
- Install devkitPro pacman or add DKP to your existing pacman configuration:
- Install the required packages from the terminal
OR
# On systems without pacman pre-installed (Such as Debian, Ubuntu): sudo dkp-pacman -S switch-pkg-config switch-freetype switch-bulletphysics switch-libtheora switch-libpcre2 switch-mesa switch-opusfile switch-mbedtls switch-libwebp switch-libvpx switch-miniupnpc switch-libzstd switch-wslay
# On systems with pacman pre-installed (Such as Arch, Manjaro, MSYS2): sudo pacman -S switch-pkg-config switch-freetype switch-bulletphysics switch-libtheora switch-libpcre2 switch-mesa switch-opusfile switch-mbedtls switch-libwebp switch-libvpx switch-miniupnpc switch-libzstd switch-wslay
- Run
scons platform=switch
in the root of the repo.
Addtarget=release
to the end to build for release instead of debug. - Run
misc/scripts/build/create-switch-release.sh
from inside thebin
folder to create an installable release for your Switch. - Run
misc/scripts/build/create-switch-template.sh
from inside thebin
folder to create an export template for your editor.
The editor releases add a Switch
exporter to the list -
it can generate a Switch homebrew NRO or a generic Godot PCK file
that can be transferred to your Switch.
If additional debugging is required, sending the NRO file via nxlink (make sure to send it to the right place with the -p argument) will allow the output of the console to be viewed on PC.
Either make an issue on this repo, or join the Discord!