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
packr
go build -o photonai_explorer .
- put Website in dist/ directory
packr
rsrc -manifest photonai_explorer.manifest
go 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: