forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappcode.rb
24 lines (19 loc) · 1008 Bytes
/
appcode.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cask 'appcode' do
version '2019.2.3,192.6817.17'
sha256 '6c9fbd23fc90b02f3fbd99faec919efaad6db1e9ce251856f8d796ab86883403'
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'
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