From 69268ace0ef7f5092800b4ad196f2c3edf9255a4 Mon Sep 17 00:00:00 2001 From: Benjamin Kane Date: Wed, 10 Aug 2022 06:19:29 -0700 Subject: [PATCH] Add scoop support --- .goreleaser.yml | 13 +++++++++++++ README.md | 9 ++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 7e9c841..ae9baa2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -6,6 +6,7 @@ before: - go mod download # you may remove this if you don't need go generate # - go generate ./... + builds: - env: - CGO_ENABLED=0 @@ -28,6 +29,7 @@ changelog: exclude: - "^docs:" - "^test:" + # https://goreleaser.com/customization/homebrew/ brews: - tap: @@ -43,3 +45,14 @@ brews: See https://www.macworld.com/article/3140183/how-to-install-an-app-in-macos-sierra-thats-not-signed-by-a-developer.html to work around that homepage: "https://github.com/bbkane/fling" description: "GNU Stow alternative for dotfiles" + +# https://goreleaser.com/customization/scoop/ +scoop: + bucket: + owner: bbkane + name: scoop-bucket + token: "{{ .Env.KEY_GITHUB_GORELEASER_TO_HOMEBREW_TAP }}" + description: "fling computes and creates/removes the minimal amount of symlinks needed in a directory to refer to files and directories in another directory, similar to GNU Stow. I use fling to manage my dotfiles" + homepage: "https://github.com/bbkane/fling" + license: MIT + diff --git a/README.md b/README.md index 9501cc8..57edb59 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,14 @@ As a tradeoff, fling's codebase is simpler. fling compiles to a single binary an ## Install -- Homebrew: `brew install bbkane/tap/fling` +- [Homebrew](https://brew.sh/): `brew install bbkane/tap/fling` +- [Scoop](https://scoop.sh/): + +``` +scoop bucket add bbkane https://github.com/bbkane/scoop-bucket +scoop install bbkane/fling +``` + - Download Mac/Linux executable: [GitHub releases](https://github.com/bbkane/fling/releases) - Go: `go install go.bbkane.com/fling@latest` - Build with [goreleaser](https://goreleaser.com/) after cloning: `goreleaser --snapshot --skip-publish --rm-dist`