/
ulbow.rb
31 lines (26 loc) 路 1.08 KB
/
ulbow.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cask "ulbow" do
version "1.10,2023.02"
sha256 "3fdafc940c348f611b784229727bc576b889fcad9a3969ecac3a30f2c33c5c0b"
url "https://eclecticlightdotcom.files.wordpress.com/#{version.csv.second.major}/#{version.csv.second.minor}/ulbow#{version.csv.first.no_dots}.zip",
verified: "eclecticlightdotcom.files.wordpress.com/"
name "Ulbow"
desc "Log browser"
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)
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"
app "ulbow#{version.csv.first.no_dots}/Ulbow.app"
zap trash: [
"~/Library/Caches/co.eclecticlight.Ulbow",
"~/Library/HTTPStorages/co.eclecticlight.Ulbow",
"~/Library/Preferences/co.eclecticlight.Ulbow.plist",
"~/Library/Saved Application State/co.eclecticlight.Ulbow.savedState",
]
end