From 6ee75bfae1d852d5ae047df19d38854be2694718 Mon Sep 17 00:00:00 2001 From: luocai Date: Thu, 14 Nov 2024 15:12:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=9E=84=E5=BB=BA=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=BC=96=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/build.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/build.ps1 b/resources/build.ps1 index e0e9a67..3c603bd 100644 --- a/resources/build.ps1 +++ b/resources/build.ps1 @@ -39,8 +39,12 @@ function Build() { -DQt6QmlTools_DIR="$qtHome\lib\cmake\Qt6QmlTools" ` -DLibraries_ROOT="$librariesPath" - $content = Get-Content -Path "build\CMakeFiles\rules.ninja" -Encoding Default - Set-Content -Path "build\CMakeFiles\rules.ninja" -Value $content -Encoding UTF8 + $files = Get-ChildItem -Path "build" -Recurse -Filter "rules.ninja" + foreach ($file in $files) { + $content = Get-Content -Path $file.FullName -Encoding Default + Set-Content -Path $file.FullName -Value $content -Encoding UTF8 + Write-Host "Converted $($file.FullName) to UTF-8" + } } cmake.exe --build $buildPath --target all