homebrew-tap/Casks/webdrop-bridge.rb

36 lines
1.1 KiB
Ruby

cask "webdrop-bridge" do
version "0.9.1"
sha256 "61bf36f51d2fc485c15e0f1b8885241b83220a9dcec7966fb848409f266299ac"
url "https://git.him-tools.de/HIM-public/webdrop-bridge/releases/download/v#{version}/WebDropBridge-#{version}-macos-universal.dmg"
name "WebDrop Bridge"
desc "Intelligent drag-and-drop file bridge for web to desktop applications"
homepage "https://git.him-tools.de/HIM-public/webdrop-bridge"
livecheck do
url "https://git.him-tools.de/api/v1/repos/HIM-public/webdrop-bridge/releases/latest"
strategy :json do |json|
json["tag_name"]&.strip&.sub(/^v/, "")
end
end
app "WebDropBridge.app"
uninstall quit: "de.him_tools.webdrop-bridge"
zap trash: [
"~/.webdrop-bridge",
"~/Library/Application Support/WebDropBridge",
"~/Library/Preferences/de.him_tools.webdrop-bridge.plist",
"~/Library/Logs/WebDropBridge",
]
caveats <<~EOS
WebDrop Bridge has been installed.
Configuration files are stored in: ~/.webdrop-bridge/
Logs are written to: ~/.webdrop-bridge/logs/
For documentation: https://git.him-tools.de/HIM-public/webdrop-bridge
EOS
end