44 lines
1.2 KiB
Ruby
44 lines
1.2 KiB
Ruby
cask "openwebstart" do
|
|
arch arm: "aarch64", intel: "x64"
|
|
|
|
version "1.7.0"
|
|
sha256 arm: "96f115f95547dac46c2b807878fe7f8b7731f9af640a31ac379a8d363db9afbf",
|
|
intel: "63ab73db0ffe64453aecddc4c44a1039fa973342f5aa1b5f8c7b7330eddbb430"
|
|
|
|
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
|