cask 'texpad' do if MacOS.version <= :mountain_lion version '1.6.14' sha256 '18fcbe93e77e5b5bc848172546962fcde397a26fd543efcc1054004369192f7e' url "https://download.texpadapp.com/apps/osx/updates/Texpad_#{version.dots_to_underscores}.zip" else version '1.7.40,163,0b0e501' sha256 'e2b8d4764a6b905a52c99328022f7ab2f75a391111f04e846ebda41ac64e09a9' url "https://download.texpadapp.com/apps/osx/updates/Texpad_#{version.before_comma.dots_to_underscores}__#{version.after_comma.before_comma}__#{version.after_comma.after_comma}.dmg" appcast 'https://www.texpadapp.com/static-collected/upgrades/texpadappcast.xml', checkpoint: 'bb20f1d972495ce913b85fbe7d1f91b7b8b481c447a98c1b58111e5643f81afd' end name 'Texpad' homepage 'https://www.texpad.com/osx' auto_updates true depends_on macos: '>= :lion' app 'Texpad.app' zap delete: [ '~/Library/Application Support/Texpad', '~/Library/Caches/com.vallettaventures.Texpad', '~/Library/Cookies/com.vallettaventures.Texpad.binarycookies', '~/Library/Preferences/com.vallettaventures.Texpad.plist', '~/Library/Saved Application State/com.vallettaventures.Texpad.savedState', ] end