cli/script
Mislav Marohnić d43720620e Tweak build scripts to enable cross-compiling
The main build script for this project is `script/build.go` which
implements Makefile-like building of the `gh` binary and associated man
pages. Our Makefile defers to the Go script.

However, when setting GOOS, GOARCH, and other environment variables to
modify the target for the resulting binary, these environment variables
would affect the execution of `build.go` as well, which was unintended.

This tweaks our Makefile to reset variables like GOOS and GOARCH when
building the `build.go` script itself, ensuring that the built script
runs on the same platform, and adds the ability to pass environment
variables as arguments to `go run script/build.go`. This allows the
following usage on platforms without `make`:

    go run script/build.go GOOS=linux

With this style of invocation, the GOOS setting does not actually affect
`go run` itself; just the `go build` that is executed in a child process.
2021-04-09 15:48:12 +02:00
..
build.go Tweak build scripts to enable cross-compiling 2021-04-09 15:48:12 +02:00
changelog Generate changelog on release 2020-01-07 13:55:56 +01:00
createrepo.sh use volume to avoid having to rebuild 2021-01-27 10:58:54 -08:00
distributions package for armhf 2020-12-14 14:33:54 -08:00
override.ubuntu support extant ubuntu LTSs 2020-09-08 16:11:15 -05:00
pubkey.asc linux repo creation 2020-09-03 13:47:48 -05:00
rpmmacros linux repo creation 2020-09-03 13:47:48 -05:00
scoop-gen Fix scoop-gen 2020-10-02 17:48:34 +02:00
setup-windows-certificate.ps1 Move Windows build scripts under script/ 2020-01-07 15:51:57 +01:00
sign.ps1 Move Windows build scripts under script/ 2020-01-07 15:51:57 +01:00
signtool.exe Move Windows build scripts under script/ 2020-01-07 15:51:57 +01:00