homebrew-cask/Casks/biglybt.rb

42 lines
1.3 KiB
Ruby

cask "biglybt" do
arch arm: "Silicon", intel: "Intel"
version "3.3.0.0"
sha256 arm: "8fa8df6b63e5f3e106b8f77cb0ab2badff8909fbae6d14a01d2869e20bcbca5f",
intel: "bf3abc01006e6fe90c84347e9c5bc23bfdb9b6b396f8581b5bdbcc8c3a002347"
url "https://github.com/BiglySoftware/BiglyBT/releases/download/v#{version}/GitHub_BiglyBT_Mac_#{arch}_Installer.dmg",
verified: "github.com/BiglySoftware/BiglyBT/"
name "biglybt"
desc "Bittorrent client based on the Azureus open source project"
homepage "https://www.biglybt.com/"
auto_updates true
depends_on macos: ">= :el_capitan"
preflight do
system_command "#{staged_path}/BiglyBT Installer.app/Contents/MacOS/JavaApplicationStub",
args: [
"-dir", "#{appdir}/BiglyBT",
"-q",
"-Dinstall4j.suppressStdout=true",
"-Dinstall4j.debug=false",
"-VcreateDesktopLinkAction$Boolean=false",
"-VaddToDockAction$Boolean=false"
],
print_stderr: false
end
uninstall delete: "#{appdir}/BiglyBT"
zap trash: [
"~/Library/Application Support/BiglyBT",
"~/Library/Preferences/com.biglybt.plist",
"~/Library/Saved Application State/com.biglybt.savedState",
]
caveats do
depends_on_java "8+"
end
end