2 arch arm: "-macOS-arm64"
3 livecheck_arch = on_arch_conditional arm: "-arm64"
6 sha256 arm: "4af27b54904ea6cc36374404d78753225d20c1cafc6c0166ec26eb158f87c206",
7 intel: "fc6f2ff674f66b70d1c644bac9f294f420cffbea594ac501a126d1b1ba8c2369"
9 url "https://file-assets.apifox.com/download/#{version}/Apifox#{arch}-#{version}.dmg"
11 desc "Platform for API documentation, debugging, and testing"
12 homepage "https://www.apifox.com/"
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
20 depends_on macos: ">= :el_capitan"
25 "~/Library/Application Support/apifox",
26 "~/Library/Preferences/cn.apifox.app.plist",
27 "~/Library/Saved Application State/cn.apifox.app.savedState",