Wails uses cgo to bind to the native rendering engines so a number of platform dependencies are needed as well as an installation of Go. The basic requirements are:
Download Go from the Go Downloads Page.
Ensure that you follow the official Go installation instructions. You will also need to ensure that your
PATH environment variable also includes the path to your
~/go/bin directory. Also ensure Go modules are enabled:
echo "export GO111MODULE=on" >> ~/.bashrc or whatever is appropriate for your shell. Restart your terminal and do the following checks:
echo $PATH | grep go/bin
Download NPM from the Node Downloads Page. It is best to use the latest release as that is what we generally test against.
npm --version to verify.
For MacOS, Wails uses
clang and the native libraries. Make sure you have the xcode command line tools installed. This can be done by running:
Now you are ready to move on to the next step of installing Wails.