mirror of
https://github.com/actions/runner-images.git
synced 2025-12-19 08:22:12 +00:00
[windows] Fix spaces in ndk-build.cmd path (#2174)
* Fix spaces in ndk-build.cmd path * Enforce utf-8 encoding
This commit is contained in:
@@ -81,6 +81,7 @@ if (Test-Path $ndkRoot) {
|
||||
setx ANDROID_SDK_ROOT $sdkRoot /M
|
||||
setx ANDROID_NDK_HOME $ndkRoot /M
|
||||
setx ANDROID_NDK_PATH $ndkRoot /M
|
||||
(Get-Content -Encoding UTF8 "${ndkRoot}\ndk-build.cmd").replace('%~dp0\build\ndk-build.cmd','"%~dp0\build\ndk-build.cmd"')|Set-Content -Encoding UTF8 "${ndkRoot}\ndk-build.cmd"
|
||||
} else {
|
||||
Write-Host "NDK is not installed at path $ndk_root"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user