From 32ffbcf00d2541987bcee24150027d8eb51a00ac Mon Sep 17 00:00:00 2001 From: Miccal Matthews Date: Sat, 7 Oct 2023 06:02:24 +0800 Subject: [PATCH] Update zenmap.rb --- Casks/z/zenmap.rb | 38 ++------------------------------------ 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/Casks/z/zenmap.rb b/Casks/z/zenmap.rb index 4fa5f023f3..0a8ea800fa 100644 --- a/Casks/z/zenmap.rb +++ b/Casks/z/zenmap.rb @@ -12,43 +12,9 @@ cask "zenmap" do regex(/href=.*?nmap[._-]v?(\d+(?:\.\d+)+)\.dmg/i) end - depends_on formula: "nmap" + pkg "nmap-#{version}.mpkg" - pkg "nmap-#{version}.mpkg", - choices: [ - { - "choiceIdentifier" => "org.insecure.nmap", - "choiceAttribute" => "selected", - "attributeSetting" => 0, - }, - { - "choiceIdentifier" => "org.insecure.nmap.ncat", - "choiceAttribute" => "selected", - "attributeSetting" => 0, - }, - { - "choiceIdentifier" => "org.insecure.nmap.ndiff", - "choiceAttribute" => "selected", - "attributeSetting" => 0, - }, - { - "choiceIdentifier" => "org.insecure.nmap.nping", - "choiceAttribute" => "selected", - "attributeSetting" => 0, - }, - { - "choiceIdentifier" => "org.insecure.nmap.nmap-update", - "choiceAttribute" => "selected", - "attributeSetting" => 0, - }, - { - "choiceIdentifier" => "org.insecure.nmap.zenmap", - "choiceAttribute" => "selected", - "attributeSetting" => 1, - }, - ] - - uninstall pkgutil: "org.insecure.nmap.zenmap", + uninstall pkgutil: "org.insecure.nmap*", delete: "/Applications/Zenmap.app" zap trash: [