-
With another popular golang framework: Ebiten, I was able to compile binaries for windows and linux from linux. Surely the same is possible with Wails? is it enought to just specify: $ GOOS=windows GOARCH=amd64 wails build ...
$ GOOS=darwin GOARCH=amd64 wails build ...
$ GOOS=linux GOARCH=amd64 wails build ... |
Beta Was this translation helpful? Give feedback.
Answered by
misitebao
Apr 28, 2023
Replies: 1 comment 1 reply
-
The Windows platform is implemented using pure Go, which means you can cross-compile to Windows from other platforms, but Mac and Linux use cgo, which cannot be used as a target platform for cross-compilation. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
airtonix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Windows platform is implemented using pure Go, which means you can cross-compile to Windows from other platforms, but Mac and Linux use cgo, which cannot be used as a target platform for cross-compilation.