Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(craft): Add brew target on craft #406

Merged
merged 6 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/*"]
romtsn marked this conversation as resolved.
Show resolved Hide resolved
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
Loading