2015-12-18 09:15:28 +08:00
|
|
|
cask 'sencha' do
|
2017-05-20 21:23:53 +08:00
|
|
|
version '6.5.0.180'
|
|
|
|
sha256 '9de94fbc93f961ccd6cf069cfb181bbf590935f9bdbc27c35993839fe8f20119'
|
2015-02-19 09:07:14 +08:00
|
|
|
|
2015-12-26 12:46:37 +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'
|
2015-12-26 12:46:37 +08:00
|
|
|
homepage 'https://www.sencha.com/products/sencha-cmd/'
|
2015-02-19 09:07:14 +08:00
|
|
|
|
2017-04-11 01:38:23 +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
|
|
|
|
2016-01-04 17:06:21 +08:00
|
|
|
postflight do
|
|
|
|
set_ownership '/opt/Sencha'
|
|
|
|
end
|
|
|
|
|
2016-01-18 09:27:20 +08:00
|
|
|
uninstall script: {
|
2016-06-29 09:49:47 +08:00
|
|
|
executable: "/opt/Sencha/Cmd/#{version}/Sencha Cmd Uninstaller.app/Contents/MacOS/JavaApplicationStub",
|
2016-01-18 09:27:20 +08:00
|
|
|
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
|