25 lines
1.0 KiB
Ruby
25 lines
1.0 KiB
Ruby
cask 'pycharm' do
|
|
version '2018.1.4,181.5087.37'
|
|
sha256 'fafa27cee546962c1c2661ad0e271636ec5931d157f890ff69dfeae31b664834'
|
|
|
|
url "https://download.jetbrains.com/python/pycharm-professional-#{version.before_comma}.dmg"
|
|
appcast 'https://data.services.jetbrains.com/products/releases?code=PCP&latest=true&type=release'
|
|
name 'PyCharm'
|
|
homepage 'https://www.jetbrains.com/pycharm/'
|
|
|
|
auto_updates true
|
|
|
|
app 'PyCharm.app'
|
|
|
|
uninstall_postflight do
|
|
ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'charm') }.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/PyCharm#{version.major_minor}",
|
|
"~/Library/Caches/PyCharm#{version.major_minor}",
|
|
"~/Library/Logs/PyCharm#{version.major_minor}",
|
|
"~/Library/Preferences/PyCharm#{version.major_minor}",
|
|
]
|
|
end
|