homebrew-cask/Casks/sts.rb

22 lines
743 B
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'sts' do
2016-12-22 21:19:45 +08:00
version '3.8.3.RELEASE'
sha256 '74ec8913bd247eab095f38d7a9629d2b8557ded11a8f36179c713a4515ae25ac'
2014-10-07 23:28:49 +08:00
module Utils
2015-07-15 17:39:55 +08:00
def self.eclipse_version
2016-12-22 21:19:45 +08:00
'4.6.2' # find eclipse version at https://spring.io/tools/sts/all
2015-07-15 17:39:55 +08:00
end
def self.eclipse_version_major_minor
eclipse_version.split('.').slice(0, 2).join('.')
2014-10-07 23:28:49 +08:00
end
end
2016-12-22 21:19:45 +08:00
# download.springsource.com/release/STS was verified as official when first introduced to the cask
url "http://download.springsource.com/release/STS/#{version}/dist/e#{Utils.eclipse_version_major_minor}/spring-tool-suite-#{version}-e#{Utils.eclipse_version}-macosx-cocoa-x86_64.tar.gz"
2015-05-02 04:26:10 +08:00
name 'Spring Tool Suite'
2015-06-29 14:32:18 +08:00
homepage 'https://spring.io/tools/sts'
2015-07-15 17:39:55 +08:00
app 'sts-bundle/STS.app'
2013-12-15 20:00:01 +08:00
end