构建乱码的问题。
Some checks failed
Build Applications / PullDocker (push) Successful in 5s
Build Applications / Build (push) Has been cancelled
Windows CI / build (push) Has been cancelled

This commit is contained in:
amass 2024-11-14 16:30:56 +08:00
parent 6ee75bfae1
commit 0aa2721f67

View File

@ -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