cask "motrix@beta" do arch arm: "-arm64", intel: on_system_conditional(macos: "-x64", linux: "-x86_64") os macos: "dmg", linux: "AppImage" version "2.0.0-beta.47" sha256 arm: "d55a5b5d54ff90da595af74bcb55619abeda84bae446bd6e8c68f18dd7a6382e", intel: "461bfb82db8a078b63656830bb89e56b553cf2d8956d38c71bd8eb8555144f37", arm64_linux: "5e99de124cf2036694fd7dfc96042ab5b216b0791af27bfe6d39e0d0dd192913", x86_64_linux: "8a812bcb4373e001b7d773242ccf10448971a80c52d2e5fba90a81ac9a0aef6f" on_macos do depends_on macos: :ventura app "Motrix.app" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/app.motrix.native.sfl*", "~/Library/Application Support/Motrix", "~/Library/Caches/app.motrix.native", "~/Library/Logs/Motrix", "~/Library/Preferences/app.motrix.native.plist", "~/Library/Saved Application State/app.motrix.native.savedState", ] end on_linux do app_image "Motrix-#{version}#{arch}.AppImage", target: "Motrix.AppImage" end url "https://github.com/agalwood/Motrix/releases/download/v#{version}/Motrix-#{version}#{arch}.#{os}" name "Motrix Beta" desc "Open-source download manager" homepage "https://motrix.app/" livecheck do url :url regex(/^v?(\d+(?:\.\d+)+(?:[._-]beta\.\d+)?)$/i) strategy :github_releases do |json, regex| json.map do |release| next if release["draft"] || !release["prerelease"] match = release["tag_name"]&.match(regex) next if match.blank? match[1] end end end auto_updates true conflicts_with cask: "motrix" end