-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodecrafters.rb
52 lines (45 loc) · 1.44 KB
/
codecrafters.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
49
50
51
52
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Codecrafters < Formula
desc "CodeCrafters CLI"
homepage "https://codecrafters.io"
version "36"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/codecrafters-io/cli/releases/download/v36/v36_darwin_amd64.tar.gz"
sha256 "73e5b47633cbc9f33f9ecab33e3fbbd324a40afcfc264b953647f03bbc628223"
def install
bin.install "codecrafters"
end
end
if Hardware::CPU.arm?
url "https://github.com/codecrafters-io/cli/releases/download/v36/v36_darwin_arm64.tar.gz"
sha256 "37905af2670e1c7b9134c33221e7223aef62f4d3bcb825eef14e460c612f8937"
def install
bin.install "codecrafters"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/codecrafters-io/cli/releases/download/v36/v36_linux_amd64.tar.gz"
sha256 "6d057032381f568102483e2ca523bce112ef2ea1f2d78f5f5253a61fbf63e636"
def install
bin.install "codecrafters"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/codecrafters-io/cli/releases/download/v36/v36_linux_arm64.tar.gz"
sha256 "3ab040225624e3fcb903414e2b03f7796b44277a97b2e3325c30fa3efba75f5a"
def install
bin.install "codecrafters"
end
end
end
end
end