3 sha256 "019e6ac4f156c07fbf2a1a45984725af9507d0569d333334f6ac99e1a056d724"
5 url "https://github.com/86Box/86Box/releases/download/v#{version.csv.first}/86Box-macOS-x86_64+arm64-b#{version.csv.second}.zip",
6 verified: "github.com/86Box/86Box/"
8 desc "Emulator of x86-based machines based on PCem"
9 homepage "https://86box.net/"
13 regex(%r{/v?(\d+(?:\.\d+)*)/86Box[._-]macOS.*?[._-]b(\d+)\.zip$}i)
14 strategy :github_latest do |json, regex|
15 json["assets"]&.map do |asset|
16 match = asset["browser_download_url"]&.match(regex)
19 "#{match[1]},#{match[2]}"
24 depends_on macos: ">= :mojave"
26 app "86Box.app", target: "86Box/86Box.app"
28 roms_dir = Pathname("~/Library/Application Support/net.86box.86Box/roms")
31 roms_dir.expand_path.mkpath
35 "/Applications/86Box",
36 "~/Library/Application Support/net.86box.86Box",
37 "~/Library/Saved Application State/net.86Box.86Box.savedState",
42 The latest ROM files from https://github.com/86Box/roms need to be installed into: