mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
47 lines
1.5 KiB
Ruby
47 lines
1.5 KiB
Ruby
cask "dataspell" do
|
|
arch arm: "-aarch64"
|
|
|
|
version "2023.2.5,232.10227.10"
|
|
sha256 arm: "03072c497da55fb3d92dcab7a01bc32924dd89908cf8f2107748793e14f3ae40",
|
|
intel: "4f741a222010fb8aafbe07b396a2f1173da0926c110080eee62d8d28b14260fd"
|
|
|
|
url "https://download.jetbrains.com/python/dataspell-#{version.csv.first}#{arch}.dmg"
|
|
name "DataSpell"
|
|
desc "IDE for Professional Data Scientists"
|
|
homepage "https://www.jetbrains.com/dataspell/"
|
|
|
|
livecheck do
|
|
url "https://data.services.jetbrains.com/products/releases?code=DS&latest=true&type=release"
|
|
strategy :json do |json|
|
|
json["DS"].map do |release|
|
|
"#{release["version"]},#{release["build"]}"
|
|
end
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :high_sierra"
|
|
|
|
app "DataSpell.app"
|
|
|
|
uninstall_postflight do
|
|
ENV["PATH"].split(File::PATH_SEPARATOR).map { |path| File.join(path, "dataspell") }.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/DataSpell*",
|
|
"~/Library/Application Support/JetBrains/DataSpell*",
|
|
"~/Library/Caches/JetBrains/DataSpell*",
|
|
"~/Library/Logs/JetBrains/DataSpell*",
|
|
"~/Library/Preferences/com.jetbrains.dataspell.plist",
|
|
"~/Library/Preferences/DataSpell*",
|
|
"~/Library/Preferences/jetbrains.dataspell.*.plist",
|
|
"~/Library/Saved Application State/com.jetbrains.dataspell.savedState",
|
|
]
|
|
end
|