mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-25 08:19:50 -04:00
21 lines
636 B
PowerShell
21 lines
636 B
PowerShell
# 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; |