# Take the build's target directory as a parameter to the script param([string]$targetdir) # create a variable to hold a path that's used multiple times $appLib = Join-Path $targetdir "lib" # move files matching the given patterns into the app lib directory ROBOCOPY $targetdir $appLib *.dll *.pdb *.xml *.pak *.bin *.dat cef* /IS /MOV if ($lastexitcode -gt 4) { exit 1; # failure } # move the "locales" directory generated by CEF into the app lib directory ROBOCOPY (Join-Path $targetdir "locales") (Join-Path $appLib "locales") /MOVE if ($lastexitcode -gt 4) { exit 1; # failure } # success exit 0;