cask "deviceshelf" do arch arm: on_system_conditional(linux: "-arm64") os macos: "dmg", linux: "AppImage" version "1.9.81" sha256 arm: "e7ba4eedf5912003f2696f8b487f0f4bf8e4745476a17c534446d6140b5b36df", intel: "e7ba4eedf5912003f2696f8b487f0f4bf8e4745476a17c534446d6140b5b36df", arm64_linux: "58b9e910f9ec70386e7fb7100e714c6b6c7b078b16e85c8da618e528f6f24570", x86_64_linux: "c7a54cf1c33ecafb9f40e9522cfe60fc1b44f97bbaeca0815e20a3e7a6f6ac5a" on_macos do app "DeviceShelf.app" uninstall launchctl: "app.deviceshelf.ChmodBPF", quit: "com.wails.DeviceShelf", delete: [ "/Library/Application Support/DeviceShelf/ChmodBPF", "/Library/LaunchDaemons/app.deviceshelf.ChmodBPF.plist", ] zap trash: [ "/Library/Application Support/DeviceShelf", "~/Library/Application Support/DeviceShelf", "~/Library/Caches/com.wails.DeviceShelf", "~/Library/Preferences/com.wails.DeviceShelf.plist", "~/Library/Saved Application State/com.wails.DeviceShelf.savedState", "~/Library/WebKit/com.wails.DeviceShelf", ] end on_linux do app_image "DeviceShelf-#{version}#{arch}.AppImage", target: "DeviceShelf.AppImage" zap trash: "~/.config/DeviceShelf" end url "https://downloads.deviceshelf.app/DeviceShelf-#{version}#{arch}.#{os}" name "DeviceShelf" desc "Scanner for devices, open ports and security risks on the local network" homepage "https://deviceshelf.app/" livecheck do url "https://deviceshelf.app/latest.json" strategy :json do |json| json["version"] end end end