homebrew-cask/Casks/sencha.rb

37 lines
1.2 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'sencha' do
2016-09-27 05:25:17 +08:00
version '6.2.0.103'
sha256 '5203d9d2ae06e6be1fb05a8ce6276ab77cc1bc7295c999b6f97008da0c34efbb'
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
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
uninstall script: {
executable: "/opt/Sencha/Cmd/#{version}/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
2016-08-17 20:07:43 +08:00
https://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