Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mamp@6 6.9 (new cask) #180620

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions Casks/m/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
cask "mamp@6" do

Check failure on line 1 in Casks/m/[email protected]

View workflow job for this annotation

GitHub Actions / test mamp@6 (macos-13, intel)

Version '6.9' differs from '7.0' retrieved by livecheck.

Check failure on line 1 in Casks/m/[email protected]

View workflow job for this annotation

GitHub Actions / test mamp@6 (macos-14, arm)

Version '6.9' differs from '' retrieved by livecheck.
arch arm: "M1-arm", intel: "Intel-x86"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
arch arm: "M1-arm", intel: "Intel-x86"
arch arm: "Apple-chip", intel: "Intel-x86"


version "6.9"
sha256 arm: "e66a67fad914a065c882ffa137c9c9dc5ae8c24de53320d560b6b5cc0f4a890a",
intel: "7a3ff488c9c8d3f8f6730edfb06822e2640303cfcd03d75d14bb977d85518570"

url "https://downloads.mamp.info/MAMP-PRO/releases/#{version}/MAMP_MAMP_PRO_#{version}-#{arch}.pkg"
name "MAMP"
desc "Web development solution with Apache, Nginx, PHP & MySQL"
homepage "https://www.mamp.info/"

livecheck do
url "https://www.mamp.info/en/downloads/"
regex(%r{href=.*?/MAMP[._-]MAMP[._-]PRO[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.pkg}i)
Copy link
Member

@bevanjkay bevanjkay Jul 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
regex(%r{href=.*?/MAMP[._-]MAMP[._-]PRO[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.pkg}i)
regex(%r{href=.*?/MAMP[._-]MAMP[._-]PRO[._-]v?(#{version.major}(?:\.\d+)+)[._-]#{arch}\.pkg}i)

end

auto_updates true
depends_on macos: ">= :sierra"

pkg "MAMP_MAMP_PRO_#{version}-#{arch}.pkg"

postflight do
set_ownership ["/Applications/MAMP", "/Applications/MAMP PRO"]
end

uninstall pkgutil: "de.appsolute.installer.(mamp|mampacticon|mampendinstall|mamppro).pkg",
delete: "/Applications/MAMP"

zap delete: [
"/Library/Application Support/appsolute",
"/Library/LaunchDaemons/de.appsolute.mampprohelper.plist",
"/Library/PrivilegedHelperTools/de.appsolute.mampprohelper",
],
trash: [
"~/Library/Application Support/appsolute",
"~/Library/Application Support/de.appsolute.MAMP",
"~/Library/Application Support/de.appsolute.mamppro",
"~/Library/Caches/de.appsolute.MAMP",
"~/Library/Caches/de.appsolute.mamppro",
"~/Library/HTTPStorages/de.appsolute.MAMP",
"~/Library/HTTPStorages/de.appsolute.mamppro",
"~/Library/Preferences/de.appsolute.MAMP.plist",
"~/Library/Preferences/de.appsolute.mamppro.plist",
"~/Library/Saved Application State/de.appsolute.MAMP.savedState",
"~/Library/Saved Application State/de.appsolute.mamppro.savedState",
]
end
Loading