homebrew-cask/Casks/w/wordpresscom-studio.rb

36 lines
1.2 KiB
Ruby

cask "wordpresscom-studio" do
arch arm: "arm64", intel: "x64"
version "1.0.3"
sha256 arm: "8cca0975c0e3a6ef3caf5089e33bd217942329accc9e0f553bc00c54e3aed718",
intel: "bcc10bed920dab637064c2b61821c666ddf067af78491ad0daac8feb31353263"
url "https://cdn.a8c-ci.services/studio/studio-darwin-#{arch}-v#{version}.app.zip",
verified: "cdn.a8c-ci.services/studio/"
name "Wordpress Studio"
desc "WordPress local development environment"
homepage "https://developer.wordpress.com/studio/"
livecheck do
url :homepage
regex(/studio[._-]darwin[._-]#{arch}[._-]v?(\d+(?:\.\d+)+)\.app\.zip/i)
end
auto_updates true
depends_on macos: ">= :catalina"
app "Studio.app"
uninstall quit: "com.electron.studio"
zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.electron.studio.sfl*",
"~/Library/Application Support/Studio",
"~/Library/Caches/com.electron.studio*",
"~/Library/HTTPStorages/com.electron.studio",
"~/Library/Logs/Studio",
"~/Library/Preferences/com.electron.studio.plist",
"~/Library/Saved Application State/com.electron.studio.savedState",
]
end