cask "v2rayu" do arch arm: "arm64", intel: "64" version "4.2.6" sha256 arm: "f3d76886d7c2122f8911c314263c951051c52756b368e3b88545ebcd4075e474", intel: "3c5d48c28f4c213995fecdd9ab6737977a132013c454619d979f9aa654c1f430" url "https://github.com/yanue/V2rayU/releases/download/v#{version}/V2rayU-#{arch}.dmg" name "V2rayU" desc "Collection of tools to build a dedicated basic communication network" homepage "https://github.com/yanue/V2rayU" # A tag using the stable version format is sometimes marked as "Pre-release" # on the GitHub releases page, so we have to use the `GithubLatest` strategy. livecheck do url :url strategy :github_latest end no_autobump! because: :requires_manual_review auto_updates true depends_on macos: ">= :big_sur" app "V2rayU.app" uninstall launchctl: [ "yanue.v2rayu.http", "yanue.v2rayu.v2ray-core", ] zap trash: [ "~/.V2rayU/", "~/Library/Caches/net.yanue.V2rayU", "~/Library/Containers/net.yanue.V2rayU.Launcher", "~/Library/HTTPStorages/net.yanue.V2rayU", "~/Library/LaunchAgents/yanue.v2rayu.v2ray-core.plist", "~/Library/Logs/V2rayU.log", "~/Library/Preferences/net.yanue.V2rayU.plist", ] end