Skip to content

Commit

Permalink
Merge pull request #178426 from Homebrew/icestudio
Browse files Browse the repository at this point in the history
  • Loading branch information
bevanjkay committed Jul 3, 2024
2 parents a941872 + 4cdbd63 commit c3609c2
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions Casks/i/icestudio.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,39 @@
cask "icestudio" do
version "0.11"
sha256 "959f55093888b91fa8b6715ecc9d6a4d2494dc814ee2ab717ee825284ba13889"
arch arm: "arm64", intel: "64"

url "https://github.com/FPGAwars/icestudio/releases/download/v#{version}/icestudio-#{version}-osx64.dmg",
on_arm do
version "0.12"
sha256 "7a11f5055e11e2e19eab2dae9b4e8e4056938922cda2588f3fdd26ab3e87ae23"
end
on_intel do
version "0.11"
sha256 "959f55093888b91fa8b6715ecc9d6a4d2494dc814ee2ab717ee825284ba13889"
end

url "https://github.com/FPGAwars/icestudio/releases/download/v#{version}/icestudio-#{version}-osx#{arch}.dmg",
verified: "github.com/FPGAwars/icestudio/"
name "icestudio"
desc "Visual editor for open FPGA board"
homepage "https://icestudio.io/"

# Upstream has not included intel binaries in the latest version(s)
livecheck do
url :url
regex(/^icestudio[._-]v?(\d+(?:\.\d+)+)[._-]osx#{arch}\.dmg/i)
strategy :github_releases do |json, regex|
json.map do |release|
next if release["draft"] || release["prerelease"]

release["assets"]&.map do |asset|
match = asset["name"]&.match(regex)
next if match.blank?

match[1]
end
end.flatten
end
end

app "icestudio.app"

zap trash: [
Expand Down

0 comments on commit c3609c2

Please sign in to comment.