homebrew-cask/Casks/clion.rb

26 lines
974 B
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'clion' do
version '2017.1.3,171.4694.31'
sha256 '6bd9ab6328b31b4ddb6691b143159219e45deae656a09f522a2b760045e66667'
2015-04-15 04:56:35 +08:00
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: '8140311ffeba57223d9b54d437111cef84945011dc5606e3d099bce2bfc5bace'
2015-04-15 04:56:35 +08:00
name 'CLion'
homepage 'https://www.jetbrains.com/clion/'
2015-04-15 04:56:35 +08:00
auto_updates true
2015-04-15 04:56:35 +08:00
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) }
end
zap delete: [
2016-03-29 22:55:44 +08:00
"~/Library/Preferences/CLion#{version.major_minor}",
"~/Library/Application Support/CLion#{version.major_minor}",
"~/Library/Caches/CLion#{version.major_minor}",
"~/Library/Logs/CLion#{version.major_minor}",
]
2015-04-15 04:56:35 +08:00
end