Because of https://github.com/getlantern/systray it seems to not be compatible with cross-compiling. See this repo for prerequisites.
go get -u github.com/gobuffalo/packr/packr
go get github.com/akavel/rsrc
sudo apt-get install gcc libgtk-3-dev libappindicator3-dev
On Linux Mint, libxapp-dev is also required.
- put Website in dist/ directory
packrgo build -o photonai_explorer .
- put Website in dist/ directory
packrrsrc -manifest photonai_explorer.manifestgo build -ldflags="-H windowsgui" -o photonai_explorer.exe .- for cross-compilation:
env GOOS=windows GOARCH=amd64 go build -ldflags="-H windowsgui" -o photonai_explorer.exe . - Be advised when cross-compiling: the create rsrc.syso can interfer with the building process when creating a linux binary
- for cross-compilation: