cask 'xamarin-workbooks' do
  version '1.5.0'
  sha256 '1fb3cebb67d0fc68f56a38485ea7ea015f7b294893455c458dc39a2b63d1d6dd'

  # github.com/Microsoft/workbooks/ was verified as official when first introduced to the cask
  url "https://github.com/Microsoft/workbooks/releases/download/v#{version}/XamarinInteractive-#{version}.pkg"
  appcast 'https://docs.microsoft.com/en-us/xamarin/tools/inspector/release-notes/',
          must_contain: version.chomp('.0')
  name 'Xamarin Workbooks'
  homepage 'https://docs.microsoft.com/en-us/xamarin/tools/workbooks/'

  depends_on macos: '>= :el_capitan'

  pkg "XamarinInteractive-#{version}.pkg"

  uninstall pkgutil: 'com.xamarin.Inspector'
end
