cask "osu@tachyon" do arch arm: "Apple.Silicon", intel: "Intel" version "2026.1005.1-tachyon" sha256 arm: "3786d3f95cf7ca13f995af159cffa8b2a98e03a1c8c8563b5b01e833aee56968", intel: "725831f9d6953489f22ca5908eee6e546598697836a6cb6a329f2b3e3ecfced6" url "https://github.com/ppy/osu/releases/download/#{version}/osu.app.#{arch}.zip" name "osu! (tachyon)" desc "Rhythm game" homepage "https://github.com/ppy/osu/" # There can be a notable gap between tag and release, so it's necessary to # check releases instead of Git tags. Tachyon releases are marked as # "pre-release" on GitHub, so we have to use the `GithubReleases` strategy. livecheck do url :url regex(/^v?((\d+(?:\.\d+)+)(?:-\w+)?)$/i) strategy :github_releases do |json, regex| json.map do |release| next if release["draft"] match = release["tag_name"]&.match(regex) next if match.blank? match[1] end end end auto_updates true conflicts_with cask: "osu" depends_on :macos app "osu!.app" uninstall quit: "sh.ppy.osu.lazer" zap trash: [ "~/.local/share/osu", "~/Library/Saved Application State/sh.ppy.osu.lazer.savedState", ] end