[deploy] update scripts

This commit is contained in:
Nomango 2019-08-18 23:19:51 +08:00
parent 90c0bcc3b0
commit 5050f7028a
1 changed files with 2 additions and 1 deletions

View File

@ -4,5 +4,6 @@ $replaceTo = "<DebugInformationFormat>None</DebugInformationFormat>"
Get-ChildItem -Path 'projects\' *.vcxproj | ForEach-Object { Get-ChildItem -Path 'projects\' *.vcxproj | ForEach-Object {
$filePath = 'projects\' + $_ $filePath = 'projects\' + $_
Copy-Item -Path $filePath -Destination ($filePath + '.template') Copy-Item -Path $filePath -Destination ($filePath + '.template')
Get-Content ($filePath + '.template') | ForEach-Object { $_ -replace $replace, $replaceTo } > $filePath Get-Content ($filePath + '.template') -Encoding UTF8 | ForEach-Object { $_ -replace $replace, $replaceTo } | Out-File $filePath -Encoding UTF8
Remove-Item -Path ($filePath + '.template')
} }