28 lines
1.1 KiB
Ruby
28 lines
1.1 KiB
Ruby
cask 'webstorm' do
|
|
version '2017.2,172.3317.70'
|
|
sha256 '69f75f47413f7fd8ce960cf270a630591ce15b54f6d757a28cae2a0308797d44'
|
|
|
|
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',
|
|
checkpoint: 'f8764a7334d725c82c8d607ba8f3534c04131ebec80665918d7a4dabc944a7b3'
|
|
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) }
|
|
end
|
|
|
|
zap delete: [
|
|
"~/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
|