From 5050f7028aef87c379d3ba7e55dbbb07ee521213 Mon Sep 17 00:00:00 2001 From: Nomango <569629550@qq.com> Date: Sun, 18 Aug 2019 23:19:51 +0800 Subject: [PATCH] [deploy] update scripts --- scripts/appveyor/clear_project_configuration.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/appveyor/clear_project_configuration.ps1 b/scripts/appveyor/clear_project_configuration.ps1 index 04be8f36..1bc7f59f 100644 --- a/scripts/appveyor/clear_project_configuration.ps1 +++ b/scripts/appveyor/clear_project_configuration.ps1 @@ -4,5 +4,6 @@ $replaceTo = "None" Get-ChildItem -Path 'projects\' *.vcxproj | ForEach-Object { $filePath = 'projects\' + $_ 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') }