forked from getsentry/sentry-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.craft.yml
75 lines (75 loc) · 2.68 KB
/
.craft.yml
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
minVersion: 0.23.1
changelogPolicy: simple
targets:
- name: gcs
bucket: sentry-sdk-assets
includeNames: /^sentry-cli-(Darwin|Windows|Linux).*$/i
paths:
- path: /sentry-cli/{{version}}/
metadata:
cacheControl: public, max-age=2592000
- path: /sentry-cli/latest/
metadata:
cacheControl: public, max-age=600
- name: npm
- name: brew
tap: getsentry/tools
template: >
class SentryCli < Formula
desc "Sentry command-line client for some generic tasks"
homepage "https://github.com/getsentry/sentry-cli"
version "{{version}}"
license "BSD-3-Clause"
if OS.mac?
url "https://downloads.sentry-cdn.com/sentry-cli/{{version}}/sentry-cli-Darwin-universal"
sha256 "{{checksums.sentry-cli-Darwin-universal}}"
elsif OS.linux?
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://downloads.sentry-cdn.com/sentry-cli/{{version}}/sentry-cli-Linux-aarch64"
sha256 "{{checksums.sentry-cli-Linux-aarch64}}"
else
url "https://downloads.sentry-cdn.com/sentry-cli/{{version}}/sentry-cli-Linux-armv7"
sha256 "{{checksums.sentry-cli-Linux-armv7}}"
end
elseif Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://downloads.sentry-cdn.com/sentry-cli/{{version}}/sentry-cli-Linux-x86_64"
sha256 "{{checksums.sentry-cli-Linux-x86_64}}"
else
url "https://downloads.sentry-cdn.com/sentry-cli/{{version}}/sentry-cli-Linux-i686"
sha256 "{{checksums.sentry-cli-Linux-i686}}"
end
else
raise "Unsupported architecture"
end
else
raise "Unsupported operating system"
end
def install
bin.install Dir["sentry-cli-*"].first => "sentry-cli"
end
test do
assert_match version.to_s, shell_output("#{bin}/sentry-cli --version").chomp
end
end
- name: github
includeNames: /^sentry-cli-(Darwin|Windows|Linux).*$/i
- name: registry
apps:
app:sentry-cli:
urlTemplate: https://downloads.sentry-cdn.com/sentry-cli/{{version}}/{{file}}
includeNames: /^sentry-cli-(Darwin|Windows|Linux).*$/i
checksums:
- algorithm: sha256
format: hex
requireNames:
- /^sentry-cli-Darwin-x86_64$/
- /^sentry-cli-Darwin-arm64$/
- /^sentry-cli-Darwin-universal$/
- /^sentry-cli-Linux-i686$/
- /^sentry-cli-Linux-x86_64$/
- /^sentry-cli-Linux-armv7$/
- /^sentry-cli-Linux-aarch64$/
- /^sentry-cli-Windows-i686.exe$/
- /^sentry-cli-Windows-x86_64.exe$/