Skip to content

Commit

Permalink
[skip ci] v1.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
punq committed Sep 15, 2023
1 parent 8325868 commit 68dc1fd
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions punq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,62 +4,62 @@ class Punq < Formula

on_macos do
if Hardware::CPU.arm?
url "https://github.com/mogenius/homebrew-punq/releases/download/v1.2.6/punq-v1.2.6-darwin-arm64.tar.gz"
sha256 "043c3e0c7433da0deae35cf9929e72b59751e0976074d4b403da2b4c002ee5a9"
url "https://github.com/mogenius/homebrew-punq/releases/download/v1.2.7/punq-v1.2.7-darwin-arm64.tar.gz"
sha256 "fe8b19289cb2ccfecff6a8f36a28fd1fedc61d24d4ef7f29c861aa6c734885bf"
elsif Hardware::CPU.intel?
url "https://github.com/mogenius/homebrew-punq/releases/download/v1.2.6/punq-v1.2.6-darwin-amd64.tar.gz"
sha256 "ca880df7f92d3691d62d888bb833489e38af628f95b5c2ede75ca4937bc29066"
url "https://github.com/mogenius/homebrew-punq/releases/download/v1.2.7/punq-v1.2.7-darwin-amd64.tar.gz"
sha256 "1ee0efe51d07862bcda6704bca06476771dcb9a7215e0c609de55e8327f672fb"
end
end

on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/mogenius/homebrew-punq/releases/download/v1.2.6/punq-v1.2.6-linux-amd64.tar.gz"
sha256 "73d15bdf48769f162ae3ff1856fffe996d27faab86e6d38486f093ec118ed889"
url "https://github.com/mogenius/homebrew-punq/releases/download/v1.2.7/punq-v1.2.7-linux-amd64.tar.gz"
sha256 "06e5f834426577bb4f1e3c0127159d8e6cce7d30c958cd6a882dcd61d8a12dca"
else
url "https://github.com/mogenius/homebrew-punq/releases/download/v1.2.6/punq-v1.2.6-linux-386.tar.gz"
sha256 "762d616459bebc4736c4769323a830f867ff80644ca3cc1f21b5ac9137298ef6"
url "https://github.com/mogenius/homebrew-punq/releases/download/v1.2.7/punq-v1.2.7-linux-386.tar.gz"
sha256 "e1359cddafaae87107d8b87630a8b30628d82c795e1535428a681244c8349d67"
end
elif Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/mogenius/homebrew-punq/releases/download/v1.2.6/punq-v1.2.6-linux-arm64.tar.gz"
sha256 "23b2f436514ef4f3a9f35d0a63694823a5127c402f12f79d55e6527f22b387ff"
url "https://github.com/mogenius/homebrew-punq/releases/download/v1.2.7/punq-v1.2.7-linux-arm64.tar.gz"
sha256 "6832c92de76aa0f875b4176f044cd0ebc2a747dc4029cf986889886fc68dc4ce"
else
url "https://github.com/mogenius/homebrew-punq/releases/download/v1.2.6/punq-v1.2.6-linux-arm.tar.gz"
sha256 "00887cccb115434935bec43b4be634544f3c218477d606ca50ab2fc2a4f750d4"
url "https://github.com/mogenius/homebrew-punq/releases/download/v1.2.7/punq-v1.2.7-linux-arm.tar.gz"
sha256 "c11360383f11238a1b7d73839f27673876f74910ad0bca69a8e01977a67892d2"
end
end
end

version "1.2.6"
version "1.2.7"
license "MIT"

def install
if OS.mac?
if Hardware::CPU.arm?
# Installation steps for macOS ARM64
bin.install "punq-v1.2.6-darwin-arm64" => "punq"
bin.install "punq-v1.2.7-darwin-arm64" => "punq"
elsif Hardware::CPU.intel?
# Installation steps for macOS AMD64
bin.install "punq-v1.2.6-darwin-amd64" => "punq"
bin.install "punq-v1.2.7-darwin-amd64" => "punq"
end
elsif OS.linux?
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
# Installation steps for Linux AMD64
bin.install "punq-v1.2.6-linux-amd64" => "punq"
bin.install "punq-v1.2.7-linux-amd64" => "punq"
else
# Installation steps for Linux 386
bin.install "punq-v1.2.6-linux-386" => "punq"
bin.install "punq-v1.2.7-linux-386" => "punq"
end
elsif Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
# Installation steps for Linux ARM64
bin.install "punq-v1.2.6-linux-arm64" => "punq"
bin.install "punq-v1.2.7-linux-arm64" => "punq"
else
# Installation steps for Linux ARM
bin.install "punq-v1.2.6-linux-arm" => "punq"
bin.install "punq-v1.2.7-linux-arm" => "punq"
end
end
end
Expand Down

0 comments on commit 68dc1fd

Please sign in to comment.