template / commit
Added ldflags to goreleaser config and install/uninstall instructions to readme.
.goreleaser.yaml | 2 ++ README.md | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 301b024..e5b7f31 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -11,6 +11,8 @@ builds: - linux - windows - darwin + ldflags: + - -w -s -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} archives: - replacements: darwin: Darwin diff --git a/README.md b/README.md index 33a4331..4f03a00 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,20 @@ The build is managed by [make](https://www.gnu.org/software/make/). The default profiles use [Visual Studio Code](https://code.visualstudio.com/) to open the generated files. +## Installation with Homebrew + +```sh +brew tap fuzzy-rp/template https://gitlab.com/fuzzy-rp/template.git +brew install fuzzy-rp/template/template +``` + +### Uninstall with Homebrew + +```sh +brew uninstall fuzzy-rp/template/template +brew untap fuzzy-rp/template +``` + ## Package and installation This repo is available as package [`gitlab.com/fuzzy-rp/template`](https://pkg.go.dev/gitlab.com/fuzzy-rp/template).