30 lines
1.0 KiB
Ruby
30 lines
1.0 KiB
Ruby
cask "xampp" do
|
|
version "8.1.1-2"
|
|
sha256 "64a696b4732de3c106c51553ff0b206a4e6d54b16dbc53324c3e45110702c70e"
|
|
|
|
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
|