Skip to content

Commit

Permalink
Brew formula update for json2struct version v1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
marhaupe committed Jul 30, 2022
1 parent c8c08f1 commit a9defe8
Showing 1 changed file with 38 additions and 12 deletions.
50 changes: 38 additions & 12 deletions formula/json2struct.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,49 @@
# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class Json2struct < Formula
desc ""
homepage ""
version "1.3.0"
bottle :unneeded
version "1.4.1"

on_macos do
if Hardware::CPU.arm?
url "https://github.com/marhaupe/json2struct/releases/download/v1.4.1/json2struct_1.4.1_macOS_arm64.tar.gz"
sha256 "47bc7f3061d8821c2dec7c0542ba2ec95c68e7fb91fad77223e776b0c1bf1a57"

if OS.mac?
url "https://github.com/marhaupe/json2struct/releases/download/v1.3.0/json2struct_1.3.0_macOS_64-bit.tar.gz"
sha256 "3f82dace61f1a2e6a94c701512fe28fe0ffce9dfe9e164699b562081b51b0814"
elsif OS.linux?
def install
bin.install "json2struct"
end
end
if Hardware::CPU.intel?
url "https://github.com/marhaupe/json2struct/releases/download/v1.3.0/json2struct_1.3.0_linux_64-bit.tar.gz"
sha256 "9be7585b63803e787a34a58ea925d66644ae4402bd47e22f838ec703338d0362"
url "https://github.com/marhaupe/json2struct/releases/download/v1.4.1/json2struct_1.4.1_macOS_64-bit.tar.gz"
sha256 "3e0862d5ffe53cce5f85f1edf36208c4fc9e8c71d8cfa89ce0b57ab3d31470b3"

def install
bin.install "json2struct"
end
end
end

depends_on "git"

def install
bin.install "json2struct"
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/marhaupe/json2struct/releases/download/v1.4.1/json2struct_1.4.1_linux_arm64.tar.gz"
sha256 "aef61fa25f65792f33f47a55b4a5dca76aeea3c1e120aea74d83d610cd4b4fca"

def install
bin.install "json2struct"
end
end
if Hardware::CPU.intel?
url "https://github.com/marhaupe/json2struct/releases/download/v1.4.1/json2struct_1.4.1_linux_64-bit.tar.gz"
sha256 "3c4afd209dba67c4777c77aa8ffff2667e0d4175dfa131883b86af676f50defa"

def install
bin.install "json2struct"
end
end
end

depends_on "git"
end

0 comments on commit a9defe8

Please sign in to comment.