修正构建文件编码。
Some checks failed
Build Applications / Build (push) Successful in 2m30s
Build Applications / PullDocker (push) Successful in 8m41s
Windows CI / build (push) Failing after 31s

This commit is contained in:
luocai 2024-11-14 15:12:50 +08:00
parent 404889a19c
commit 6ee75bfae1

View File

@ -39,8 +39,12 @@ function Build() {
-DQt6QmlTools_DIR="$qtHome\lib\cmake\Qt6QmlTools" ` -DQt6QmlTools_DIR="$qtHome\lib\cmake\Qt6QmlTools" `
-DLibraries_ROOT="$librariesPath" -DLibraries_ROOT="$librariesPath"
$content = Get-Content -Path "build\CMakeFiles\rules.ninja" -Encoding Default $files = Get-ChildItem -Path "build" -Recurse -Filter "rules.ninja"
Set-Content -Path "build\CMakeFiles\rules.ninja" -Value $content -Encoding UTF8 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 cmake.exe --build $buildPath --target all