27 lines
855 B
Ruby
27 lines
855 B
Ruby
cask "local" do
|
|
version "6.1.2,5473"
|
|
sha256 "c862a65a3f33cdc46c0a13ae598a93ebc6b557867bf64e6d67d25da177cbf1fb"
|
|
|
|
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 by Flywheel"
|
|
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",
|
|
"~/Library/Logs/local-lightning.log",
|
|
"~/Library/Preferences/com.getflywheel.lightning.local.plist",
|
|
"~/Library/Saved Application State/com.getflywheel.lightning.local.savedState",
|
|
]
|
|
end
|