fyne-cross

module
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2020 License: BSD-3-Clause

README

Fyne Cross

CircleCI Go Report Card GoDoc GitHub tag

fyne-cross is a simple tool to cross compile and create distribution packages for Fyne applications.

It has been inspired by xgo and uses a docker image built on top of the golang-cross image, that includes the MinGW compiler for windows, and an OSX SDK, along with the Fyne requirements.

Supported targets are:

  • darwin/amd64
  • darwin/386
  • linux/amd64
  • linux/386
  • linux/arm
  • linux/arm64
  • windows/amd64
  • windows/386
  • android
  • ios

Note: iOS compilation is supported only on darwin hosts. See fyne README mobile for pre-requisites.

Requirements

  • go
  • docker

Installation

    go get github.com/lucor/fyne-cross/cmd/fyne-cross
Development release

To install a preview of the next version or help in testing:

    go get github.com/lucor/fyne-cross/cmd/fyne-cross@develop

Usage

    fyne-cross --targets=linux/amd64,windows/amd64,darwin/amd64 package

Use fyne-cross help for more informations

Wildcards

The targets flag support wildcards in case want to compile against all supported GOARCH for a specified GOOS

Example:

    fyne-cross --targets=linux/*

is equivalent to

   fyne-cross --targets=linux/amd64,linux/386,linux/arm64,linux/arm

Example

The example below cross build the fyne examples application

    git clone https://github.com/fyne-io/examples.git
    cd examples
    fyne-cross --targets=linux/amd64,windows/amd64,darwin/amd64 github.com/fyne-io/examples

Contribute

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

See contributors page

OSX/Darwin/Apple builds: Please ensure you have read and understood the Xcode license terms before continuing.

Directories

Path Synopsis
cmd
fyne-cross
fyne-cross is a simple tool to cross compile Fyne applications It has been inspired by xgo and uses a docker image built on top of the golang-cross image, that includes the MinGW compiler for windows, and an OSX SDK, along the Fyne requirements.
fyne-cross is a simple tool to cross compile Fyne applications It has been inspired by xgo and uses a docker image built on top of the golang-cross image, that includes the MinGW compiler for windows, and an OSX SDK, along the Fyne requirements.
gowindres
gowindres is an utility used internally by fyne-cross to generate windows resource
gowindres is an utility used internally by fyne-cross to generate windows resource
internal
builder
Package builder implements the build actions for the supperted OS and arch
Package builder implements the build actions for the supperted OS and arch
volume
Package volume implements the docker host-container volume mounting
Package volume implements the docker host-container volume mounting

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL