25 lines
990 B
Ruby
25 lines
990 B
Ruby
cask 'clion' do
|
|
version '2018.2.6,182.5107.21'
|
|
sha256 'd502154209ef808a700c8d0745e440f3b821d405781d447baacd9a42825c05f5'
|
|
|
|
url "https://download.jetbrains.com/cpp/CLion-#{version.before_comma}.dmg"
|
|
appcast 'https://data.services.jetbrains.com/products/releases?code=CL&latest=true&type=release'
|
|
name 'CLion'
|
|
homepage 'https://www.jetbrains.com/clion/'
|
|
|
|
auto_updates true
|
|
|
|
app 'CLion.app'
|
|
|
|
uninstall_postflight do
|
|
ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'clion') }.each { |path| File.delete(path) if File.exist?(path) && File.readlines(path).grep(%r{# see com.intellij.idea.SocketLock for the server side of this interface}).any? }
|
|
end
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/CLion#{version.major_minor}",
|
|
"~/Library/Caches/CLion#{version.major_minor}",
|
|
"~/Library/Logs/CLion#{version.major_minor}",
|
|
"~/Library/Preferences/CLion#{version.major_minor}",
|
|
]
|
|
end
|