cask 'kicad-nightly' do version '20170324-042143.5aa1610' sha256 'ab0915c893b37467903d1361dc35463d3b610e6a710310d81ea1d21cac4653dc' 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