Skip to content

Instantly share code, notes, and snippets.

@dnicolson
Last active July 3, 2019 20:17
Show Gist options
  • Save dnicolson/897a732c88eb458cf6eac0c44f23c965 to your computer and use it in GitHub Desktop.
Save dnicolson/897a732c88eb458cf6eac0c44f23c965 to your computer and use it in GitHub Desktop.
If the PHONEVIEW_REGISTRATION_LINK environment variable is defined, this can be part of provisioning a new machine by using "brew cask install phoneview.rb"
cask 'phoneview' do
version :latest
sha256 :no_check
url do
customer_center = ENV['PHONEVIEW_REGISTRATION_LINK']
markup = `curl -L '#{customer_center}' 2>&1`
markup.scan(%r{href="([^"]+.dmg)"}).flatten.first
end
name 'PhoneView'
homepage 'https://www.ecamm.com/mac/phoneview/'
app 'PhoneView.app'
zap trash: [
'~/Library/Application Support/PhoneView',
'~/Library/Caches/com.ecamm.PhoneView',
'~/Library/Preferences/com.ecamm.PhoneView.plist',
]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment