Skip to content

Commit

Permalink
feat(craft): Add brew target on craft (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
romtsn authored Aug 30, 2023
1 parent 4fb3e76 commit 5b76c51
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,29 @@ changelogPolicy: auto
preReleaseCommand: bash scripts/craft-pre-release.sh
targets:
- name: npm
- name: brew
tap: getsentry/tools
template: >
require 'language/node'
class SentryWizard < Formula
desc "The Sentry Wizard helps you set up your projects with Sentry"
homepage "https://github.com/getsentry/sentry-wizard"
url "https://registry.npmjs.org/@sentry/wizard/-/wizard-{{version}}.tgz"
sha256 "{{checksums.sentry-wizard-v__VERSION____tgz}}"
version "{{version}}"
license "MIT"
depends_on "node"
def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
bin.install_symlink Dir["#{libexec}/bin/*"]
end
test do
assert_match version.to_s, shell_output("#{bin}/sentry-wizard --version").chomp
end
end
- name: registry
apps:
app:sentry-wizard:
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## Unreleased

- feat(craft): Add `brew` target for automatically publishing `sentry-wizard` to Sentry's custom Homebrew tap (#406)

You can now install `sentry-wizard` via Homebrew:

```sh
brew update
brew install getsentry/tools/sentry-wizard
```

## 3.10.0

- feat(remix): Add Remix wizard (#387)
Expand Down

0 comments on commit 5b76c51

Please sign in to comment.