-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstitchmd.rb
66 lines (57 loc) · 1.83 KB
/
stitchmd.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
54
55
56
57
58
59
60
61
62
63
64
65
66
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Stitchmd < Formula
desc "Stitch multiple Markdown files together into a single document."
homepage "https://github.com/abhinav/stitchmd"
version "0.9.0"
license "GPL-2.0"
on_macos do
on_intel do
url "https://github.com/abhinav/stitchmd/releases/download/v0.9.0/stitchmd-darwin-amd64.tar.gz"
sha256 "e4a4053fe1c8addec90fc7dc3580d76130940946ae7f3377c9a08503e07b9fae"
def install
bin.install "stitchmd"
end
end
on_arm do
url "https://github.com/abhinav/stitchmd/releases/download/v0.9.0/stitchmd-darwin-arm64.tar.gz"
sha256 "d12bddffd22c4636136240d7352c98ce4f26e26c368445f8bd2cba33aa38daaa"
def install
bin.install "stitchmd"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/abhinav/stitchmd/releases/download/v0.9.0/stitchmd-linux-amd64.tar.gz"
sha256 "0fca7cca22f22b2c29d2b2399d6dca7fc8e634ae95ee89226bb99dd7d916bd0d"
def install
bin.install "stitchmd"
end
end
end
on_arm do
if !Hardware::CPU.is_64_bit?
url "https://github.com/abhinav/stitchmd/releases/download/v0.9.0/stitchmd-linux-armv6.tar.gz"
sha256 "0695d00d3ecdb45ef7b62e88192df6ae9d4404454b658d8b31c294be7bd45ffa"
def install
bin.install "stitchmd"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/abhinav/stitchmd/releases/download/v0.9.0/stitchmd-linux-arm64.tar.gz"
sha256 "c27b7d5fb67fa6e0f4d5468320a1e73620de68fc2047845a94d973b628564924"
def install
bin.install "stitchmd"
end
end
end
end
test do
system "#{bin}/stitchmd -version"
end
end