38 lines
1.2 KiB
Ruby
38 lines
1.2 KiB
Ruby
cask 'sencha' do
|
|
version '6.1.3.42'
|
|
sha256 'dd43eb415ff101693c8343cef91d0cbd04889fe3e7574c09babc6562e961740b'
|
|
|
|
url "https://cdn.sencha.com/cmd/#{version}/jre/SenchaCmd-#{version}-osx.app.zip"
|
|
name 'Sencha Cmd'
|
|
homepage 'https://www.sencha.com/products/sencha-cmd/'
|
|
license :freemium
|
|
|
|
installer script: "SenchaCmd-#{version}-osx.app/Contents/MacOS/JavaApplicationStub",
|
|
args: ['-Djava.awt.headless=true', '-q', '-dir', "/opt/Sencha/Cmd/#{version}"],
|
|
sudo: true
|
|
|
|
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,
|
|
}
|
|
|
|
caveats do
|
|
<<-EOS.undent
|
|
Installing this Cask means you have AGREED to the Sencha Cmd License
|
|
|
|
https://www.sencha.com/legal/sencha-tools-software-license-agreement/
|
|
|
|
Sencha Cmd appends 1 line to your ~/.bash_profile or ~/.profile file:
|
|
|
|
export PATH="/opt/Sencha/Cmd:$PATH"
|
|
|
|
If you are a zshell user, append both lines to your .zshrc file.
|
|
EOS
|
|
end
|
|
end
|