2015-02-19 09:07:14 +08:00
|
|
|
cask :v1 => 'sencha' do
|
|
|
|
version '5.1.1.39'
|
|
|
|
sha256 'bb3de716b825fe9f8908f96a3f7570499ffbf41bac860a16f57f680b3cd341ad'
|
|
|
|
|
|
|
|
url "http://cdn.sencha.com/cmd/#{version}/SenchaCmd-#{version}-osx.app.zip"
|
|
|
|
name 'Sencha Cmd'
|
|
|
|
homepage 'http://www.sencha.com/products/sencha-cmd/'
|
|
|
|
license :freemium
|
|
|
|
|
|
|
|
installer :script => "SenchaCmd-#{version}-osx.app/Contents/MacOS/installbuilder.sh",
|
2015-03-08 12:02:03 +08:00
|
|
|
: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",
|
2015-03-08 16:34:37 +08:00
|
|
|
:args => ['--mode', 'unattended']
|
2015-02-19 09:07:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
caveats do
|
|
|
|
<<-EOS.undent
|
|
|
|
Installing this Cask means you have AGREED to the Sencha Cmd License
|
|
|
|
|
|
|
|
http://www.sencha.com/legal/sencha-cmd-license
|
|
|
|
|
|
|
|
Sencha Cmd adds two changes to your ~/.bashrc file:
|
|
|
|
|
|
|
|
export PATH=/opt/Sencha/Cmd/#{version}:$PATH
|
|
|
|
export SENCHA_CMD_3_0_0="/opt/Sencha/Cmd/#{version}"
|
|
|
|
|
|
|
|
If you are a zshell user, copy at the end of your .zshrc file both lines.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|