2015-12-18 09:15:28 +08:00
|
|
|
cask 'sencha' do
|
2016-06-29 08:28:40 +08:00
|
|
|
version '6.1.3.42'
|
|
|
|
sha256 'dd43eb415ff101693c8343cef91d0cbd04889fe3e7574c09babc6562e961740b'
|
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
|
|
|
license :freemium
|
|
|
|
|
2016-01-18 09:27:20 +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
|
|
|
|
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
|
|
|
|
|
|
|
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
|
|
|
|
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
|