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",
|
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
|
|
|
}
|
|
|
|
|
2015-05-16 22:28:02 +08:00
|
|
|
postflight do
|
2015-08-03 00:38:43 +08:00
|
|
|
set_ownership '/opt/Sencha'
|
2015-05-16 22:28:02 +08:00
|
|
|
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
|
|
|
|
2015-05-16 22:28:02 +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}"
|
|
|
|
|
2015-05-16 22:28:02 +08:00
|
|
|
If you are a zshell user, append both lines to your .zshrc file.
|
2015-02-19 09:07:14 +08:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|