homebrew-cask/Casks/importio.rb

19 lines
636 B
Ruby

cask 'importio' do
version :latest
sha256 :no_check
# d24s8iufolpmlr.cloudfront.net was verified as official when first introduced to the cask
url 'https://d24s8iufolpmlr.cloudfront.net/FF24/production-builds/import.io.dmg'
name 'import.io'
homepage 'https://import.io/'
license :gratis
app 'import.io.app'
preflight do
system '/usr/bin/xar', '-xf', "#{staged_path}/install.pkg", 'importio.pkg/Payload', '-C', staged_path
system '/usr/bin/tar', '-xf', "#{staged_path}/importio.pkg/Payload", '-C', staged_path
system '/bin/rm', '-r', "#{staged_path}/importio.pkg", "#{staged_path}/install.pkg"
end
end