Skip to content

Commit

Permalink
Update eclecticlight casks livecheck and zap
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMDev committed Apr 27, 2024
1 parent addb207 commit f96bf77
Show file tree
Hide file tree
Showing 14 changed files with 84 additions and 74 deletions.
15 changes: 8 additions & 7 deletions Casks/c/cirrus.rb
Expand Up @@ -9,22 +9,23 @@
homepage "https://eclecticlight.co/cirrus-bailiff/"

livecheck do
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
regex(%r{/(\d+)/(\d+)/cirrus(\d+)\.zip}i)
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/cirrus(\d+)\.zip}i)
strategy :page_match do |page, regex|
match = page.match(regex)
next if match.blank?

"#{match[3].split("", 2).join(".")},#{match[1]}.#{match[2]}"
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
end
end
end

depends_on macos: ">= :sierra"
depends_on macos: ">= :high_sierra"

app "cirrus#{version.csv.first.major}#{version.csv.first.minor}/Cirrus.app"

zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/co.eclecticlight.cirrusmac.sfl*",
"~/Library/Caches/co.eclecticlight.CirrusMac",
"~/Library/HTTPStorages/co.eclecticlight.CirrusMac",
"~/Library/Preferences/co.eclecticlight.CirrusMac.plist",
"~/Library/Saved Application State/co.eclecticlight.CirrusMac.savedState",
]
Expand Down
13 changes: 7 additions & 6 deletions Casks/d/dintch.rb
Expand Up @@ -9,12 +9,12 @@
homepage "https://eclecticlight.co/dintch"

livecheck do
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
strategy :page_match do |page|
match = page.match(%r{(\d+)/(\d+)/dintch(\d+)\.zip}i)
next if match.blank?

"#{match[3].split("", 2).join(".")},#{match[1]}.#{match[2]}"
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/dintch(\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
end
end
end

Expand All @@ -23,6 +23,7 @@
app "dintch#{version.csv.first.no_dots}/Dintch.app"

zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/co.eclecticlight.dintch.sfl*",
"~/Library/Caches/co.eclecticlight.Dintch",
"~/Library/HTTPStorages/co.eclecticlight.Dintch",
"~/Library/Preferences/co.eclecticlight.Dintch.plist",
Expand Down
9 changes: 5 additions & 4 deletions Casks/l/lockrattler.rb
Expand Up @@ -6,24 +6,25 @@
verified: "eclecticlightdotcom.files.wordpress.com/"
name "Lock Rattler"
desc "Checks security systems and reports issues"
homepage "https://eclecticlight.co/"
homepage "https://eclecticlight.co/lockrattler-systhist/"

livecheck do
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
regex(%r{/(\d+)/(\d+)/lockrattler(\d+)\.zip}i)
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/lockrattler(\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
end
end
end

depends_on macos: ">= :el_capitan"
depends_on macos: ">= :high_sierra"

app "lockrattler#{version.csv.first.major}#{version.csv.first.minor}/LockRattler.app"

zap trash: [
"~/Library/Caches/co.eclecticlight.LockRattler",
"~/Library/HTTPStorages/co.eclecticlight.LockRattler",
"~/Library/Preferences/co.eclecticlight.LockRattler.plist",
"~/Library/Saved Application State/co.eclecticlight.LockRattler.savedState",
]
Expand Down
21 changes: 11 additions & 10 deletions Casks/m/metamer.rb
Expand Up @@ -9,23 +9,24 @@
homepage "https://eclecticlight.co/xattred-sandstrip-xattr-tools/"

livecheck do
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
strategy :page_match do |page|
match = page.match(%r{(\d+)/(\d+)/metamer(\d+)\.zip}i)
next if match.blank?

"#{match[3].split("", 2).join(".")},#{match[1]}.#{match[2]}"
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/metamer(\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
end
end
end

depends_on macos: ">= :mojave"
depends_on macos: ">= :high_sierra"

app "metamer#{version.csv.first.no_dots}/Metamer.app"

zap trash: [
"~/Library/Caches/co.eclecticlight.Metamer/",
"~/Library/HTTPStorages/co.eclecticlight.Metamer/",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/co.eclecticlight.metamer.sfl*",
"~/Library/Caches/co.eclecticlight.Metamer",
"~/Library/HTTPStorages/co.eclecticlight.Metamer",
"~/Library/Preferences/co.eclecticlight.Metamer.plist",
"~/Library/Saved Application State/co.eclecticlight.Metamer.savedState/",
"~/Library/Saved Application State/co.eclecticlight.Metamer.savedState",
]
end
7 changes: 4 additions & 3 deletions Casks/m/mints.rb
Expand Up @@ -9,20 +9,21 @@
homepage "https://eclecticlight.co/mints-a-multifunction-utility/"

livecheck do
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
regex(%r{/(\d+)/(\d+)/mints(\d+)\.zip}i)
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/mints(\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
end
end
end

depends_on macos: ">= :sierra"
depends_on macos: ">= :high_sierra"

app "mints#{version.csv.first.no_dots}/Mints.app"

zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/co.eclecticlight.mints.sfl*",
"~/Library/Caches/co.eclecticlight.Mints",
"~/Library/HTTPStorages/co.eclecticlight.Mints",
"~/Library/Preferences/co.eclecticlight.Mints.plist",
Expand Down
7 changes: 5 additions & 2 deletions Casks/s/signet.rb
Expand Up @@ -9,19 +9,22 @@
homepage "https://eclecticlight.co/taccy-signet-precize-alifix-utiutility-alisma/"

livecheck do
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
regex(%r{/(\d+)/(\d+)/signet(\d+)\.zip}i)
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/signet(\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
end
end
end

depends_on macos: ">= :high_sierra"

app "#{token}#{version.csv.first.no_dots}/Signet.app"

zap trash: [
"~/Library/Caches/co.eclecticlight.Signet",
"~/Library/HTTPStorages/co.eclecticlight.Signet",
"~/Library/Preferences/co.eclecticlight.Signet.plist",
"~/Library/Saved Application State/co.eclecticlight.Signet.savedState",
]
Expand Down
38 changes: 15 additions & 23 deletions Casks/s/silentknight.rb
@@ -1,39 +1,31 @@
cask "silentknight" do
on_mojave :or_older do
version "1.21,2022.06"
sha256 "c1cbb734f620e073f1c08c473edaa036c2b5ccdca02baa99ca117f86c10ad505"

livecheck do
skip "Legacy version"
end
end
on_catalina :or_newer do
version "2.07,2023.11"
sha256 "90bc1b10f02f09c2a684a0f04242f2e93b1aadd912e5341bc5a7415cfe8f0c62"

livecheck do
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
regex(%r{(\d+)/(\d+)/silentknight([^1]\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
end
end
end
end
version "2.07,2023.11"
sha256 "90bc1b10f02f09c2a684a0f04242f2e93b1aadd912e5341bc5a7415cfe8f0c62"

url "https://eclecticlightdotcom.files.wordpress.com/#{version.csv.second.major}/#{version.csv.second.minor}/silentknight#{version.csv.first.no_dots}.zip",
verified: "eclecticlightdotcom.files.wordpress.com/"
name "SilentKnight"
desc "Automatically checks computer's security"
homepage "https://eclecticlight.co/lockrattler-systhist/"

depends_on macos: ">= :el_capitan"
livecheck do
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/silentknight([^1]\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
end
end
end

depends_on macos: ">= :catalina"

app "silentknight#{version.csv.first.no_dots}/SilentKnight.app"

zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/co.eclecticlight.silentknight.sfl*",
"~/Library/Caches/co.eclecticlight.SilentKnight",
"~/Library/HTTPStorages/co.eclecticlight.SilentKnight",
"~/Library/Preferences/co.eclecticlight.SilentKnight.plist",
"~/Library/Saved Application State/co.eclecticlight.SilentKnight.savedState",
]
Expand Down
2 changes: 1 addition & 1 deletion Casks/s/silnite.rb
Expand Up @@ -18,7 +18,7 @@
end
end

depends_on macos: ">= :el_capitan"
depends_on macos: ">= :big_sur"

pkg "silnite#{version.csv.first}/silniteInstaller.pkg"

Expand Down
6 changes: 4 additions & 2 deletions Casks/s/spundle.rb
Expand Up @@ -9,8 +9,8 @@
homepage "https://eclecticlight.co/dintch/"

livecheck do
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
regex(%r{(\d+)/(\d+)/Spundle(\d+)\.zip}i)
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/Spundle(\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
Expand All @@ -23,7 +23,9 @@
app "spundle#{version.csv.first.no_dots}/Spundle.app"

zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/co.eclecticlight.spundle.sfl*",
"~/Library/Caches/co.eclecticlight.Spundle",
"~/Library/HTTPStorages/co.eclecticlight.Spundle",
"~/Library/Preferences/co.eclecticlight.Spundle.plist",
"~/Library/Saved Application State/co.eclecticlight.Spundle.savedState",
]
Expand Down
4 changes: 2 additions & 2 deletions Casks/t/taccy.rb
Expand Up @@ -9,8 +9,8 @@
homepage "https://eclecticlight.co/taccy-signet-precize-alifix-utiutility-alisma/"

livecheck do
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
regex(%r{/(\d+)/(\d+)/taccy(\d+)\.zip}i)
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/taccy(\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
Expand Down
14 changes: 7 additions & 7 deletions Casks/t/thetimemachinemechanic.rb
Expand Up @@ -5,27 +5,27 @@
url "https://eclecticlightdotcom.files.wordpress.com/#{version.csv.second.major}/#{version.csv.second.minor}/t2m2#{version.csv.first.no_dots}.zip",
verified: "eclecticlightdotcom.files.wordpress.com/"
name "The Time Machine Mechanic"
name "T2M2"
desc "Time Machine log viewer & status inspector"
homepage "https://eclecticlight.co/consolation-t2m2-and-log-utilities/"

livecheck do
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
regex(%r{/(\d+)/(\d+)/t2m2(\d+)\.zip}i)
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/t2m2(\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
end
end
end

depends_on macos: ">= :sierra"
depends_on macos: ">= :big_sur"

app "t2m2#{version.csv.first.major}#{version.csv.first.minor}/TheTimeMachineMechanic.app"

zap trash: [
"~/Library/Caches/co.eclecticlight.TheTimeMachineMechanic",
"~/Library/Preferences/co.eclecticlight.TheTimeMachineMechanic.plist",
"~/Library/Saved Application State/co.eclecticlight.TheTimeMachineMechanic.savedState",
"~/Library/Caches/co.eclecticlight.TheTimeMachineMechanic2",
"~/Library/HTTPStorages/co.eclecticlight.TheTimeMachineMechanic2",
"~/Library/Preferences/co.eclecticlight.TheTimeMachineMechanic2.plist",
"~/Library/Saved Application State/co.eclecticlight.TheTimeMachineMechanic2.savedState",
]
end
7 changes: 4 additions & 3 deletions Casks/u/ulbow.rb
Expand Up @@ -9,20 +9,21 @@
homepage "https://eclecticlight.co/consolation-t2m2-and-log-utilities/"

livecheck do
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
regex(%r{/(\d+)/(\d+)/ulbow(\d+)\.zip}i)
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/ulbow(\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
end
end
end

depends_on macos: ">= :sierra"
depends_on macos: ">= :high_sierra"

app "ulbow#{version.csv.first.no_dots}/Ulbow.app"

zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/co.eclecticlight.ulbow.sfl*",
"~/Library/Caches/co.eclecticlight.Ulbow",
"~/Library/HTTPStorages/co.eclecticlight.Ulbow",
"~/Library/Preferences/co.eclecticlight.Ulbow.plist",
Expand Down
6 changes: 4 additions & 2 deletions Casks/x/xattred.rb
Expand Up @@ -9,8 +9,8 @@
homepage "https://eclecticlight.co/xattred-sandstrip-xattr-tools/"

livecheck do
url "https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist"
regex(%r{/(\d+)/(\d+)/xattred(\d+)\.zip}i)
url :homepage
regex(%r{href=.*?/(\d+)/(\d+)/xattred(\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
Expand All @@ -23,7 +23,9 @@
app "xattred#{version.csv.first.major}#{version.csv.first.minor}/xattred.app"

zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/co.eclecticlight.xattred.sfl*",
"~/Library/Caches/co.eclecticlight.xattred",
"~/Library/HTTPStorages/co.eclecticlight.xattred",
"~/Library/Preferences/co.eclecticlight.xattred.plist",
"~/Library/Saved Application State/co.eclecticlight.xattred.savedState",
]
Expand Down
9 changes: 7 additions & 2 deletions Casks/x/xprocheck.rb
Expand Up @@ -10,7 +10,7 @@

livecheck do
url :homepage
regex(%r{/(\d+)/(\d+)/xprocheck(\d+)\.zip}i)
regex(%r{href=.*?/(\d+)/(\d+)/xprocheck(\d+)\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[2].split("", 2).join(".")},#{match[0]}.#{match[1]}"
Expand All @@ -22,5 +22,10 @@

app "xprocheck#{version.csv.first.no_dots}/XProCheck.app"

zap trash: "~/Library/Saved Application State/co.eclecticlight.XProCheck.savedState"
zap trash: [
"~/Library/Caches/co.eclecticlight.XProCheck",
"~/Library/HTTPStorages/co.eclecticlight.XProCheck",
"~/Library/Preferences/co.eclecticlight.XProCheck.plist",
"~/Library/Saved Application State/co.eclecticlight.XProCheck.savedState",
]
end

0 comments on commit f96bf77

Please sign in to comment.