-
-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Expand file tree
/
Copy path5kplayer.rb
More file actions
32 lines (26 loc) · 883 Bytes
/
5kplayer.rb
File metadata and controls
32 lines (26 loc) · 883 Bytes
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
cask "5kplayer" do
version "6.11.0"
sha256 :no_check
url "https://www.5kplayer.com/download/5kplayer.dmg"
name "5KPlayer"
desc "Play 4K/1080p/360-degree video, MP3/AAC/APE/FLAC music without quality loss"
homepage "https://www.5kplayer.com/"
# The version sometimes isn't updated in the short version,
# but only in the title. We check for that instead.
livecheck do
url "https://www.5kplayer.com/upgrade/mac/updatecast.xml"
regex(/(?:Version\s+)?v?(\d+(?:\.\d+)+)/i)
strategy :sparkle do |item, regex|
item.title[regex, 1]
end
end
auto_updates true
depends_on :macos
app "5KPlayer.app"
uninstall quit: "com.digiarty.5kplayer"
zap trash: [
"~/Library/Caches/com.digiarty.5kplayer",
"~/Library/Preferences/com.digiarty.5kplayer.plist",
"~/Library/Saved Application State/com.digiarty.5kplayer.savedState",
]
end