cask "unsloth" do os macos: "MacOS.dmg", linux: "Linux.AppImage" version "0.1.911-beta" sha256 arm: "82d74dd6decb9589c9f03a5a2dd42e46b451ba80a443829a820b3f7c8152f9f0", x86_64_linux: "f9c9d00f3c29da97701c83f288023e06e8df1a9d437119951c684c4f5480fddb" on_macos do auto_updates true depends_on arch: :arm64 app "Unsloth.app" zap trash: [ "~/.unsloth/studio", "~/Library/Application Support/ai.unsloth.studio", "~/Library/Caches/ai.unsloth.studio", "~/Library/LaunchAgents/unsloth-studio.plist", "~/Library/WebKit/ai.unsloth.studio", ] end on_linux do depends_on arch: :x86_64 app_image "Unsloth-Desktop-Linux.AppImage", target: "Unsloth.AppImage" end url "https://github.com/unslothai/unsloth/releases/download/v#{version}/Unsloth-Desktop-#{os}" name "Unsloth Desktop" desc "Desktop application for Unsloth Studio" homepage "https://unsloth.ai/" # This regex has to match unstable versions until a stable version becomes # available. This should be updated in the future to only match stable # versions when possible. livecheck do url :url regex(/^v?(\d+(?:\.\d+)+.*)$/i) strategy :github_latest end end