This repository was archived by the owner on Aug 11, 2024. It is now read-only.
File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -359,12 +359,12 @@ function Run {
359
359
if ($modules -contains ' android' ) {
360
360
if (-not $IsMacOS ) {
361
361
$rootEditorPath = (Get-Item $editorPath ).Directory.Parent.FullName
362
- } else {
363
- $rootEditorPath = $editorPath
362
+ $androidSdkPath = " $rootEditorPath /Editor/Data/PlaybackEngines/AndroidPlayer/SDK/cmdline-tools"
363
+ }
364
+ else {
365
+ $rootEditorPath = (Get-Item $editorPath ).Directory.Parent.FullName
366
+ $androidSdkPath = " $rootEditorPath /PlaybackEngines/AndroidPlayer/SDK/cmdline-tools"
364
367
}
365
- # try to resolve the android cmdline tools path. The version isn't always latest. Just get first directory
366
- # C:/Program Files/Unity/Hub/Editor/2022.3.36f1/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/cmdline-tools/6.0/bin/sdkmanager
367
- $androidSdkPath = " $rootEditorPath /Editor/Data/PlaybackEngines/AndroidPlayer/SDK/cmdline-tools"
368
368
if (-not (Test-Path - Path $androidSdkPath )) {
369
369
Write-Error " Failed to resolve Android SDK cmdline-tools path at `" $androidSdkPath `" "
370
370
exit 1
Original file line number Diff line number Diff line change @@ -359,12 +359,12 @@ function Run {
359
359
if ($modules -contains ' android' ) {
360
360
if (-not $IsMacOS ) {
361
361
$rootEditorPath = (Get-Item $editorPath ).Directory.Parent.FullName
362
- } else {
363
- $rootEditorPath = $editorPath
362
+ $androidSdkPath = " $rootEditorPath /Editor/Data/PlaybackEngines/AndroidPlayer/SDK/cmdline-tools"
363
+ }
364
+ else {
365
+ $rootEditorPath = (Get-Item $editorPath ).Directory.Parent.FullName
366
+ $androidSdkPath = " $rootEditorPath /PlaybackEngines/AndroidPlayer/SDK/cmdline-tools"
364
367
}
365
- # try to resolve the android cmdline tools path. The version isn't always latest. Just get first directory
366
- # C:/Program Files/Unity/Hub/Editor/2022.3.36f1/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/cmdline-tools/6.0/bin/sdkmanager
367
- $androidSdkPath = " $rootEditorPath /Editor/Data/PlaybackEngines/AndroidPlayer/SDK/cmdline-tools"
368
368
if (-not (Test-Path - Path $androidSdkPath )) {
369
369
Write-Error " Failed to resolve Android SDK cmdline-tools path at `" $androidSdkPath `" "
370
370
exit 1
You can’t perform that action at this time.
0 commit comments