From c3430caf2ff1d31e6f5b759341c02271aec1e52a Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Thu, 14 Nov 2024 16:35:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E4=B9=B1=E7=A0=81=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/build.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/build.ps1 b/resources/build.ps1 index b179f72..0852de7 100644 --- a/resources/build.ps1 +++ b/resources/build.ps1 @@ -38,6 +38,13 @@ function Build() { -DQt6CoreTools_DIR="$qtHome\lib\cmake\Qt6CoreTools" ` -DQt6QmlTools_DIR="$qtHome\lib\cmake\Qt6QmlTools" ` -DLibraries_ROOT="$librariesPath" + + $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