-
Notifications
You must be signed in to change notification settings - Fork 3
/
preflight.rb
48 lines (41 loc) · 1.49 KB
/
preflight.rb
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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Preflight < Formula
desc "Verify your curl scripts and executables before running them"
homepage "https://github.com/spectralops/preflight"
version "1.1.5"
license "Apache 2.0"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/SpectralOps/preflight/releases/download/v1.1.5/preflight_1.1.5_Darwin_arm64.tar.gz"
sha256 "ee18ed8eda9f83b41be18a0e3cde647a5dbbd5e1af16cda5deca0b842335624f"
def install
bin.install "preflight"
end
end
if Hardware::CPU.intel?
url "https://github.com/SpectralOps/preflight/releases/download/v1.1.5/preflight_1.1.5_Darwin_x86_64.tar.gz"
sha256 "a7d92336b5a9d44bb33df17488e719a3c76e3ee59f5b945a74d05c569ebef491"
def install
bin.install "preflight"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/SpectralOps/preflight/releases/download/v1.1.5/preflight_1.1.5_Linux_arm64.tar.gz"
sha256 "6edce8b440701ec8bfd4041f4f018d41e71199b8e02b3ea291c01d75d418ccad"
def install
bin.install "preflight"
end
end
if Hardware::CPU.intel?
url "https://github.com/SpectralOps/preflight/releases/download/v1.1.5/preflight_1.1.5_Linux_x86_64.tar.gz"
sha256 "d428ff2137e63f98ddaadd2a30f943a9f2eaeb1eecce788f917e501e19f44b02"
def install
bin.install "preflight"
end
end
end
end