smimesign/windows-installer
Lucas Garron c6ad9bc79c
Build, sign, and publish release binaries
This PR adds a workflow to build releases:

- The builds are signed on Windows.
- The builds are organized into a `build` folder, to make things easier to understand and debug.
- The `build` folder is uploaded as artifacts on Actions, in one collective `build.zip`.
- If a tag was pushed, the build release files are individually uploaded as assets to the releases page:
  - Compare [`smimesign-staging@v1.1.0-rc1`](https://github.com/github/smimesign-staging/releases/tag/v1.1.0-rc1) to [`smimesign@v0.0.13`](https://github.com/github/smimesign/releases/tag/v0.0.13) and note that I've managed to keep fairly similar names and formats (e.g. `.tgz` for macOS).
- Tags starting with `v` are automatically marked as releases, so the latest release will always show up on the side of https://github.com/github/smimesign (if your window is wide enough).
- The version string is consistently embedded using `-ldflags` for all builds. I've directly checked that this works, using `smimesign --version` on amd64, the installer, and macOS.
- We now build using Go 1.17.

This PR does not add code signing for macOS, and doesn't add a build for Apple Silicon. We [recommend using Homebrew](https://github.com/github/smimesign#macos) to install `smimesign` on macOS, which works the same without signing and already builds for Apple Silicon.
2021-09-24 13:04:18 -07:00
..
chain.p7b sign installer 2018-10-01 12:51:14 -06:00
codesign.conf script for generating CSR 2018-09-24 11:34:15 -06:00
codesign.pfx updated codesign.pfx 2021-09-21 11:44:38 -07:00
generate-csr.sh Build, sign, and publish release binaries 2021-09-24 13:04:18 -07:00
inno-setup-smimesign-installer.iss Build, sign, and publish release binaries 2021-09-24 13:04:18 -07:00
key.pem script for generating CSR 2018-09-24 11:34:15 -06:00
make-pfx.sh sign installer 2018-10-01 12:51:14 -06:00
req.pem script for generating CSR 2018-09-24 11:34:15 -06:00
signtool.exe Build, sign, and publish release binaries 2021-09-24 13:04:18 -07:00
versioninfo.json appveyor: generate resource.syso file before build to be embedded in binary 2018-09-18 12:57:12 -06:00