cask 'kicad-nightly' do version '20161202-032614.6d6542e' sha256 '66a6ad2f1067f5be04576711c63478e9deafacde801a45c50ea8316cf2da360c' url "http://downloads.kicad-pcb.org/osx/nightly/kicad-#{version}-c4osx.dmg" name 'KiCad' homepage 'http://kicad-pcb.org/' suite 'Kicad-apps', target: 'Kicad' artifact 'kicad', target: "#{ENV['HOME']}/Library/Application Support/kicad" preflight do system_command '/bin/mkdir', args: ['--', "#{staged_path}/Kicad-apps"] system_command '/bin/mv', args: ['--', *Dir["#{staged_path}/Kicad/*.app"], "#{staged_path}/Kicad-apps/"] end end