cask 'kicad-nightly' do version '20161219-032625.3ffa37c' sha256 '58f89c0ed77f69ba63ea6fadc0b77166e3998de41d5388c33954f7fdffe15313' 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