34 lines
1.0 KiB
Ruby
34 lines
1.0 KiB
Ruby
cask "local" do
|
|
arch arm: "mac-arm64", intel: "mac"
|
|
|
|
version "6.7.0,6347"
|
|
sha256 arm: "ad0001d63a632fa9d0f7675851a7e1015993bdd2b471be916ef7589bb4f01685",
|
|
intel: "2c98818db4e5e8814867160b68b343533a877c5ff02afba5f94af0f7475df238"
|
|
|
|
url "https://cdn.localwp.com/releases-stable/#{version.csv.first}+#{version.csv.second}/local-#{version.csv.first}-#{arch}.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+)/})
|
|
next if match.blank?
|
|
|
|
"#{match[1]},#{match[2]}"
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
|
|
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
|