excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / apifox.rb
blobffd57c757f0742594572145bf95849f92af56939
1 cask "apifox" do
2   arch arm: "-macOS-arm64"
3   livecheck_arch = on_arch_conditional arm: "-arm64"
5   version "2.6.33"
6   sha256 arm:   "3e03962436bd1cdfc207f78bbe3d0642fa7ba8d2485ab2792e407e4a5bf37100",
7          intel: "c1e9126fdbb62ebdbd852692fbf717424f0a35e3f8dfc05c9eed776095dddc67"
9   url "https://file-assets.apifox.com/download/#{version}/Apifox#{arch}-#{version}.dmg"
10   name "Apifox"
11   desc "Platform for API documentation, debugging, and testing"
12   homepage "https://www.apifox.com/"
14   livecheck do
15     url "https://api.apifox.com/api/v1/configs/client-updates/#{version}/mac#{livecheck_arch}/latest-mac.yml?noCache=#{Time.new.to_i * 2}"
16     strategy :electron_builder
17   end
19   auto_updates true
20   depends_on macos: ">= :el_capitan"
22   app "Apifox.app"
24   zap trash: [
25     "~/Library/Application Support/apifox",
26     "~/Library/Preferences/cn.apifox.app.plist",
27     "~/Library/Saved Application State/cn.apifox.app.savedState",
28   ]
29 end