2015-12-18 09:15:28 +08:00
|
|
|
cask 'clion' do
|
2017-06-10 04:07:27 +08:00
|
|
|
version '2017.1.3,171.4694.31'
|
|
|
|
sha256 '6bd9ab6328b31b4ddb6691b143159219e45deae656a09f522a2b760045e66667'
|
2015-04-15 04:56:35 +08:00
|
|
|
|
2017-03-28 20:20:18 +08:00
|
|
|
url "https://download.jetbrains.com/cpp/CLion-#{version.before_comma}.dmg"
|
2017-01-11 14:23:03 +08:00
|
|
|
appcast 'https://data.services.jetbrains.com/products/releases?code=CL&latest=true&type=release',
|
2017-06-10 04:07:27 +08:00
|
|
|
checkpoint: '8140311ffeba57223d9b54d437111cef84945011dc5606e3d099bce2bfc5bace'
|
2015-04-15 04:56:35 +08:00
|
|
|
name 'CLion'
|
2016-11-21 08:44:45 +08:00
|
|
|
homepage 'https://www.jetbrains.com/clion/'
|
2015-04-15 04:56:35 +08:00
|
|
|
|
2017-02-04 13:24:19 +08:00
|
|
|
auto_updates true
|
2016-05-29 12:36:56 +08:00
|
|
|
|
2015-04-15 04:56:35 +08:00
|
|
|
app 'CLion.app'
|
|
|
|
|
2017-04-05 07:10:29 +08:00
|
|
|
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
|
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
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}",
|
2016-01-18 09:27:20 +08:00
|
|
|
]
|
2015-04-15 04:56:35 +08:00
|
|
|
end
|