Merge pull request #200213 from Homebrew/bump-tidelift-1.14.0
[Homebrew/homebrew-cask.git] / Casks / a / apifox.rb
blob2bf773d783d939f8e365283ae0f71cf165a599f4
1 cask "apifox" do
2   arch arm: "-macOS-arm64"
3   livecheck_arch = on_arch_conditional arm: "-arm64"
5   version "2.6.46"
6   sha256 arm:   "4af27b54904ea6cc36374404d78753225d20c1cafc6c0166ec26eb158f87c206",
7          intel: "fc6f2ff674f66b70d1c644bac9f294f420cffbea594ac501a126d1b1ba8c2369"
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