cask "otty" do arch arm: "arm64", intel: "x86_64" livecheck_arch = on_arch_conditional arm: "arm", intel: "intel" version "1.6.2" sha256 arm: "d095b964389f09b7408f0a7782ef28acdf7467e888ef830ccc03a60615370dad", intel: "7eb2e479eb82b0488d2082db90840b4adf47a4d928eff499170603f1d2ab9104" url "https://downloads.otty.sh/macos/Otty-#{version}-#{arch}.zip" name "Otty" desc "Terminal emulator built for code agents" homepage "https://otty.sh/" livecheck do url "https://otty.sh/releases/macos-#{livecheck_arch}.json" strategy :json do |json| json["version"] end end depends_on macos: :sonoma app "Otty.app" binary "#{appdir}/Otty.app/Contents/MacOS/otty-cli", target: "otty" generate_completions_from_executable "#{HOMEBREW_PREFIX}/bin/otty", "completions" zap trash: [ "~/.config/otty", "~/Library/Application Support/io.appmakes.otty", "~/Library/Caches/io.appmakes.otty", "~/Library/Caches/otty", "~/Library/HTTPStorages/io.appmakes.otty", "~/Library/Preferences/io.appmakes.otty.plist", "~/Library/WebKit/io.appmakes.otty", ] end