26 lines
1.1 KiB
Ruby
26 lines
1.1 KiB
Ruby
cask 'appcode' do
|
|
version '2017.3.2,173.4591.3'
|
|
sha256 '92b5b27dcc0e675bc4ae8b8eb280be317c3225324231c19d9fcf16481b2928bc'
|
|
|
|
url "https://download.jetbrains.com/objc/AppCode-#{version.before_comma}.dmg"
|
|
appcast 'https://data.services.jetbrains.com/products/releases?code=AC&latest=true&type=release',
|
|
checkpoint: 'f345aa4a9c01f87be8124d9ae9984c4edfb8a63ec712d3e720dde3db4d0c7fda'
|
|
name 'AppCode'
|
|
homepage 'https://www.jetbrains.com/objc/'
|
|
|
|
auto_updates true
|
|
|
|
app 'AppCode.app'
|
|
|
|
uninstall_postflight do
|
|
ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'appcode') }.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/AppCode#{version.major_minor}",
|
|
"~/Library/Caches/AppCode#{version.major_minor}",
|
|
"~/Library/Logs/AppCode#{version.major_minor}",
|
|
"~/Library/Preferences/AppCode#{version.major_minor}",
|
|
]
|
|
end
|