Commit graph

18 commits

Author SHA1 Message Date
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
xvqxy
9920ea97f6
Display output of build commands.
This fixes #2920.

Print out output of executed command to stdout/stderr.
2021-02-06 09:49:53 +01:00
vilmibm
7479b3834d use volume to avoid having to rebuild 2021-01-27 10:58:54 -08:00
vilmibm
33c119aa98 remove stray debug line 2021-01-27 10:41:03 -08:00
vilmibm
a603526e01 clean up temporary directory 2021-01-26 16:44:37 -08:00
vilmibm
71da09e560 add docker-based script for running createrepo 2021-01-26 16:43:53 -08:00
Mislav Marohnić
39431a101d Port select portions of Makefile to script/build.go
This is to enable build tasks on Windows.
2021-01-08 22:35:57 +01:00
vilmibm
8b197ac0bc package for armhf 2020-12-14 14:33:54 -08:00
Mislav Marohnić
2376c81460 Fix scoop-gen 2020-10-02 17:48:34 +02:00
Mislav Marohnić
0a17259e3c Bump scoop bucket manually on release
Goreleaser can no longer do this for us since we're always creating a
draft release initially.
2020-10-01 19:09:14 +02:00
vilmibm
74665b213a support more ubuntus 2020-09-17 14:18:06 -05:00
vilmibm
f46ebf9cea support more debians 2020-09-16 12:47:16 -05:00
vilmibm
9db9370a3e fix descriptions 2020-09-09 09:53:34 -05:00
vilmibm
338f37d6aa support extant ubuntu LTSs 2020-09-08 16:11:15 -05:00
vilmibm
894be03923 linux repo creation 2020-09-03 13:47:48 -05:00
Mislav Marohnić
2053809436 Merge pull request #201 from github/cleanup-scripts
Cleanup release scripts
2020-01-08 17:22:46 +01:00
Mislav Marohnić
7edde9306a Move Windows build scripts under script/ 2020-01-07 15:51:57 +01:00
Mislav Marohnić
2271f4cdb6 Generate changelog on release
The changelog is generated using the git log of pull request merges
since the last tagged release, and is in the following format:

    * {PR title} #{PR number}
2020-01-07 13:55:56 +01:00