homebrew-cask/Casks/sencha.rb

38 lines
1.2 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'sencha' do
2015-11-24 03:50:46 +08:00
version '6.0.2.14'
sha256 '7d131f333585ed74a31c4c4efa9ecc5176cf5d5410eeddb631c974a847216cec'
2015-02-19 09:07:14 +08:00
url "https://cdn.sencha.com/cmd/#{version}/jre/SenchaCmd-#{version}-osx.app.zip"
2015-02-19 09:07:14 +08:00
name 'Sencha Cmd'
homepage 'https://www.sencha.com/products/sencha-cmd/'
2015-02-19 09:07:14 +08:00
license :freemium
2015-11-24 23:57:57 +08:00
installer :script => "SenchaCmd-#{version}-osx.app/Contents/MacOS/JavaApplicationStub",
:args => ['-Djava.awt.headless=true', '-q', '-dir', "/opt/Sencha/Cmd/#{version}"],
:sudo => true
2015-02-19 09:07:14 +08:00
postflight do
set_ownership '/opt/Sencha'
end
2015-02-19 09:07:14 +08:00
uninstall :script => {
2015-11-24 03:50:46 +08:00
:executable => "/opt/Sencha/Cmd/#{version}/.install4j/Sencha Cmd Uninstaller.app/Contents/MacOS/JavaApplicationStub",
:args => ['-Djava.awt.headless=true', '-q'],
:sudo => true,
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-11-24 03:50:46 +08:00
Sencha Cmd appends 1 line to your ~/.bash_profile or ~/.profile file:
2015-02-19 09:07:14 +08:00
2015-11-24 03:50:46 +08:00
export PATH="/opt/Sencha/Cmd:$PATH"
2015-02-19 09:07:14 +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