From 0aa2721f677cbbd2a2c596f6ba7ed6c3e77162d1 Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Thu, 14 Nov 2024 16:30:56 +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 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/resources/build.ps1 b/resources/build.ps1 index 3c603bd..b179f72 100644 --- a/resources/build.ps1 +++ b/resources/build.ps1 @@ -1,6 +1,6 @@ param($type) -[Console]::OutputEncoding = [System.Text.Encoding]::UTF8 +# [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 $MsvcScript = 'D:\Program Files\Microsoft Visual Studio\2022\\Community\Common7\Tools\Launch-VsDevShell.ps1' if (!(Test-Path $MsvcScript)) { $MsvcScript = 'D:\Program Files\Microsoft Visual Studio\2022\\Professional\Common7\Tools\Launch-VsDevShell.ps1' } @@ -38,13 +38,6 @@ 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