homebrew-cask/Casks/local.rb

28 lines
901 B
Ruby

cask "local" do
version "5.9.8,5191"
sha256 "eae46d61925a2256e8fe1c52e3f8581d249d237a9267018e2987173ba86742be"
url "https://cdn.localwp.com/releases-stable/#{version.before_comma}+#{version.after_comma}/local-#{version.before_comma}-mac.dmg"
name "Local"
desc "WordPress local development tool"
homepage "https://localwp.com/"
livecheck do
url "https://cdn.localwp.com/stable/latest/mac"
strategy :header_match do |headers|
match = headers["location"].match(%r{/(\d+(?:\.\d+)*)\+(\d+)/})
"#{match[1]},#{match[2]}"
end
end
app "Local.app"
zap trash: [
"~/Library/Application Support/Local by Flywheel",
"~/Library/Logs/local-by-flywheel.log",
"~/Library/Preferences/com.getflywheel.local.plist",
"~/Library/Preferences/com.getflywheel.local.helper.plist",
"~/Library/Saved Application State/com.getflywheel.local.savedState",
]
end