forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aether.rb
28 lines (23 loc) · 1001 Bytes
/
aether.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
cask "aether" do
version "2.0.0-dev.15,2011262249.19338c93"
sha256 "87bb9f70525025dadb1d00328f37ee075fe3866044d092a9533e7df71653aca7"
url "https://static.getaether.net/Releases/Aether-#{version.csv.first}/#{version.csv.second}/mac/Aether-#{version.csv.first}%2B#{version.csv.second}.dmg"
name "Aether"
desc "Peer-to-peer ephemeral public communities"
homepage "https://getaether.net/"
livecheck do
url "https://static.getaether.net/WebsiteReleaseLinks/Latest/LatestReleaseLinks.json"
strategy :page_match do |page|
match = page.match(%r{/Aether-(\d+(?:\.\d+)*-dev\.\d+)%2B(\d+\.[0-9a-f]+)\.dmg}i)
next if match.blank?
"#{match[1]},#{match[2]}"
end
end
app "Aether.app"
zap trash: [
"/Library/Logs/DiagnosticReports/aether-backend-mac-*.diag",
"~/Library/Application Support/Aether",
"~/Library/Preferences/com.aethertechnologies.Aether.plist",
"~/Library/Saved Application State/com.aethertechnologies.Aether.savedState",
]
end