go-astilectron-bindata is a simple utility, that automatically downloads go-astilectron's binary dependencies and embeds them into the source code.
go get github.com/veecue/go-astilectron-bindata/...
- add this line to your code:
//go:generate go-astilectron-bindata
and rungo generate
or simply rungo-astilectron-bindata
- add
"github.com/veecue/go-astilectron-bindata"
to your includes - add this code before
a.Start()
:a.SetProvisioner(astilectron_bindata.NewProvisioner(Disembed))
go-astilectron-bindata --help
:
Usage of go-astilectron-bindata:
-c, --current-only
Only download electron for the current os