28 lines
901 B
Ruby
28 lines
901 B
Ruby
cask "local" do
|
|
version "5.9.7,5156"
|
|
sha256 "404b510967d42fed72c655b25c69ef3cb3598363c48adcfd227b99c17ef8758f"
|
|
|
|
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
|