2015-12-21 06:54:16 +08:00
|
|
|
cask 'importio' do
|
|
|
|
version :latest
|
|
|
|
sha256 :no_check
|
|
|
|
|
2016-03-05 01:41:53 +08:00
|
|
|
# d24s8iufolpmlr.cloudfront.net was verified as official when first introduced to the cask
|
2015-12-21 06:54:16 +08:00
|
|
|
url 'https://d24s8iufolpmlr.cloudfront.net/FF24/production-builds/import.io.dmg'
|
|
|
|
name 'import.io'
|
2016-11-20 21:03:34 +08:00
|
|
|
homepage 'https://www.import.io/'
|
2015-12-21 06:54:16 +08:00
|
|
|
|
2016-01-04 17:06:21 +08:00
|
|
|
app 'import.io.app'
|
|
|
|
|
2015-12-21 06:54:16 +08:00
|
|
|
preflight do
|
2016-11-18 23:51:50 +08:00
|
|
|
system_command '/usr/bin/xar', args: ['-xf', "#{staged_path}/install.pkg", 'importio.pkg/Payload', '-C', staged_path]
|
|
|
|
system_command '/usr/bin/tar', args: ['-xf', "#{staged_path}/importio.pkg/Payload", '-C', staged_path]
|
|
|
|
system_command '/bin/rm', args: ['-r', "#{staged_path}/importio.pkg", "#{staged_path}/install.pkg"]
|
2015-12-21 06:54:16 +08:00
|
|
|
end
|
2016-08-21 10:57:09 +08:00
|
|
|
|
|
|
|
zap delete: '~/Library/Containers/import.io'
|
2015-12-21 06:54:16 +08:00
|
|
|
end
|