25 lines
629 B
Ruby
25 lines
629 B
Ruby
cask "otx" do
|
|
version "1.7,b566"
|
|
sha256 "116a9441cfed31c28e0f9b3aa26b82f2a7186d3c8ec4afd2173c2ad460e51ab8"
|
|
|
|
url "https://github.com/x43x61x69/otx/releases/download/v#{version.csv.first}/otx_#{version.csv.second}.zip"
|
|
name "otx"
|
|
desc "Mach-O disassembler"
|
|
homepage "https://github.com/x43x61x69/otx"
|
|
|
|
livecheck do
|
|
url "https://github.com/x43x61x69/otx/releases/latest"
|
|
strategy :page_match do |page|
|
|
match = page.match(%r{href=.*?/v?(\d+(?:\.\d+)+)/otx[._-](\h+)\.zip}i)
|
|
next if match.blank?
|
|
|
|
"#{match[1]},#{match[2]}"
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
|
|
app "otx.app"
|
|
binary "otx"
|
|
end
|