2 arch arm: "-macOS-arm64"
3 livecheck_arch = on_arch_conditional arm: "-arm64"
6 sha256 arm: "3e03962436bd1cdfc207f78bbe3d0642fa7ba8d2485ab2792e407e4a5bf37100",
7 intel: "c1e9126fdbb62ebdbd852692fbf717424f0a35e3f8dfc05c9eed776095dddc67"
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",