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
2017-04-07 09:51:48 +08:00
version '6.2.2.36'
sha256 '965716f9a05762d337e70c367c9f7f11bd3be4da027f452f298befee31774014'
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: {
executable: "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
2017-01-06 11:01:57 +08:00
caveats <<-EOS.undent
Installing this Cask means you have AGREED to the Sencha Cmd License
2015-02-19 09:07:14 +08:00
2017-01-06 11:01:57 +08:00
https://www.sencha.com/legal/sencha-tools-software-license-agreement/
2015-02-19 09:07:14 +08:00
2017-01-06 11:01:57 +08:00
Sencha Cmd appends 1 line to your ~/.bash_profile or ~/.profile file:
2015-02-19 09:07:14 +08:00
2017-01-06 11:01:57 +08:00
export PATH="/opt/Sencha/Cmd:$PATH"
2015-02-19 09:07:14 +08:00
2017-01-06 11:01:57 +08:00
If you are a zshell user, append both lines to your .zshrc file.
EOS
2015-02-19 09:07:14 +08:00
end