Files
homebrew-cask/Casks/o/openwebstart.rb
2023-12-04 12:46:04 +01:00

44 lines
1.2 KiB
Ruby

cask "openwebstart" do
arch arm: "aarch64", intel: "x64"
version "1.9.0"
sha256 arm: "a3792e84a804c18fb28554210dbee875fad00a653198c2664b1756ffaa86590b",
intel: "a01b80f0db3456109b1d9371ecb3cae28ad52afea1bd44e274ee8b06f992f0de"
url "https://github.com/karakun/OpenWebStart/releases/download/v#{version}/OpenWebStart_macos-#{arch}_#{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/"
livecheck do
url :url
strategy :github_latest
end
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: ["-q"],
sudo: true,
print_stderr: false,
},
delete: "/Applications/OpenWebStart"
zap trash: [
"~/.cache/icedtea-web",
"~/.config/icedtea-web",
]
end