-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.craft.yml
More file actions
78 lines (74 loc) · 2.67 KB
/
.craft.yml
File metadata and controls
78 lines (74 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
minVersion: '2.21.1'
changelog:
policy: auto
versioning:
policy: auto
preReleaseCommand: node --experimental-strip-types script/bump-version.ts --pre
postReleaseCommand: node --experimental-strip-types script/bump-version.ts --post
artifactProvider:
name: github
config:
artifacts:
Build:
- '/^sentry-.*$/'
- 'npm-package'
- 'gh-pages'
targets:
- name: npm
- name: github
- name: gh-pages
- name: registry
apps:
'app:sentry':
name: 'Sentry CLI'
packageUrl: 'https://www.npmjs.com/package/sentry'
mainDocsUrl: 'https://cli.sentry.dev'
urlTemplate: 'https://github.com/getsentry/cli/releases/download/{{version}}/{{file}}'
includeNames: '/^sentry-.*\.gz$/'
checksums:
- algorithm: sha256
format: hex
- name: brew
tap: getsentry/tools
formula: sentry
path: Formula
includeNames: '/^sentry-(darwin|linux)-(arm64|x64)\.gz$/'
template: |
class Sentry < Formula
desc "Sentry command-line tool for error monitoring and debugging"
homepage "https://cli.sentry.dev"
version "{{version}}"
license "FSL-1.1-MIT"
if OS.mac?
if Hardware::CPU.arm?
url "https://github.com/getsentry/cli/releases/download/{{version}}/sentry-darwin-arm64.gz"
sha256 "{{checksums.sentry-darwin-arm64__gz}}"
elsif Hardware::CPU.intel?
url "https://github.com/getsentry/cli/releases/download/{{version}}/sentry-darwin-x64.gz"
sha256 "{{checksums.sentry-darwin-x64__gz}}"
else
raise "Unsupported macOS CPU architecture: #{Hardware::CPU.type}"
end
elsif OS.linux?
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/getsentry/cli/releases/download/{{version}}/sentry-linux-arm64.gz"
sha256 "{{checksums.sentry-linux-arm64__gz}}"
elsif Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/getsentry/cli/releases/download/{{version}}/sentry-linux-x64.gz"
sha256 "{{checksums.sentry-linux-x64__gz}}"
else
raise "Unsupported Linux CPU architecture: #{Hardware::CPU.type} (only 64-bit arm and x86_64 are supported)"
end
else
raise "Unsupported operating system"
end
def install
bin.install Dir["sentry-*"].first => "sentry"
end
def post_install
system bin/"sentry", "cli", "setup", "--method", "brew", "--no-modify-path"
end
test do
assert_match version.to_s, shell_output("#{bin}/sentry --version").chomp
end
end