Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions Casks/rustrover-eap.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
cask "rustrover-eap" do
arch arm: "-aarch64"

version "2026.1,261.21525.29"
sha256 intel: "b06ffb36014d6f7dafc80fee8cb7ee9568f7071945b9ba0b7895eaa1399d4671",
arm: "0f8177f584f535d1542a0caa3704f3f20641ca0bce629390e613ccd28804da22"

url "https://download.jetbrains.com/rustrover/RustRover-#{version.csv.second}#{arch}.dmg"
name "RustRover EAP"
desc "Rust IDE (EAP)"
homepage "https://www.jetbrains.com/rust/nextversion/"

livecheck do
url "https://data.services.jetbrains.com/products/releases?code=RR&latest=true&type=eap"
strategy :json do |json|
json["RR"]&.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 "RustRover*.app", "RustRover EAP.app"

app "RustRover EAP.app"
binary "#{appdir}/RustRover EAP.app/Contents/MacOS/rustrover", target: "rustrover-eap"

uninstall_postflight do
ENV["PATH"].split(File::PATH_SEPARATOR).map { |path| File.join(path, "rustrover") }.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/RustRover#{version.csv.first}",
"~/Library/Caches/JetBrains/RustRover#{version.csv.first}",
"~/Library/Logs/JetBrains/RustRover#{version.csv.first}",
"~/Library/Preferences/com.jetbrains.RustRover-EAP.plist",
"~/Library/Saved Application State/com.jetbrains.RustRover-EAP.savedState",
]
end
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ casks.
- `pycharm-eap`
- `rider-eap`
- `rubymine-eap`
- `rustrover-eap`
- `webstorm-eap`

FYI, Android Studio has beta and canary channel instead of EAP, and casks for
Expand Down