From 1e1cb780d0e609739c242846b4a1b5ead481f89e Mon Sep 17 00:00:00 2001 From: Caitlin Elfring Date: Sat, 24 Oct 2020 16:27:05 -0400 Subject: [PATCH] Add Windows installation via `scoop` --- .goreleaser.yml | 27 +++++++++++++++++++++++++-- README.md | 10 ++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index a66e9f03..dbbb42e7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,9 +1,10 @@ # This is an example goreleaser.yaml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com + before: hooks: - # You may remove this if you don't use go modules. - go mod download + builds: - env: - CGO_ENABLED=0 @@ -11,6 +12,9 @@ builds: - linux - windows - darwin + goarch: + - "amd64" + - "386" ldflags: -s -w -X github.com/get-woke/woke/cmd.Version={{.Version}} -X github.com/get-woke/woke/cmd.Commit={{.ShortCommit}} -X github.com/get-woke/woke/cmd.Date={{.Date}} archives: @@ -29,6 +33,7 @@ snapshot: checksum: name_template: '{{ .ProjectName }}-{{ .Version }}-checksums.txt' + changelog: sort: asc filters: @@ -58,6 +63,24 @@ brews: token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" folder: Formula homepage: https://getwoke.tech - description: A text file analysis tool that detects non-inclusive language in your source code. + description: Detect non-inclusive language in your source code. test: | system "#{bin}/woke --version" + +scoop: + bucket: + owner: get-woke + name: scoop-bucket + token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" + + # The project name and current git tag are used in the format string. + commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}" + + homepage: https://getwoke.tech + description: Detect non-inclusive language in your source code. + license: MIT + + # Persist data between application updates + # persist: + # - "data" + # - "config.toml" diff --git a/README.md b/README.md index d025af72..95446b52 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ Companies like [GitHub](https://github.com/github/renaming), [Twitter](https://t - [Installation](#installation) - [macOS](#macos) + - [Windows](#windows) - [Simple installation](#simple-installation) - [Build from source](#build-from-source) - [Releases](#releases) @@ -75,6 +76,15 @@ brew install get-woke/tap/woke brew upgrade get-woke/tap/woke ``` +### Windows + +You can install `woke` with [`scoop`](https://scoop.sh/) + +```sh +scoop bucket add get-woke https://github.com/get-woke/scoop-bucket.git +scoop install get-woke/woke +``` + ### Simple installation ```bash