Skip to content

Commit

Permalink
Merge pull request #185697 from daeho-ro/openmsx-livecheck
Browse files Browse the repository at this point in the history
openmsx: update livecheck regex
  • Loading branch information
bevanjkay committed Sep 17, 2024
2 parents 3a151b1 + a9b8f9b commit feeba67
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Casks/o/openmsx.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
cask "openmsx" do
version "19_1"
version "19.1"
sha256 "e81a31cd19b1fdf029b08b55879fef6793cb0bbcbdc79e6e4cc8892f64d82d8b"

url "https://github.com/openMSX/openMSX/releases/download/RELEASE_#{version}/openmsx-#{version.underscores_to_dots}-mac-x86_64-bin.dmg",
url "https://github.com/openMSX/openMSX/releases/download/RELEASE_#{version.dots_to_underscores}/openmsx-#{version}-mac-x86_64-bin.dmg",
verified: "github.com/openMSX/openMSX/"
name "openMSX"
desc "MSX emulator"
homepage "https://openmsx.org/"

livecheck do
url :url
regex(/^RELEASE[._-]v?(\d+(?:[._]\d+)+)$/i)
strategy :git do |tags, regex|
tags.filter_map { |tag| tag[regex, 1]&.tr("_", ".") }
end
end

app "openMSX.app"

zap trash: "~/.openMSX"

caveats do
requires_rosetta
end
Expand Down

0 comments on commit feeba67

Please sign in to comment.