2022-09-07 05:54:02 +08:00
|
|
|
cask "apipost" do
|
|
|
|
arch arm: "arm64", intel: "x64"
|
|
|
|
|
2023-09-01 20:41:00 +08:00
|
|
|
version "7.2.1"
|
|
|
|
sha256 arm: "e2563694bea3fbd6ea847ecdfa1e5de26931c0b9ed1409acf38282e55c760512",
|
|
|
|
intel: "5c77ba8c9673cc2b59f945a756b614e1171fca9eb4d2e739c486493c31424e5e"
|
2022-09-07 05:54:02 +08:00
|
|
|
|
|
|
|
url "https://www.apipost.cn/dl.php?client=Mac&arch=#{arch}&version=#{version}"
|
|
|
|
name "Apipost"
|
|
|
|
desc "Platform for API documentation, debugging, Mock and testing"
|
|
|
|
homepage "https://www.apipost.cn/"
|
|
|
|
|
|
|
|
livecheck do
|
|
|
|
url :homepage
|
|
|
|
regex(/href=.*client=Mac&arch=#{arch}&version=(\d+(?:\.\d+)+)[<" ]/i)
|
|
|
|
end
|
|
|
|
|
|
|
|
auto_updates true
|
|
|
|
depends_on macos: ">= :big_sur"
|
|
|
|
|
|
|
|
app "ApiPost#{version.major}.app"
|
|
|
|
|
|
|
|
zap trash: [
|
|
|
|
"~/Library/Application Support/ApiPost#{version.major}",
|
|
|
|
"~/Library/Logs/ApiPost#{version.major}",
|
|
|
|
"~/Library/Preferences/com.apipost.apipost.fe.desctop.cn.#{version.major}.x.plist",
|
|
|
|
"~/Library/Saved Application State/com.apipost.apipost.fe.desctop.cn.#{version.major}.x.savedState",
|
|
|
|
]
|
|
|
|
end
|