cask "jellybeansoup-netflix" do
  version "1.0.5"
  sha256 "6e62f4e8a5883f139a7259464e33039e7cd5c6040caf9dbb27d85f890b576c40"

  url "https://jellystyle-d5a.kxcdn.com/macos/netflix/Netflix.v#{version}.zip",
      verified: "jellystyle-d5a.kxcdn.com/"
  name "Netflix"
  desc "Third-party app to use Netflix outside the browser"
  homepage "https://github.com/jellybeansoup/macos-netflix"

  livecheck do
    url "https://jellystyle.com/resources/macOS/Netflix.xml"
    strategy :sparkle, &:short_version
  end

  auto_updates true
  depends_on :macos

  app "Netflix.app"

  zap trash: [
    "~/Library/Caches/com.jellystyle.Netflix-wrapper",
    "~/Library/Preferences/com.jellystyle.Netflix-wrapper.plist",
    "~/Library/Saved Application State/com.jellystyle.Netflix-wrapper.savedState",
  ]
end
