27 lines
1.2 KiB
Ruby
27 lines
1.2 KiB
Ruby
cask 'webstorm' do
|
|
version '2018.3.2,183.4886.41'
|
|
sha256 '7d4462bdc9164009072f33c0649d4a69b7c889bddbaa78a476886928815b29ed'
|
|
|
|
url "https://download.jetbrains.com/webstorm/WebStorm-#{version.before_comma}.dmg"
|
|
appcast 'https://data.services.jetbrains.com/products/releases?code=WS&latest=true&type=release'
|
|
name 'WebStorm'
|
|
homepage 'https://www.jetbrains.com/webstorm/'
|
|
|
|
auto_updates true
|
|
|
|
app 'WebStorm.app'
|
|
|
|
uninstall_postflight do
|
|
ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'wstorm') }.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/WebStorm#{version.major_minor}",
|
|
"~/Library/Caches/WebStorm#{version.major_minor}",
|
|
"~/Library/Logs/WebStorm#{version.major_minor}",
|
|
"~/Library/Preferences/WebStorm#{version.major_minor}",
|
|
'~/Library/Preferences/jetbrains.webstorm.aaac0500.plist',
|
|
'~/Library/Saved Application State/com.jetbrains.WebStorm.savedState',
|
|
]
|
|
end
|