Skip to content

fyne-io/fyne-cross-images

Repository files navigation

Fyne Cross Images

fyne-cross is a simple tool to cross compile and create distribution packages for Fyne applications using docker images that include Linux, the MinGW compiler for Windows, FreeBSD, and a macOS SDK, along with the Fyne requirements.

This project provides the docker images required by fyne-cross to cross compile.

Requirements

  • docker / podman

Supported targets

Table below reports the status of fyne-cross's supported cross compilation targets. The supported architectures for the host are amd64and arm64.

amd64 arm64
android/386 N/A
android/amd64 N/A
android/arm N/A
android/arm64 N/A
darwin/amd64
darwin/arm64
freebsd/amd64
freebsd/arm64
linux/amd64
linux/386
linux/arm
linux/arm64
windows/amd64
windows/386
web

Note:

  • darwin images should work out of the box against MacOSX SDKs 11.3. Other SDK versions could require a different min SDK version that can specified using the --macosx-version-min flag
  • android NDK is not available for linux/arm64, cross-compilation from arm64 hosts won't be supported in this initial release

Building container with darwin sdk included

In some case, you might want to build your own container and include the darwin sdk in it. A solution to this is to use fyne-cross darwin-sdk-extract command and copy the sdk you want in the subdirectory darwin-with-sdk/sdk. You can then use the Makefile to build that new container. If you do not need to rebuild the base and darwin container, just reusing the upstream version, you can do so by creating the appropriate .file that match the Makefile and the builder you are using to create your image. For example: touch .docker-base .docker-darwin if you are using docker with the multi architecture Makefile.

Contribute

  • Fork and clone the repository
  • Make and test your changes
  • Open a pull request against the develop branch

Contributors

See contributors page