-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
/
Copy patharctic.rb
34 lines (28 loc) · 1.23 KB
/
arctic.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
32
33
34
cask "arctic" do
version "24.3.1,45,20241218003246"
sha256 "a540d14e0b23395432459b894dcd45582dc2bec88f3b9576798ec3ec5928ca47"
url "https://updates.hedge.video/arctic/macos/updates/production/Arctic_#{version.csv.third}_v#{version.csv.first}b#{version.csv.second}/Arctic-#{version.csv.second}.zip"
name "Arctic"
desc "Display and manage Final Cut Pro X libraries"
homepage "https://hedge.video/arctic"
livecheck do
url "https://updates.hedge.video/arctic/macos/appcast/arctic-prod.xml"
regex(/Arctic[._-](\d+)[._-]/i)
strategy :sparkle do |item, regex|
date = item.url[regex, 1]
next if date.blank?
"#{item.short_version},#{item.version},#{date}"
end
end
depends_on macos: ">= :big_sur"
app "Arctic.app"
zap trash: [
"~/Library/Application Support/Arctic",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/video.hedge.arctic.mac.sfl*",
"~/Library/HTTPStorages/video.hedge.Arctic.Mac",
"~/Library/HTTPStorages/video.hedge.Arctic.Mac.binarycookies",
"~/Library/Logs/Arctic",
"~/Library/Preferences/video.hedge.Arctic.Mac.plist",
"~/Library/Saved Application State/video.hedge.Arctic.Mac.savedState",
]
end