cask "openwork" do arch arm: "arm64", intel: on_system_conditional(macos: "x64", linux: "x86_64") os macos: "mac", linux: "linux" url_end = on_system_conditional macos: "dmg", linux: "AppImage" version "0.18.60" sha256 arm: "b9346c460d1408a74dfa3ea379d342eef3ee2ae63e56e8eb7827b0dc521cabbd", intel: "a36a229e4ac0c7f3c3d6b3c99cc0e101b6496a1fc25ace5405fdfb69bdf1288d", arm64_linux: "1c258797b9276e8cd8b375a40b13f917ae4f291e359088b52b51b31d39b6c182", x86_64_linux: "c945ec5f62b9e9528d5e52013631a7c48ed7aae193dc60510ce5cc45aca7e62f" on_macos do auto_updates true depends_on macos: :monterey app "OpenWork.app" uninstall quit: "com.differentai.openwork" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.differentai.openwork.sfl*", "~/Library/Application Support/com.differentai.openwork", "~/Library/Application Support/OpenWork", "~/Library/Caches/OpenWork", "~/Library/Preferences/com.differentai.openwork.plist", "~/Library/Preferences/com.differentai.openwork.ShipIt.plist", ] end on_linux do app_image "openwork-linux-#{arch}-#{version}.AppImage", target: "OpenWork.AppImage" end url "https://github.com/different-ai/openwork/releases/download/v#{version}/openwork-#{os}-#{arch}-#{version}.#{url_end}" name "OpenWork" desc "Unofficial desktop GUI for OpenCode" homepage "https://openworklabs.com/" livecheck do url :url strategy :github_latest end end