cask "orion" do version "0.99,129" on_mojave :or_older do sha256 "e61d9a603a70a30bfc302a932cf57646a0e87567399efefc7b57eec770ed98b1" url "https://browser.kagi.com/updates/10_14/#{version.csv.second}.zip" livecheck do url "https://cdn.kagi.com/updates/10_14/appcast.xml" strategy :sparkle end depends_on macos: :mojave end on_catalina do sha256 "89415b940c469f3445b84f2eaaf69e0883de3e0efad7576ce4c06e7dea1c900c" url "https://browser.kagi.com/updates/10_15/#{version.csv.second}.zip" livecheck do url "https://cdn.kagi.com/updates/10_15/appcast.xml" strategy :sparkle end depends_on macos: :catalina end on_big_sur do sha256 "e2dcaaed6c2fdae7a8325cf80174a8044e8446e6cd350646314302d36a03d34c" url "https://browser.kagi.com/updates/11_0/#{version.csv.second}.zip" livecheck do url "https://cdn.kagi.com/updates/11_0/appcast.xml" strategy :sparkle end depends_on macos: :big_sur end on_monterey do sha256 "0c6f12caa7c194733c50b87b82e87d7036fb0afec59092b7e0eb7608fd89814f" url "https://browser.kagi.com/updates/12_0/#{version.csv.second}.zip" livecheck do url "https://cdn.kagi.com/updates/12_0/appcast.xml" strategy :sparkle end depends_on macos: :monterey end on_ventura do sha256 "54f26d53c8de832be29d9822f442cfdc32516e1dc0b1d217f049cc00dfad1041" url "https://browser.kagi.com/updates/13_0/#{version.csv.second}.zip" livecheck do url "https://cdn.kagi.com/updates/13_0/appcast.xml" strategy :sparkle end depends_on macos: :ventura end on_sonoma do sha256 "cc67a43cec32ad45267afc873dba91085863bb542dcbd8265437ec5da0e04c6e" url "https://browser.kagi.com/updates/14_0/#{version.csv.second}.zip" livecheck do url "https://cdn.kagi.com/updates/14_0/appcast.xml" strategy :sparkle end depends_on macos: :sonoma end on_sequoia :or_newer do sha256 "0326d6d962bff816c063f19dd494ed7cc3d64767a868b2f8666f2f99b58ed909" url "https://browser.kagi.com/updates/15_0/#{version.csv.second}.zip" livecheck do url "https://cdn.kagi.com/updates/15_0/appcast.xml" strategy :sparkle end depends_on macos: ">= :sequoia" end name "Orion Browser" desc "WebKit based web browser" homepage "https://browser.kagi.com/" auto_updates true app "Orion.app" uninstall quit: "com.kagi.kagimacOS" zap trash: [ "~/Library/Application Scripts/com.kagi.kagimacOS.ShareExtension", "~/Library/Application Support/Orion", "~/Library/Caches/com.kagi.kagimacOS", "~/Library/Containers/com.kagi.kagimacOS.ShareExtension", "~/Library/HTTPStorages/com.kagi.kagimacOS*", "~/Library/Preferences/com.kagi.kagimacOS.plist", "~/Library/WebKit/com.kagi.kagimacOS", ] end