Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.6.1 #289

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fda64ff
fix: update install suggestion for missing `fyne` command
nobe4 May 6, 2024
26515d9
fix: remove `go get` when installing this command
nobe4 May 7, 2024
187fb53
Merge pull request #248 from nobe4/fix-missing-requirement
andydotxyz May 7, 2024
c870d6b
fix: Large performance boost by avoiding running simple preparation i…
williambrode May 15, 2024
c007692
Merge pull request #254 from williambrode/cleanDirPerformance
Bluebugs Jul 13, 2024
85cf21e
Merge branch 'master' into develop
Jul 13, 2024
228a7da
Merge pull request #265 from fyne-io/sync-master2develop
Bluebugs Jul 16, 2024
18ed90a
Fixing so we don't seek a missing android image for darwin
andydotxyz Aug 28, 2024
5acc31a
Updating to versions of Fyne
andydotxyz Aug 28, 2024
437c03c
Don't use a version that requires a newer Go compiler
andydotxyz Aug 28, 2024
9428532
oops, typo in version
andydotxyz Aug 29, 2024
1df19d4
Fix deprecations from Go 1.19
andydotxyz Aug 29, 2024
3716efe
Merge pull request #268 from andydotxyz/fix/267
Bluebugs Sep 7, 2024
8cdaf07
Merge branch 'master' into develop
andydotxyz Dec 31, 2024
d632e96
Fix Android release that generates a .aab file
metal3d Sep 2, 2023
ee14a68
Use a staticcheck that understands some of the test deps
andydotxyz Dec 31, 2024
a17f304
Merge branch 'master' into develop
lucor Jan 8, 2025
54a977e
Update the compress deps as far as we can with Go 1.19
lucor Jan 8, 2025
7e8957f
Merge pull request #283 from lucor/develop
lucor Jan 9, 2025
5975fb6
web: update destination folder
lucor Jan 8, 2025
94f3322
metadata: update Fyne metadata to v2.5.3
lucor Jan 12, 2025
b2efed9
doc: apply linter suggestions
lucor Jan 12, 2025
3de5b14
readme: update macos SDK extract section
lucor Jan 12, 2025
2003794
readme: update Go requirements
lucor Jan 12, 2025
7df055a
Merge pull request #287 from lucor/doc/readme-macos-extract-sdk
lucor Jan 12, 2025
3f364f7
Merge pull request #286 from lucor/metadata-sync
lucor Jan 12, 2025
e9f4650
Merge pull request #285 from lucor/fix/web-rename-destination-folder
lucor Jan 12, 2025
3381206
readme: update changelog for release 2.6.1
lucor Jan 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
go-version: "1.23.x"

- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
run: go install honnef.co/go/tools/cmd/staticcheck@v0.5.1
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest

Expand Down Expand Up @@ -131,11 +131,9 @@ jobs:
working-directory: fyne-cross
run: go install

# attempt to use "go install" but fallback to "go get"
- name: Install Fyne
run: |
go install fyne.io/fyne/v2/cmd/fyne@latest ||
go get fyne.io/fyne/v2/cmd/fyne@latest
go install fyne.io/fyne/v2/cmd/fyne@latest

- name: Install Podman
if: ${{ runner.os == 'macos' }}
Expand Down Expand Up @@ -213,11 +211,9 @@ jobs:
working-directory: fyne-cross
run: go install

# attempt to use "go install" but fallback to "go get"
- name: Install Fyne
run: |
go install fyne.io/fyne/v2/cmd/fyne@latest ||
go get fyne.io/fyne/v2/cmd/fyne@latest
go install fyne.io/fyne/v2/cmd/fyne@latest

- name: Install Podman
if: ${{ runner.os == 'macos' }}
Expand Down
50 changes: 42 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
# Changelog - Fyne.io fyne-cross

## 1.6.1 - 12 Jan 2025

### Changed

- fix: update install suggestion for missing `fyne` command by @nobe4 in <https://github.com/fyne-io/fyne-cross/pull/248>
- Performance improvement by avoiding running commands in docker by @williambrode in <https://github.com/fyne-io/fyne-cross/pull/254>
- Fixing so we don't seek a missing android image for darwin by @andydotxyz in <https://github.com/fyne-io/fyne-cross/pull/268>
- Fix Android release that generates a .aab file by @metal3d in <https://github.com/fyne-io/fyne-cross/pull/206>
- readme: update the requirements and the macos SDK extract section by @lucor in <https://github.com/fyne-io/fyne-cross/pull/287>
- metadata: update Fyne metadata to v2.5.3 by @lucor in <https://github.com/fyne-io/fyne-cross/pull/286>
- web: update destination folder by @lucor in <https://github.com/fyne-io/fyne-cross/pull/285>
- Bump k8s.io/api from 0.18.19 to 0.30.2 by @dependabot in <https://github.com/fyne-io/fyne-cross/pull/264>
- Bump github.com/klauspost/compress from 1.13.4 to 1.17.9 by @dependabot in <https://github.com/fyne-io/fyne-cross/pull/263>
- Bump github.com/urfave/cli/v2 from 2.11.1 to 2.27.2 by @dependabot in <https://github.com/fyne-io/fyne-cross/pull/247>

## 1.6.0 - 31 Dec 2024

### Changed
- Bump github.com/stretchr/testify from 1.7.0 to 1.9.0 by @dependabot in https://github.com/fyne-io/fyne-cross/pull/233
- Ldflags where only needed with older version of zig which we have updated since then. by @Bluebugs in https://github.com/fyne-io/fyne-cross/pull/246

- Bump github.com/stretchr/testify from 1.7.0 to 1.9.0 by @dependabot in <https://github.com/fyne-io/fyne-cross/pull/233>
- Ldflags where only needed with older version of zig which we have updated since then. by @Bluebugs in <https://github.com/fyne-io/fyne-cross/pull/246>

## 1.5.0 - 13 Apr 2024

Expand Down Expand Up @@ -53,7 +69,7 @@
between docker and podman. The default behavior is not changed, if the flag is
not specified fyne-cross will auto detect the engine.

### Fixed
### Fixed

- Windows builds no longer pass "-H windowsgui" #97
- Multiple tags cannot be specified using the `-tags` flag #96
Expand All @@ -70,8 +86,8 @@

### Fixed

- Building for windows fails to add icon #66
- Fixes darwin image creation (SDK extraction) #80
- Building for windows fails to add icon #66
- Fixes darwin image creation (SDK extraction) #80

## 1.1.2 - 05 Oct 2021

Expand All @@ -83,7 +99,7 @@

### Added

- Support specifying target architectures for Android #52
- Support specifying target architectures for Android #52

### Changed

Expand Down Expand Up @@ -122,6 +138,7 @@
- Remove the dependency from the docker/golang-cross image for the base image

## 1.0.0 - 13 December 2020

- Add support for "fyne release" #3
- Add support for creating packaged .tar.gz bundles on freebsd #6
- Add support for Linux Wayland #10
Expand All @@ -132,89 +149,106 @@
- Update Go to v1.14.13

## 0.9.0 - 17 October 2020
- Releaseing under project namespace with previous 2.2.1 becoming 0.9.0 in fyne-io namespace

- Releaseing under project namespace with previous 2.2.1 becoming 0.9.0 in fyne-io namespace

# Archive - lucor/fyne-cross

## [2.2.1] - 2020-09-16

- Fix iOS fails with "only on darwin" when on mac #78
- Update README installation when module-aware mode is not enabled

## [2.2.0] - 2020-09-01

- Add `--pull` option to attempt to pull a newer version of the docker image #75

## [2.1.2] - 2020-08-13

- Update base image to dockercore/[email protected] (Go v1.13.15)
- fyne cli updated to v1.3.3

## [2.1.1] - 2020-07-17

- Update base image to dockercore/[email protected] (Go v1.13.14)

## [2.1.0] - 2020-07-16

- Add support for build flags #69
- Base image is based on dockercore/[email protected] (Go v1.13.13)
- fyne cli updated to v1.3.2

## [2.0.0] - 2020-06-07

- Base image is based on dockercore/[email protected] (Go v1.13.12)
- fyne cli updated to v1.3.0

## [2.0.0-beta4] - 2020-05-21

- Print fyne cli version in debug mode
- Update unit tests to work on windows
- Fix some minor linter suggestions
- Update docker base image to go v1.13.11

## [2.0.0-beta3] - 2020-05-13

- Remove package option. Package can be now specified as argument
- Fix android build when the package is not into the root dir

## [2.0.0-beta2] - 2020-05-13

- Fix build for packages not in root dir
- Fix ldflags flag not honored #62

## [2.0.0-beta1] - 2020-05-10

- Add subcommand support
- Add a flag to build as "console binary" for Windows #57
- Add support for custom env variables #59
- Add support for custom docker image #52
- Add support for FreeBSD #23

## [1.5.0] - 2020-04-13

- Add android support #37
- Add iOS support on Darwin hosts
- Issue cross compiling from Windows 10 #54
- Update to golang-cross:1.13.10 image (go v1.13.10)
- Update to fyne cli v1.2.4

## [1.4.0] - 2020-03-04

- Add ability to package with an icon using fyne/cmd #14
- Update to golang-cross:1.13.8 image (go v1.13.8) #46
- Disable android build. See #34
- Add support for passing appID to dist packaging #45
- Introduce a root folder and layout for fyne-cross output #38
- Introduce a root folder and layout for fyne-cross output #38
- Remove OS and Arch info from output #48
- GOCACHE folder is now mounted under $HOME/.cache/fyne-cross/go-build to cache build outputs for reuse in future builds.

## [1.3.2] - 2020-01-08

- Update to golang-cross:1.12.14 image (go v1.12.14)

## [1.3.1] - 2019-12-26

- Default binary name should be folder if none is provided [#29](https://github.com/lucor/fyne-cross/issues/29)
- Cannot build android app when not using go modules [#30](https://github.com/lucor/fyne-cross/issues/30)

## [1.3.0] - 2019-11-02

- Add Android support [#10](https://github.com/lucor/fyne-cross/issues/10)
- GOOS is not set for go get when project do not use go modules [#22](https://github.com/lucor/fyne-cross/issues/22)
- linux/386 does not work with 1.2.x [#24](https://github.com/lucor/fyne-cross/issues/24)

## [1.2.2] - 2019-10-29

- Add wildcard support for goarch [#15](https://github.com/lucor/fyne-cross/issues/15)
- Fix misleading error message when docker daemon is not available [#19](https://github.com/lucor/fyne-cross/issues/19)
- Fix build for windows/386 is failing

## [1.2.1] - 2019-10-26

- Fix fyne-cross docker image build tag

## [1.2.0] - 2019-10-26
Expand Down
101 changes: 52 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,27 @@ the MinGW compiler for Windows, FreeBSD, and a macOS SDK, along with the Fyne
requirements.

Supported targets are:
- darwin/amd64
- darwin/arm64
- freebsd/amd64
- freebsd/arm64
- linux/amd64
- linux/386
- linux/arm
- linux/arm64
- windows/amd64
- windows/arm64
- windows/386
- android ([multiple architectures](https://developer.android.com/ndk/guides/abis))
- android/386
- android/amd64
- android/arm
- android/arm64
- ios

> Note:

- darwin/amd64
- darwin/arm64
- freebsd/amd64
- freebsd/arm64
- linux/amd64
- linux/386
- linux/arm
- linux/arm64
- windows/amd64
- windows/arm64
- windows/386
- android ([multiple architectures](https://developer.android.com/ndk/guides/abis))
- android/386
- android/amd64
- android/arm
- android/arm64
- ios

> Note:
>
> - iOS compilation is supported only on darwin hosts. See [fyne pre-requisites](https://developer.fyne.io/started/#prerequisites) for details.
> - macOS packaging for public distribution (release mode) is supported only on darwin hosts.
> - windows packaging for public distribution (release mode) is supported only on windows hosts.
Expand All @@ -37,24 +39,19 @@ Supported targets are:

## Requirements

- go >= 1.14
- go >= 1.19
- docker

### Installation

For go >= 1.16:
```
```sh
go install github.com/fyne-io/fyne-cross@latest
```

To install a fyne-cross with kubernetes engine support:
```
go install -tags k8s github.com/fyne-io/fyne-cross@latest
```

For older go:
```
GO111MODULE=on go get -u github.com/fyne-io/fyne-cross
```sh
go install -tags k8s github.com/fyne-io/fyne-cross@latest
```

> `fyne-cross` will be installed in GOPATH/bin, unless GOBIN is set.
Expand All @@ -66,26 +63,26 @@ If set, fyne-cross will attempt to pull the image required to cross compile the

For example:

```
```sh
fyne-cross linux --pull
```

will pull only the `fyne-cross:base-latest` image required to cross compile for linux target.
will pull only the `fyne-cross:base-latest` image required to cross compile for linux target.

## Usage

```
```sh
fyne-cross <command> [options]

The commands are:

darwin Build and package a fyne application for the darwin OS
linux Build and package a fyne application for the linux OS
windows Build and package a fyne application for the windows OS
android Build and package a fyne application for the android OS
ios Build and package a fyne application for the iOS OS
freebsd Build and package a fyne application for the freebsd OS
version Print the fyne-cross version information
darwin Build and package a fyne application for the darwin OS
linux Build and package a fyne application for the linux OS
windows Build and package a fyne application for the windows OS
android Build and package a fyne application for the android OS
ios Build and package a fyne application for the iOS OS
freebsd Build and package a fyne application for the freebsd OS
version Print the fyne-cross version information

Use "fyne-cross <command> -help" for more information about a command.
```
Expand All @@ -96,13 +93,13 @@ The `arch` flag support wildcards in case want to compile against all supported

Example:

```
```sh
fyne-cross windows -arch=*
```

is equivalent to

```
```sh
fyne-cross windows -arch=amd64,386
```

Expand All @@ -117,7 +114,7 @@ cd examples

### Compile and package the main example app

```
```sh
fyne-cross linux
```

Expand All @@ -127,22 +124,28 @@ fyne-cross linux

### Compile and package a particular example app

```
```sh
fyne-cross linux -output bugs ./cmd/bugs
```

## <a name="extract_macos_sdk"></a>Extract the macOS SDK for OSX/Darwin/Apple cross-compiling
cross-compile from NOT `darwin` (i.e. linux) to `darwin` requires a copy of the macOS SDK on the host.

cross-compile from NOT `darwin` (i.e. linux) to `darwin` requires a copy of the macOS SDK on the host.

The fyne-cross `darwin-sdk-extractor` command can be used to extract the SDK from the XCode CLI Tool file.

**[Please ensure you have read and understood the Xcode license
terms before continuing.](https://www.apple.com/legal/sla/docs/xcode.pdf)**
**[Please ensure you have read and understood the Xcode license terms before continuing.](https://www.apple.com/legal/sla/docs/xcode.pdf)**

To extract the SDKs:
1. [Download Command Line Tools for Xcode](https://developer.apple.com/download/all/?q=Command%20Line%20Tools) 12.4 (macOS SDK 11.x)
2. Run: `fyne-cross darwin-sdk-extract --xcode-path /path/to/Command_Line_Tools_for_Xcode_12.5.dmg`
* Once extraction has been done, you should have a SDKs directory created. This directory contains at least 2 SDKs (ex. `SDKs/MacOSX12.3.sdk/` and `SDKs/MacOSX13.3.sdk/` in Command_Line_Tools_for_Xcode_14.3.1.dmg)
3. Specify explicitly which SDK you want to use in your fyne-cross command with --macosx-sdk-path: `fyne-cross darwin --macosx-sdk-path /full/path/to/SDKs/MacOSX12.3.sdk -app-id your.app.id`

1. [Download Command Line Tools for Xcode](https://developer.apple.com/download/all/?q=Command%20Line%20Tools) 12.5.1 (macOS SDK 11.3)
2. Run: `fyne-cross darwin-sdk-extract --xcode-path /path/to/Command_Line_Tools_for_Xcode_12.5.1.dmg`

- Once extraction has been done, you should have a SDKs directory created.
This directory should contains at least 2 SDKs (ex. `SDKs/MacOSX11.3.sdk/` and `SDKs/MacOSX10.15.sdk/`)

3. Specify explicitly which SDK you want to use in your fyne-cross command with --macosx-sdk-path:
`fyne-cross darwin --macosx-sdk-path /full/path/to/SDKs/MacOSX11.3.sdk -app-id your.app.id`

> Note: current version supports only MacOS SDK 11.3

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/BurntSushi/toml v1.3.2
github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9
github.com/aws/aws-sdk-go v1.51.13
github.com/klauspost/compress v1.17.9
github.com/klauspost/compress v1.17.7
github.com/mholt/archiver/v3 v3.5.1
github.com/stretchr/testify v1.9.0
github.com/urfave/cli/v2 v2.27.2
Expand Down
Loading
Loading