-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
clion.rb
37 lines (31 loc) 路 1.22 KB
/
clion.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
cask "clion" do
arch arm: "-aarch64"
version "2024.1.1,241.15989.121"
sha256 arm: "08dab457cf1cb07e4489653f22a12e2997dea2b788ab0a5494de40a86b39f104",
intel: "43a765102080acd6dc1fa5a26e0c5efcc3d2e7a22a0bf054a3b9ba4714a9c43e"
url "https://download.jetbrains.com/cpp/CLion-#{version.csv.first}#{arch}.dmg"
name "CLion"
desc "C and C++ IDE"
homepage "https://www.jetbrains.com/clion/"
livecheck do
url "https://data.services.jetbrains.com/products/releases?code=CL&latest=true&type=release"
strategy :json do |json|
json["CL"].map do |release|
"#{release["version"]},#{release["build"]}"
end
end
end
auto_updates true
depends_on macos: ">= :catalina"
app "CLion.app"
binary "#{appdir}/CLion.app/Contents/MacOS/clion"
zap trash: [
"~/Library/Application Support/JetBrains/CLion#{version.major_minor}",
"~/Library/Caches/JetBrains/CLion#{version.major_minor}",
"~/Library/Logs/JetBrains/CLion#{version.major_minor}",
"~/Library/Preferences/CLion#{version.major_minor}",
"~/Library/Preferences/com.jetbrains.CLion.plist",
"~/Library/Preferences/jetbrains.clion.*.plist",
"~/Library/Saved Application State/com.jetbrains.CLion.savedState",
]
end