homebrew-cask/Casks/xampp.rb

30 lines
1.0 KiB
Ruby

cask "xampp" do
version "8.1.2-0"
sha256 "a253209827311dfcbc0afdd9e591851eeee609ff9bec084180a098e70c926792"
url "https://downloadsapachefriends.global.ssl.fastly.net/xampp-files/#{version.split("-").first}/xampp-osx-#{version}-installer.dmg",
verified: "downloadsapachefriends.global.ssl.fastly.net/xampp-files/"
name "XAMPP"
desc "Apache distribution containing MySQL, PHP, and Perl"
homepage "https://www.apachefriends.org/index.html"
livecheck do
url "https://www.apachefriends.org/download.html"
regex(%r{href=.*?/xampp[._-]osx[._-]v?(\d+(?:\.\d+)+-\d+)[._-]installer\.dmg}i)
end
installer script: {
executable: "XAMPP.app/Contents/MacOS/osx-x86_64",
args: ["--mode", "unattended"],
sudo: true,
}
uninstall quit: "com.bitnami.manager",
script: {
executable: "/Applications/XAMPP/uninstall.app/Contents/MacOS/osx-x86_64",
args: ["--mode", "unattended"],
sudo: true,
},
delete: "/Applications/XAMPP/"
end