1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-11-23 10:50:10 +00:00

Updated Build (markdown)

Harvey Tindall 2021-02-17 13:24:18 +00:00
parent 1f5fb76cb0
commit 0f2957379a

@ -33,6 +33,8 @@ A Makefile is provided, which requires the `make` command. Simply clone the repo
* If you get an error from npm regarding esbuild, this is because a precompiled binary for your system's architecture isn't available on npm. run `make all GOESBUILD=on` instead to have it compiled instead. * If you get an error from npm regarding esbuild, this is because a precompiled binary for your system's architecture isn't available on npm. run `make all GOESBUILD=on` instead to have it compiled instead.
* You can optionally provide the path/name of the `go` executable manually with `make all GOBINARY=<path to go>`.
### Goreleaser ### Goreleaser
[goreleaser](https://github.com/goreleaser/goreleaser) is used to publish the packages seen in the release section. [goreleaser](https://github.com/goreleaser/goreleaser) is used to publish the packages seen in the release section.
* To generate executables for multiple platforms, run `goreleaser build --snapshot --rm-dist`. They will be stored in `dist/`. The `data/` directory must be manually copied into the same directory as the executable for it to run. * To generate executables for multiple platforms, run `goreleaser build --snapshot --rm-dist`. They will be stored in `dist/`. The `data/` directory must be manually copied into the same directory as the executable for it to run.