30 lines
1.0 KiB
Ruby
30 lines
1.0 KiB
Ruby
cask "xampp" do
|
|
version "8.0.13-0"
|
|
sha256 "585b4e804511053f0fafac2e37fdc4c0eb6400ddd56724acb5af2ca71b6eb603"
|
|
|
|
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
|