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" depends_on macos: ">= :monterey" postflight do system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/WebDropBridge.app"] end 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/ NOTE: The app is not signed with an Apple Developer certificate. If macOS still blocks the first launch, right-click the app in /Applications and choose "Open", then confirm in the dialog. Alternatively: sudo xattr -dr com.apple.quarantine /Applications/WebDropBridge.app For documentation: https://git.him-tools.de/HIM-public/webdrop-bridge EOS end