-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpixlet.rb
53 lines (44 loc) · 1.47 KB
/
pixlet.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
53
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Pixlet < Formula
desc "App runtime and UX toolkit for pixel-based apps."
homepage "https://github.com/tidbyt/pixlet"
version "0.34.0"
depends_on "webp"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/tidbyt/pixlet/releases/download/v0.34.0/pixlet_0.34.0_darwin_arm64.tar.gz"
sha256 "023661481423ee474e325d31ba9c13c30e12988d299cff032062737683e42328"
def install
bin.install "pixlet"
end
end
if Hardware::CPU.intel?
url "https://github.com/tidbyt/pixlet/releases/download/v0.34.0/pixlet_0.34.0_darwin_amd64.tar.gz"
sha256 "7702e84c3f21c80e98fc58cf0d3f6e9690bfe68f15c01289eb11743d2d8a70f4"
def install
bin.install "pixlet"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/tidbyt/pixlet/releases/download/v0.34.0/pixlet_0.34.0_linux_amd64.tar.gz"
sha256 "5833d0711803dd6374e696a5d02462f766b299df6413486021fb4035dcc54640"
def install
bin.install "pixlet"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/tidbyt/pixlet/releases/download/v0.34.0/pixlet_0.34.0_linux_arm64.tar.gz"
sha256 "b8c386179c1e5edfa0486e94f7f649ee0eed158ed479e015748faf8aa5246eae"
def install
bin.install "pixlet"
end
end
end
test do
system "#{bin}/pixlet --version"
end
end