-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrider-eap.rb
More file actions
50 lines (41 loc) · 1.69 KB
/
Copy pathrider-eap.rb
File metadata and controls
50 lines (41 loc) · 1.69 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
40
41
42
43
44
45
46
47
48
49
50
cask "rider-eap" do
arch arm: "-aarch64"
version "2026.1-EAP1,261.17801.69"
sha256 intel: "46723c1e018b6156ca9c5095b6bf12edbefeb1fab9d0c710bd392a2a10686aa9",
arm: "0f5597900937909608e8aea060ab4253fc2cc0dd0faee37112db7d3e60efd189"
url "https://download-cdn.jetbrains.com/rider/JetBrains.Rider-#{version.csv.first}-#{version.csv.second}.Checked#{arch}.dmg"
name "JetBrains Rider EAP"
desc ".NET IDE (EAP)"
homepage "https://www.jetbrains.com/rider/nextversion/"
livecheck do
url "https://data.services.jetbrains.com/products/releases?code=RD&latest=true&type=eap"
strategy :json do |json|
json["RD"]&.map do |release|
version = release["version"]
build = release["build"]
next if version.blank? || build.blank?
"#{version},#{build}"
end
end
end
auto_updates true
# The application path is often inconsistent between versions
rename "Rider*.app", "Rider EAP.app"
app "Rider EAP.app"
binary "#{appdir}/Rider EAP.app/Contents/MacOS/rider", target: "rider-eap"
uninstall_postflight do
ENV["PATH"].split(File::PATH_SEPARATOR).map { |path| File.join(path, "rider") }.each do |path|
if File.readable?(path) &&
File.readlines(path).grep(/# see com.intellij.idea.SocketLock for the server side of this interface/).any?
File.delete(path)
end
end
end
zap trash: [
"~/Library/Application Support/JetBrains/Rider#{version.csv.first}",
"~/Library/Caches/JetBrains/Rider#{version.csv.first}",
"~/Library/Logs/JetBrains/Rider#{version.csv.first}",
"~/Library/Preferences/com.jetbrains.rider-EAP.plist",
"~/Library/Saved Application State/com.jetbrains.rider-EAP.savedState",
]
end