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

Can not build linux package in windows os #294

Open
baozi-2019 opened this issue Jan 22, 2025 · 0 comments
Open

Can not build linux package in windows os #294

baozi-2019 opened this issue Jan 22, 2025 · 0 comments

Comments

@baozi-2019
Copy link

Describe the bug:

Can not build linux package in windows os. But I can build windows exe.

To Reproduce:

Just use command to build. The windows image has downloaded.

C:\study\fyne-study\target>fyne-cross linux -engine docker -dir C:\study\fyne-study -output fync-test --app-id baozi.test
[i] Target: linux/amd64
[i] Cleaning target directories...
[✓] "bin" dir cleaned: C:\study\fyne-study\fyne-cross\bin\linux-amd64
[✓] "dist" dir cleaned: C:\study\fyne-study\fyne-cross\dist\linux-amd64
[✓] "temp" dir cleaned: C:\study\fyne-study\fyne-cross\tmp\linux-amd64
[i] Checking for go.mod: C:\study\fyne-study\go.mod
[✓] go.mod found
[i] Packaging app...
2025/01/22 03:27:39 Fyne error:  Failed to inject metadata init file, omitting metadata
2025/01/22 03:27:39   Cause: exit status 1
2025/01/22 03:27:39   At: /go/pkg/mod/fyne.io/fyne/[email protected]/cmd/fyne/internal/commands/build.go:215
go: downloading go1.22 (linux/amd64)
go: download go1.22 for linux/amd64: toolchain not available

error building application: exit status 1
[✗] could not package the Fyne app: could not package the Fyne app: exit status 1

Example code:

Device and debug info (please complete the following information):

Device info
  • OS: Winowds
  • Version: 24H2
  • Go version: 1.22.1
  • fyne-cross version: 1.6.1
  • Fyne version: none
Debug info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant