-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
36 lines (30 loc) · 1.52 KB
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
35
36
cask "transmission@nightly" do
version "9732,dc6c761c29"
sha256 "aca8e2a457b1cce13834e2e9311dce94423a9be14a93e5edd9dcc136e0d27bbf"
url "https://build.transmissionbt.com/job/trunk-mac/#{version.csv.first}/artifact/release/Transmission-#{version.csv.second}.dmg"
name "Transmission"
desc "Open-source BitTorrent client"
homepage "https://transmissionbt.com/"
livecheck do
url "https://build.transmissionbt.com/job/trunk-mac/lastSuccessfulBuild/artifact/release/"
regex(/>\s*\#(\d+)\s*<.+?href=.*?Transmission[._-](\h+)\.dmg/im)
strategy :page_match do |page, regex|
page.scan(regex).map { |match| "#{match[0]},#{match[1]}" }
end
end
deprecate! date: "2025-05-01", because: :unsigned
conflicts_with cask: "transmission"
depends_on macos: ">= :big_sur"
app "Transmission.app"
zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.m0k.transmission.sfl*",
"~/Library/Application Support/Transmission",
"~/Library/Caches/com.apple.helpd/SDMHelpData/Other/English/HelpSDMIndexFile/org.m0k.transmission.help",
"~/Library/Caches/com.apple.helpd/SDMHelpData/Other/English/HelpSDMIndexFile/Transmission Help*",
"~/Library/Caches/org.m0k.transmission",
"~/Library/Cookies/org.m0k.transmission.binarycookies",
"~/Library/Preferences/org.m0k.transmission.LSSharedFileList.plist",
"~/Library/Preferences/org.m0k.transmission.plist",
"~/Library/Saved Application State/org.m0k.transmission.savedState",
]
end