|
|
@ -7,10 +7,14 @@ cask 'kicad-nightly' do |
|
|
|
homepage 'http://kicad-pcb.org/' |
|
|
|
|
|
|
|
suite 'Kicad-apps', target: 'Kicad' |
|
|
|
artifact 'kicad', target: "#{ENV['HOME']}/Library/Application Support/kicad" |
|
|
|
artifact 'kicad', target: '/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/"] |
|
|
|
FileUtils.cd staged_path do |
|
|
|
FileUtils.mkdir 'Kicad-apps' |
|
|
|
FileUtils.mv Dir.glob('Kicad/*.app'), 'Kicad-apps' |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
zap delete: '~/Library/Preferences/kicad' |
|
|
|
end |
|
|
|