homebrew-cask/Casks/sencha.rb

37 lines
1.2 KiB
Ruby
Raw Normal View History

2015-08-03 01:56:15 +08:00
cask :v1_1 => 'sencha' do
2015-05-16 15:14:17 +08:00
version '5.1.3.61'
sha256 '6083490b578191d2b8307b375e115c93c2223683e49636893edadfa1d76a412c'
2015-02-19 09:07:14 +08:00
2015-06-29 14:32:18 +08:00
url "https://cdn.sencha.com/cmd/#{version}/SenchaCmd-#{version}-osx.app.zip"
2015-02-19 09:07:14 +08:00
name 'Sencha Cmd'
homepage 'http://www.sencha.com/products/sencha-cmd/'
license :freemium
installer :script => "SenchaCmd-#{version}-osx.app/Contents/MacOS/installbuilder.sh",
:args => ['--mode', 'unattended', '--prefix', '/opt']
2015-02-19 09:07:14 +08:00
uninstall :script => {
:executable => "/opt/Sencha/Cmd/#{version}/uninstall.app/Contents/MacOS/installbuilder.sh",
:args => ['--mode', 'unattended']
2015-02-19 09:07:14 +08:00
}
postflight do
set_ownership '/opt/Sencha'
end
2015-02-19 09:07:14 +08:00
caveats do
<<-EOS.undent
Installing this Cask means you have AGREED to the Sencha Cmd License
2015-06-30 11:07:14 +08:00
http://www.sencha.com/legal/sencha-tools-software-license-agreement/
2015-02-19 09:07:14 +08:00
Sencha Cmd appends 2 lines to your ~/.bashrc or ~/.profile file:
2015-02-19 09:07:14 +08:00
export PATH=/opt/Sencha/Cmd/#{version}:$PATH
export SENCHA_CMD_3_0_0="/opt/Sencha/Cmd/#{version}"
If you are a zshell user, append both lines to your .zshrc file.
2015-02-19 09:07:14 +08:00
EOS
end
end