mirror of
https://gitea.com/actions/setup-android.git
synced 2025-12-13 20:06:54 +00:00
correct bin path for sdkmanager
This commit is contained in:
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user