-
Notifications
You must be signed in to change notification settings - Fork 5
/
freeze.rb
47 lines (40 loc) · 1.4 KB
/
freeze.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Freeze < Formula
desc "Generate images of code and terminal output."
homepage "https://charm.sh/"
version "0.1.6"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/charmbracelet/freeze/releases/download/v0.1.6/freeze_0.1.6_Darwin_x86_64.tar.gz"
sha256 "d733eac1b1a1f2eeff760b2dc0c3bc80d4f98bef1ed2521549e50fde64a018a4"
def install
bin.install "freeze"
end
end
if Hardware::CPU.arm?
url "https://github.com/charmbracelet/freeze/releases/download/v0.1.6/freeze_0.1.6_Darwin_arm64.tar.gz"
sha256 "713935930872c6004f7b9690fbaa102bdc63e9743aed65a88aba928f494c76bd"
def install
bin.install "freeze"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/charmbracelet/freeze/releases/download/v0.1.6/freeze_0.1.6_Linux_x86_64.tar.gz"
sha256 "1146f8b0881ded798f7291f21910867adc9f7e8ae7b14243d74c5c05d0b8427f"
def install
bin.install "freeze"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/charmbracelet/freeze/releases/download/v0.1.6/freeze_0.1.6_Linux_arm64.tar.gz"
sha256 "ee0858453cfb51accdb7fd2fd0ef4c30350b4b566d662cc10506b455517031d7"
def install
bin.install "freeze"
end
end
end
end