Using fyne-cross
To make it easier to manage the various development environments and toolchains required for cross-compiling a project, we can use the fyne-cross
command. This cross-compiling utility uses Docker containers to download and run the development tools of different operating systems, right from your favorite desktop computer.
Installing fyne-cross
Before you can install fyne-cross
, you will need a recent version of Go (at least 1.13) and must have Docker installed. On macOS and Windows, there is a Docker Desktop application that can help you manage your Docker setup, while on Linux, most distributions have a docker
package readily available. More information about working with Docker is available in Chapter 9, Bundling Resources and Preparing for Release.
Once Docker has been installed, you can use the standard Go tools to install fyne-cross
. The following command will be sufficient:
$ go get github.com/fyne-io/fyne-cross
The fyne-cross
binary will be installed...