-
Notifications
You must be signed in to change notification settings - Fork 0
/
dgw.rb
48 lines (41 loc) · 1.41 KB
/
dgw.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Dgw < Formula
desc "dgw generates Golang struct, and simple Table/Row Data Gateway functions from PostgreSQL table metadata"
homepage "https://github.com/kanmu/dgw"
version "1.2.1"
license "MIT"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/kanmu/dgw/releases/download/v1.2.1/dgw_1.2.1_darwin_arm64.tar.gz"
sha256 "0ab10cdbe1e1eafe9b44f9e2b1ea8638da4832512b9498a70757965fcf1e56ba"
def install
bin.install 'dgw'
end
end
if Hardware::CPU.intel?
url "https://github.com/kanmu/dgw/releases/download/v1.2.1/dgw_1.2.1_darwin_amd64.tar.gz"
sha256 "b87f6811913ffbba7ba23a08893ca46d61125dc5db78ff6107d1ce67638314b3"
def install
bin.install 'dgw'
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/kanmu/dgw/releases/download/v1.2.1/dgw_1.2.1_linux_arm64.tar.gz"
sha256 "ce9d60a7c7949f81559f8317f98810a93b38d9bed7c31d1cfd4a6896a73b731d"
def install
bin.install 'dgw'
end
end
if Hardware::CPU.intel?
url "https://github.com/kanmu/dgw/releases/download/v1.2.1/dgw_1.2.1_linux_amd64.tar.gz"
sha256 "a0df97a0708ecd8894a95f44672eeabc85c034251398d8ad899d07c138649d41"
def install
bin.install 'dgw'
end
end
end
end