mirror of
https://github.com/android-actions/setup-android
synced 2024-11-26 06:58:26 -08:00
correct bin path for sdkmanager
This commit is contained in:
parent
90244e0383
commit
4de319a2e2
2 changed files with 4 additions and 4 deletions
2
dist/main/index.js
vendored
2
dist/main/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -24,7 +24,7 @@ export async function install(): Promise<void> {
|
||||||
if (process.platform === 'linux') {
|
if (process.platform === 'linux') {
|
||||||
const cmdlineToolsZip = await tc.downloadTool(COMMANDLINE_TOOLS_LIN_URL)
|
const cmdlineToolsZip = await tc.downloadTool(COMMANDLINE_TOOLS_LIN_URL)
|
||||||
const cmdlineTools = await tc.extractZip(cmdlineToolsZip)
|
const cmdlineTools = await tc.extractZip(cmdlineToolsZip)
|
||||||
const sdkManager = path.join(cmdlineTools, 'tools', 'sdkmanager')
|
const sdkManager = path.join(cmdlineTools, 'tools', 'bin', 'sdkmanager')
|
||||||
|
|
||||||
console.log(fs.readdirSync(cmdlineTools))
|
console.log(fs.readdirSync(cmdlineTools))
|
||||||
console.log(fs.existsSync(sdkManager))
|
console.log(fs.existsSync(sdkManager))
|
||||||
|
@ -39,7 +39,7 @@ export async function install(): Promise<void> {
|
||||||
} else if (process.platform === 'darwin') {
|
} else if (process.platform === 'darwin') {
|
||||||
const cmdlineToolsZip = await tc.downloadTool(COMMANDLINE_TOOLS_MAC_URL)
|
const cmdlineToolsZip = await tc.downloadTool(COMMANDLINE_TOOLS_MAC_URL)
|
||||||
const cmdlineTools = await tc.extractZip(cmdlineToolsZip)
|
const cmdlineTools = await tc.extractZip(cmdlineToolsZip)
|
||||||
const sdkManager = path.join(cmdlineTools, 'tools', 'sdkmanager')
|
const sdkManager = path.join(cmdlineTools, 'tools', 'bin', 'sdkmanager')
|
||||||
|
|
||||||
exec.exec(
|
exec.exec(
|
||||||
sdkManager,
|
sdkManager,
|
||||||
|
@ -51,7 +51,7 @@ export async function install(): Promise<void> {
|
||||||
} else if (process.platform === 'win32') {
|
} else if (process.platform === 'win32') {
|
||||||
const cmdlineToolsZip = await tc.downloadTool(COMMANDLINE_TOOLS_WIN_URL)
|
const cmdlineToolsZip = await tc.downloadTool(COMMANDLINE_TOOLS_WIN_URL)
|
||||||
const cmdlineTools = await tc.extractZip(cmdlineToolsZip)
|
const cmdlineTools = await tc.extractZip(cmdlineToolsZip)
|
||||||
const sdkManager = path.join(cmdlineTools, 'tools', 'sdkmanager.bat')
|
const sdkManager = path.join(cmdlineTools, 'tools', 'bin', 'sdkmanager.bat')
|
||||||
|
|
||||||
exec.exec(
|
exec.exec(
|
||||||
sdkManager,
|
sdkManager,
|
||||||
|
|
Loading…
Reference in a new issue