fyne-cross

command module
v1.3.2-0...-b717813 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: BSD-3-Clause Imports: 10 Imported by: 0

README

Fyne Cross

CircleCI Go Report Card GoDoc GitHub tag

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 with the Fyne requirements.

Supported targets are:

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

Requirements

  • go
  • docker

Installation

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

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

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

win10 wsl2下使用科学上网,镜像仍然被墙的解决办法

在wsl2里找到~/go/pkg/mod/github.com/nnhq(或lucor)/fyne-cross@v1.3.1$ sudo vim build.go 第332行附近:把"-t",下增加一行这个"--net=host" 极有可能你还需要改go.mod 解决了镜像被墙问题,又多出一个 go: writing go.sum: open /app/go.sum281664278.tmp: permission denied exit status 1这样的问题,打算回到linux lite下跑fyne-cross算了

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

Builds for the specified targets will be available under the build folder

Contribute

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

See contributors page

Documentation

Overview

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.

Supported targets are:

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

References - fyne: https://fyne.io - xgo: https://github.com/karalabe/xgo - golang-cross: https://github.com/docker/golang-cross - fyne-cross docker images: https://hub.docker.com/r/lucor/fyne-cross

Jump to

Keyboard shortcuts

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