mirror of
https://github.com/android-actions/setup-android
synced 2024-11-22 05:29:34 -08:00
Call sdkmanager, not .bat on windows too, it just works
This commit is contained in:
parent
1edf194eee
commit
6bde8445cd
1 changed files with 3 additions and 6 deletions
|
@ -19,16 +19,13 @@ const ANDROID_SDK_ROOT = process.env['ANDROID_SDK_ROOT'] || ANDROID_HOME_SDK_DIR
|
|||
const ANDROID_REPOSITORIES_CFG = path.join(ANDROID_SDK_ROOT, 'repositories.cfg')
|
||||
|
||||
function getSdkManagerPath(cmdToolsVersion: string): string {
|
||||
const toolsBinDir = path.join(
|
||||
return path.join(
|
||||
ANDROID_SDK_ROOT,
|
||||
'cmdline-tools',
|
||||
cmdToolsVersion,
|
||||
'bin'
|
||||
'bin',
|
||||
'sdkmanager'
|
||||
)
|
||||
if ('win32' === process.platform) {
|
||||
return path.join(toolsBinDir, 'sdkmanager.bat')
|
||||
}
|
||||
return path.join(toolsBinDir, 'sdkmanager')
|
||||
}
|
||||
|
||||
function findPreinstalledSdkManager(): {
|
||||
|
|
Loading…
Reference in a new issue