Browse Source

Update kicad-nightly to match kicad (#3787)

master
commitay 8 years ago
committed by Vítor Galvão
parent
commit
da03c8e14a
  1. 10
      Casks/kicad-nightly.rb

10
Casks/kicad-nightly.rb

@ -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

Loading…
Cancel
Save