homebrew-cask/Casks/openwebstart.rb

34 lines
1.0 KiB
Ruby

cask "openwebstart" do
version "1.5.1"
sha256 "5836d95e3bc326ba985e5fa6ea63bdf8efe93973115b27ab6a530368e798a6c2"
url "https://github.com/karakun/OpenWebStart/releases/download/v#{version}/OpenWebStart_macos_#{version.dots_to_underscores}.dmg",
verified: "github.com/karakun/OpenWebStart/"
name "OpenWebStart"
desc "Tool to run Java Web Start-based applications after the release of Java 11"
homepage "https://openwebstart.com/"
installer script: {
executable: "#{staged_path}/OpenWebStart Installer.app/Contents/MacOS/JavaApplicationStub",
args: ["-q"],
sudo: true,
print_stderr: false,
}
uninstall_preflight do
set_ownership "/Applications/OpenWebStart"
end
uninstall script: {
executable: "/Applications/OpenWebStart/OpenWebStart Uninstaller.app/Contents/MacOS/JavaApplicationStub",
args: ["-c"],
sudo: true,
},
delete: "/Applications/OpenWebStart"
zap trash: [
"~/.cache/icedtea-web",
"~/.config/icedtea-web",
]
end