Files
homebrew-cask/Casks/a/apidog.rb
2023-12-01 11:11:24 -05:00

30 lines
876 B
Ruby

cask "apidog" do
arch arm: "-macOS-arm64"
livecheck_folder = on_arch_conditional arm: "-arm64"
version "2.4.2"
sha256 arm: "3751c8c91d05619b56c4c65b4a1fd8d65e3fceccef6987ef0d32705219ef8594",
intel: "022adde38ad52e0de5bbe32d4202d911bf22268df2e8e6694e05f7aad20e9575"
url "https://assets.apidog.com/download/#{version}/Apidog#{arch}-#{version}.dmg"
name "Apidog"
desc "API development platform"
homepage "https://apidog.com/"
livecheck do
url "https://api.apidog.com/api/v1/configs/client-updates/latest/mac#{livecheck_folder}/latest-mac.yml"
strategy :electron_builder
end
auto_updates true
depends_on macos: ">= :el_capitan"
app "Apidog.app"
zap trash: [
"~/Library/Application Support/apidog",
"~/Library/Preferences/com.apidog.app.plist",
"~/Library/Saved Application State/com.apidog.app.savedState",
]
end