cask "local" do arch arm: "-arm64" version "9.1.0,6719" sha256 arm: "de842a1301210141e82e6ba660a71a93769668c06170e7fc27f0acb7db94912d", intel: "4d82f3fb67c67cad92058b4d57beb955b29f0967724e28848788333ca995bde7" url "https://cdn.localwp.com/releases-stable/#{version.csv.first}+#{version.csv.second}/local-#{version.csv.first}-mac#{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#{arch}" regex(%r{/(\d+(?:\.\d+)+)\+(\d+)/}i) strategy :header_match do |headers, regex| match = headers["location"]&.match(regex) 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