Merge pull request #198799 from Homebrew/bump-huly-0.6.411
[Homebrew/homebrew-cask.git] / Casks / s / sencha.rb
bloba299a7f926f320956af003e8544558a2b8605a2e
1 cask "sencha" do
2   version "7.8.0.59"
3   sha256 "28b8f10473fb8f444a265fef74e63d07debe79f64c1e0d73c36e7744937392e2"
5   url "https://trials.sencha.com/cmd/#{version.major_minor_patch}/SenchaCmd-#{version}-osx.app.zip"
6   name "Sencha Cmd"
7   desc "Productivity and performance optimisation tool for Sencha Ext JS"
8   homepage "https://www.sencha.com/products/sencha-cmd/"
10   livecheck do
11     skip "No reliable way to get version info"
12   end
14   installer script: {
15     executable: "SenchaCmd-#{version}-osx.app/Contents/MacOS/JavaApplicationStub",
16     args:       ["-Djava.awt.headless=true", "-q", "-dir", "/opt/Sencha/Cmd/#{version}"],
17     sudo:       true,
18   }
20   postflight do
21     set_ownership "/opt/Sencha"
22   end
24   uninstall script: {
25     executable: "/opt/Sencha/Cmd/#{version}/Sencha Cmd Uninstaller.app/Contents/MacOS/JavaApplicationStub",
26     args:       ["-Djava.awt.headless=true", "-q"],
27     sudo:       true,
28   }
30   # No zap stanza required
32   caveats do
33     license "https://www.sencha.com/legal/sencha-tools-software-license-agreement/"
34     <<~EOS
35       Sencha Cmd appends 1 line to your ~/.bash_profile or ~/.profile file:
37         export PATH="/opt/Sencha/Cmd:$PATH"
39       If you are a zshell user, append both lines to your .zshrc file.
40     EOS
41   end
42 end