cask "bb" do os macos: "arm64.dmg", linux: "x86_64.AppImage" version "0.47.0" sha256 arm: "2adf3ffc49dfd0b7496a425666dee6167c8a959d1d5fea1a447a67b8ed404029", x86_64_linux: "b4e62028f6a729e5c000d558a6c619f74413ff4d57447c49f642eeb49e9db90c" on_macos do depends_on arch: :arm64 depends_on macos: :ventura app "bb.app" zap trash: [ "~/Library/Application Support/bb", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/dev.bb.desktop.sfl*", "~/Library/Preferences/dev.bb.desktop.plist", ], rmdir: "~/.bb" end on_linux do depends_on arch: :x86_64 app_image "bb-#{version}-x86_64.AppImage", target: "bb.AppImage" end url "https://github.com/get-bb/bb/releases/download/desktop-v#{version}/bb-#{version}-#{os}" name "bb" desc "IDE for running and orchestrating coding agents" homepage "https://getbb.app/" livecheck do url :url regex(/^desktop[._-]v?(\d+(?:\.\d+)+)$/i) end end