Skip to content

Commit

Permalink
Use version variable for download URLs
Browse files Browse the repository at this point in the history
Signed-off-by: Kate Goldenring <[email protected]>
  • Loading branch information
kate-goldenring committed Nov 13, 2023
1 parent 2c1a1c3 commit 8513c81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Formula/spin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ class Spin < Formula
version "2.0.1"

if OS.mac? && Hardware::CPU.intel?
url "https://github.com/fermyon/spin/releases/download/v2.0.1/spin-v2.0.1-macos-amd64.tar.gz"
url "https://github.com/fermyon/spin/releases/download/v#{version}/spin-v#{version}-macos-amd64.tar.gz"
sha256 "00ddfa87cdbbb2089cf87300f581c1e1a7e8fa02a560dbb89145e89cbc552675"
end

if OS.mac? && Hardware::CPU.arm?
url "https://github.com/fermyon/spin/releases/download/v2.0.1/spin-v2.0.1-macos-aarch64.tar.gz"
url "https://github.com/fermyon/spin/releases/download/v#{version}/spin-v#{version}-macos-aarch64.tar.gz"
sha256 "65bf7caf63fe9fd6b23c96dad8d6d71dd6c8028cf1684b6ff4b895aa4001bd29"
end

if OS.linux? && Hardware::CPU.intel?
url "https://github.com/fermyon/spin/releases/download/v2.0.1/spin-v2.0.1-linux-amd64.tar.gz"
url "https://github.com/fermyon/spin/releases/download/v#{version}/spin-v#{version}-linux-amd64.tar.gz"
sha256 "686bb12b9244ed33bf54a53e62303879036632b476ad09a728172b260f26c8e7"
end

if OS.linux? && Hardware::CPU.arm?
url "https://github.com/fermyon/spin/releases/download/v2.0.1/spin-v2.0.1-linux-aarch64.tar.gz"
url "https://github.com/fermyon/spin/releases/download/v#{version}/spin-v#{version}-linux-aarch64.tar.gz"
sha256 "e2ca780a1f914839fb7448db925c0376236fe2aea60173ead3201d4c2a0b89f1"
end

Expand Down

0 comments on commit 8513c81

Please sign in to comment.