-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
/
linear-linear.rb
39 lines (32 loc) · 1.28 KB
/
linear-linear.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
32
33
34
35
36
37
38
39
cask "linear-linear" do
arch arm: "arm64", intel: "x64"
version "1.25.2,240328pfuskt89s"
sha256 arm: "40deaa1bf36b17c2bc8fa74cb9d58291593ff66c32c8351639bee335b49bce19",
intel: "c63035d32183574c64115c599c13c966745fac57bc2c1e59cff6299047e81c09"
url "https://download.todesktop.com/200315glz2793v6/Linear%20#{version.csv.first}%20-%20Build%20#{version.csv.second}-#{arch}-mac.zip",
verified: "download.todesktop.com/200315glz2793v6/"
name "Linear"
desc "App to manage software development and track bugs"
homepage "https://linear.app/"
livecheck do
url "https://download.todesktop.com/200315glz2793v6/latest-mac.yml"
regex(/Linear\sv?(\d+(?:\.\d+)+)(?:\s-\sBuild\s([a-z\d]+?))?-#{arch}-mac\.zip/)
strategy :electron_builder do |yaml, regex|
yaml["files"]&.map do |item|
match = item["url"]&.match(regex)
next if match.blank?
match[2].present? ? "#{match[1]},#{match[2]}" : match[1]
end
end
end
auto_updates true
depends_on macos: ">= :high_sierra"
app "Linear.app"
zap trash: [
"~/Library/Application Support/Linear",
"~/Library/Caches/com.linear",
"~/Library/Caches/com.linear.ShipIt",
"~/Library/Preferences/com.linear.plist",
"~/Library/Saved Application State/com.linear.savedState",
]
end