cask "openlogi" do arch arm: "arm64", intel: "x86_64" version "0.9.0" sha256 arm: "308b676d94be48c8a55f4953cd81699945d0d8740da06881d986a9f289837012", intel: "49b5e36e1d3c6887f2b9568646714fc5a64d99adf4ae370e734ad6880eb3ec19" url "https://updates.openlogi.org/releases/v#{version}/OpenLogi-v#{version}-macos-#{arch}.dmg" name "OpenLogi" desc "Local-first alternative to Logitech Options+ for HID++ devices" homepage "https://openlogi.org/" livecheck do url "https://github.com/AprilNEA/OpenLogi" strategy :github_latest end auto_updates true depends_on macos: :ventura app "OpenLogi.app" binary "#{appdir}/OpenLogi.app/Contents/MacOS/openlogi" uninstall launchctl: "org.openlogi.agent.service", quit: [ "org.openlogi.agent", "org.openlogi.openlogi", "org.openlogi.overlay", ] zap trash: [ "~/.config/openlogi", "~/.local/share/openlogi", "~/Library/Caches/org.openlogi.openlogi", "~/Library/Preferences/org.openlogi.openlogi.plist", "~/Library/Preferences/org.openlogi.overlay.plist", "~/Library/Saved Application State/org.openlogi.openlogi.savedState", ] end