-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
flux.rb
31 lines (25 loc) 路 922 Bytes
/
flux.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 "flux" do
version "42.2"
sha256 "c937e24209f2ee99ad4586d7a19948bb1bdfca725b62e6bd061668be1f182765"
url "https://justgetflux.com/mac/Flux#{version}.zip"
name "f.lux"
desc "Screen colour temperature controller"
homepage "https://justgetflux.com/"
# The sparkle feed "https://justgetflux.com/mac/macflux.xml" is currently
# unstable and often outputs the older version 40.1 as the latest release.
# As a workaround, we extract the version from plist of unversioned download.
livecheck do
url "https://justgetflux.com/mac/Flux.zip"
strategy :extract_plist
end
auto_updates true
app "Flux.app"
uninstall quit: "org.herf.Flux"
zap trash: [
"~/Library/Application Support/Flux",
"~/Library/Caches/org.herf.Flux",
"~/Library/Containers/com.justgetflux.flux",
"~/Library/Cookies/org.herf.Flux.binarycookies",
"~/Library/Preferences/org.herf.Flux.plist",
]
end