-
-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Expand file tree
/
Copy pathslite.rb
More file actions
39 lines (32 loc) · 1.26 KB
/
slite.rb
File metadata and controls
39 lines (32 loc) · 1.26 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
37
38
39
cask "slite" do
arch arm: "arm64", intel: "x64"
version "1.4.2,260505ptf5yrsn2"
sha256 arm: "0ce44847096edb70cadd39a77e19ee1bed10bbc00fa8845b33b5cbe8105e659a",
intel: "1f56774a125b6da4b388078109efd2e7258fd10fd26189ea84fadef5725754d3"
url "https://download.todesktop.com/20062929x31pwfi/Slite%20#{version.csv.first}%20-%20Build%20#{version.csv.second}-#{arch}-mac.zip",
verified: "download.todesktop.com/20062929x31pwfi/"
name "Slite"
desc "Team communication and collaboration software"
homepage "https://slite.com/"
livecheck do
url "https://download.todesktop.com/20062929x31pwfi/latest-mac.yml"
regex(/Build[ ._-]([^-]+)[._-]/i)
strategy :electron_builder do |yaml, regex|
yaml["files"]&.map do |item|
match = item["url"]&.match(regex)
next if match.blank?
"#{yaml["version"]},#{match[1]}"
end
end
end
depends_on macos: :monterey
app "Slite.app"
zap trash: [
"~/Library/Application Support/Slite",
"~/Library/Caches/com.slite.desktop",
"~/Library/Caches/com.slite.desktop.ShipIt",
"~/Library/Preferences/com.slite.desktop.helper.plist",
"~/Library/Preferences/com.slite.desktop.plist",
"~/Library/Saved Application State/com.slite.desktop.savedState",
]
end