This project uses golang.
To compile on Ubuntu/Debian, you may need to install the libgl1-mesa-dev
and xorg-dev
packages, and have GCC installed.
In order to run the project properly, some tools are required:
- golang (Tested: v1.12.6)
Install go-bindata:
go get -u github.com/go-bindata/go-bindata
go install github.com/go-bindata/go-bindata
Generate assets:
go generate gui/main.go
Build binary:
go build -o build/transactor-ui cmd/main.go
Run binary :
./build/transactor-ui
You'll find the release binaries under the build
folder. Run it like the above using the corresponding path.
To cross-compile for Windows and MacOS, build the Dockerfile and use the corresponding image.
For example, from the root, run :
docker run -v ${PWD}:/app transchain/golang-crosscompile:v1.0.0 goreleaser --rm-dist --skip-publish --snapshot