26 lines
1.1 KiB
Ruby
26 lines
1.1 KiB
Ruby
cask 'clion' do
|
|
version '2017.3.4,173.4674.29'
|
|
sha256 '12e27f3eaa6467d0a3aba9b1ac12e891bc5ec3d534c3fd8d75ecb2d28b8092f7'
|
|
|
|
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',
|
|
checkpoint: '26ea2e89194ca22b9b3bd2e72059fd7faf9032a6529c7aed1b6f5a0930ea0978'
|
|
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
|