-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdayone2md.rb
47 lines (40 loc) · 1.35 KB
/
dayone2md.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 Dayone2md < Formula
desc ""
homepage "https://github.com/kwo/homebrew-tools"
version "1.2.5"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/kwo/dayone2md/releases/download/v1.2.5/dayone2md_Darwin_arm64.tar.gz"
sha256 "5313c220801bf9acf90c6d8c458cc6d7aadeace02e242dfb93002c9c06be345b"
def install
bin.install "dayone2md"
end
end
if Hardware::CPU.intel?
url "https://github.com/kwo/dayone2md/releases/download/v1.2.5/dayone2md_Darwin_x86_64.tar.gz"
sha256 "644be5a40e112beafd8fdc25c104440cc5d95408dd6132f132385546aaf77010"
def install
bin.install "dayone2md"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/kwo/dayone2md/releases/download/v1.2.5/dayone2md_Linux_arm64.tar.gz"
sha256 "d16de340d6e8540ba52b4e0cbb9ecdac8249d70d4aae0d3d63dfffb3fded2b67"
def install
bin.install "dayone2md"
end
end
if Hardware::CPU.intel?
url "https://github.com/kwo/dayone2md/releases/download/v1.2.5/dayone2md_Linux_x86_64.tar.gz"
sha256 "ec15147da0c3ea90194a769dd282c1b0c957cf7400fe0f05a4c8e6981736d5d9"
def install
bin.install "dayone2md"
end
end
end
end