mirror of
https://github.com/go-task/task.git
synced 2026-08-29 10:08:27 +02:00
feat(homebrew): migrate from Formula to Cask (#2702)
This commit is contained in:
@@ -82,23 +82,30 @@ nfpms:
|
|||||||
- src: completion/nu/task-completions.nu
|
- src: completion/nu/task-completions.nu
|
||||||
dst: /usr/share/nushell/vendor/autoload/task-completions.nu
|
dst: /usr/share/nushell/vendor/autoload/task-completions.nu
|
||||||
|
|
||||||
brews:
|
homebrew_casks:
|
||||||
- name: go-task
|
- name: go-task
|
||||||
description: A fast, cross-platform build tool inspired by Make, designed for modern workflows.
|
description: A fast, cross-platform build tool inspired by Make, designed for modern workflows.
|
||||||
license: MIT
|
|
||||||
homepage: https://taskfile.dev
|
homepage: https://taskfile.dev
|
||||||
directory: Formula
|
binaries:
|
||||||
|
- task
|
||||||
|
completions:
|
||||||
|
bash: completion/bash/task.bash
|
||||||
|
zsh: completion/zsh/_task
|
||||||
|
fish: completion/fish/task.fish
|
||||||
|
# Binaries are not signed/notarized, so remove the quarantine attribute
|
||||||
|
# set by Homebrew on downloaded cask artifacts to avoid Gatekeeper blocking
|
||||||
|
# them. See https://goreleaser.com/customization/homebrew_casks/
|
||||||
|
hooks:
|
||||||
|
post:
|
||||||
|
install: |
|
||||||
|
if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
|
||||||
|
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/task"]
|
||||||
|
end
|
||||||
|
directory: Casks
|
||||||
repository:
|
repository:
|
||||||
owner: go-task
|
owner: go-task
|
||||||
name: homebrew-tap
|
name: homebrew-tap
|
||||||
token: "{{.Env.GH_GORELEASER_TOKEN}}" # So that it runs as the task-bot user
|
token: "{{.Env.GH_GORELEASER_TOKEN}}" # So that it runs as the task-bot user
|
||||||
test: system "#{bin}/task", "--help"
|
|
||||||
install: |-
|
|
||||||
bin.install "task"
|
|
||||||
bash_completion.install "completion/bash/task.bash" => "task"
|
|
||||||
zsh_completion.install "completion/zsh/_task" => "_task"
|
|
||||||
fish_completion.install "completion/fish/task.fish"
|
|
||||||
(share/"nushell/vendor/autoload").install "completion/nu/task-completions.nu"
|
|
||||||
commit_author:
|
commit_author:
|
||||||
name: task-bot
|
name: task-bot
|
||||||
email: 106601941+task-bot@users.noreply.github.com
|
email: 106601941+task-bot@users.noreply.github.com
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ apk add task
|
|||||||
### [Homebrew](https://brew.sh)   {#homebrew}
|
### [Homebrew](https://brew.sh)   {#homebrew}
|
||||||
|
|
||||||
Task is available via our official Homebrew tap
|
Task is available via our official Homebrew tap
|
||||||
[[source](https://github.com/go-task/homebrew-tap/blob/main/Formula/go-task.rb)]:
|
[[source](https://github.com/go-task/homebrew-tap/blob/main/Casks/go-task.rb)]:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
brew install go-task/tap/go-task
|
brew install go-task/tap/go-task
|
||||||
|
|||||||
Reference in New Issue
Block a user