mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Merge pull request #153892 from ansonhoyt/sonic-pi-4-4-0
sonic-pi 4.4.0, now with Apple Silicon builds
This commit is contained in:
+65
-10
@@ -1,19 +1,74 @@
|
||||
cask "sonic-pi" do
|
||||
version "4.3.0"
|
||||
sha256 "c5646b221d61ba55c8e1025a646718d1244333bd57e2a7bccc8eb71c5a7be585"
|
||||
arch arm: "Mac-arm64", intel: "Intel-Mac-x64"
|
||||
|
||||
on_mojave :or_older do
|
||||
version "3.3.1"
|
||||
sha256 "0bfd12f930311e8ef1c7306dc9c012cfcc1f8e50710fd26a8c18ba003573a506"
|
||||
|
||||
url "https://sonic-pi.net/files/releases/v#{version}/Sonic-Pi-for-Mac-x64-v#{version.dots_to_hyphens}.dmg"
|
||||
|
||||
livecheck do
|
||||
skip "Legacy version"
|
||||
end
|
||||
end
|
||||
on_catalina do
|
||||
version "4.3.0"
|
||||
sha256 "c5646b221d61ba55c8e1025a646718d1244333bd57e2a7bccc8eb71c5a7be585"
|
||||
|
||||
url "https://sonic-pi.net/files/releases/v#{version}/Sonic-Pi-for-Mac-x64-v#{version.dots_to_hyphens}.dmg"
|
||||
|
||||
livecheck do
|
||||
skip "Legacy version"
|
||||
end
|
||||
end
|
||||
on_big_sur do
|
||||
version "4.4.0"
|
||||
sha256 "7ed0e94cf92fdf2e8d51ee42c5f7c3478fbcef9630eb12dccf203f5e72bb517f"
|
||||
|
||||
url "https://sonic-pi.net/files/releases/v#{version}/Sonic-Pi-for-Intel-Mac-x64-v#{version.dots_to_hyphens}.dmg"
|
||||
|
||||
livecheck do
|
||||
skip "Legacy version"
|
||||
end
|
||||
end
|
||||
on_monterey do
|
||||
version "4.4.0"
|
||||
sha256 "7ed0e94cf92fdf2e8d51ee42c5f7c3478fbcef9630eb12dccf203f5e72bb517f"
|
||||
|
||||
url "https://sonic-pi.net/files/releases/v#{version}/Sonic-Pi-for-Intel-Mac-x64-v#{version.dots_to_hyphens}.dmg"
|
||||
|
||||
livecheck do
|
||||
skip "Legacy version"
|
||||
end
|
||||
end
|
||||
on_ventura :or_newer do
|
||||
version "4.4.0"
|
||||
sha256 arm: "fa4020ac4c3259bbed6d456c4b0e13126fe404c1b474654bffd583335f5d0ab5",
|
||||
intel: "7ed0e94cf92fdf2e8d51ee42c5f7c3478fbcef9630eb12dccf203f5e72bb517f"
|
||||
|
||||
url "https://sonic-pi.net/files/releases/v#{version}/Sonic-Pi-for-#{arch}-v#{version.dots_to_hyphens}.dmg"
|
||||
|
||||
livecheck do
|
||||
url :homepage
|
||||
regex(/href=.*?Sonic[._-]Pi[._-]for[._-]#{arch}[._-]v?(\d+(?:[.-]\d+)+)\.dmg/i)
|
||||
strategy :page_match do |page, regex|
|
||||
page.scan(regex).map { |match| match[0].tr("-", ".") }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
url "https://sonic-pi.net/files/releases/v#{version}/Sonic-Pi-for-Mac-x64-v#{version.dots_to_hyphens}.dmg"
|
||||
name "Sonic Pi"
|
||||
desc "Code-based music creation and performance tool"
|
||||
homepage "https://sonic-pi.net/"
|
||||
|
||||
livecheck do
|
||||
url :homepage
|
||||
regex(/href=.*?Sonic-Pi[^"' >]*?[._-]v?(\d+(?:[.-]\d+)+)\.dmg/i)
|
||||
strategy :page_match do |page, regex|
|
||||
page.scan(regex).map { |match| match[0].tr("-", ".") }
|
||||
end
|
||||
end
|
||||
depends_on macos: ">= :high_sierra"
|
||||
|
||||
app "Sonic Pi.app"
|
||||
|
||||
zap trash: [
|
||||
"~/.config/sonic-pi.net",
|
||||
"~/.sonic-pi",
|
||||
"~/Library/Preferences/net.sonic-pi.app.plist",
|
||||
"~/Library/Saved Application State/net.sonic-pi.app.savedState",
|
||||
]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user