29 lines
1.2 KiB
Ruby
29 lines
1.2 KiB
Ruby
cask 'webstorm' do
|
|
version '2017.1.1,171.4073.40'
|
|
sha256 '5e57a3bdba7266b735e53a2b00e59c8b9be5b6cf5081dfd4a49ab5a7e27fb9b1'
|
|
|
|
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: '0ce7fdedceaeea49007142be64440b188a9653134831d98cc2996cc91ce82a77'
|
|
name 'WebStorm'
|
|
homepage 'https://www.jetbrains.com/webstorm/'
|
|
|
|
auto_updates true
|
|
conflicts_with cask: 'webstorm-eap'
|
|
|
|
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
|