mirror of
https://github.com/android-actions/setup-android
synced 2024-11-26 06:58:26 -08:00
Debug installing android sdk tools
This commit is contained in:
parent
64495f005b
commit
90244e0383
4 changed files with 7 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
2
dist/post/index.js
vendored
2
dist/post/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -16,13 +16,13 @@ export const HOME = os.homedir()
|
||||||
export const GRADLE_CACHE_GLOB = [
|
export const GRADLE_CACHE_GLOB = [
|
||||||
'**/*.gradle',
|
'**/*.gradle',
|
||||||
'**.gradle',
|
'**.gradle',
|
||||||
'gradle.properties'
|
'**/gradle.properties'
|
||||||
]
|
]
|
||||||
export const GRADLE_CACHE_DIR = path.join(HOME, '.gradle', 'cache')
|
export const GRADLE_CACHE_DIR = path.join(HOME, '.gradle', 'cache')
|
||||||
export const GRADLE_CACHE_KEY = 'GRADLE_CACHE_KEY'
|
export const GRADLE_CACHE_KEY = 'GRADLE_CACHE_KEY'
|
||||||
|
|
||||||
// For caching the gradle wrapper in ~/.gradle/wrapper
|
// For caching the gradle wrapper in ~/.gradle/wrapper
|
||||||
export const GRADLE_WRAPPER_GLOB = ['gradle/wrapper/**', 'gradlew*']
|
export const GRADLE_WRAPPER_GLOB = ['**/gradle/wrapper/**', '**/gradlew*']
|
||||||
export const GRADLE_WRAPPER_DIR = path.join(HOME, '.gradle', 'wrapper')
|
export const GRADLE_WRAPPER_DIR = path.join(HOME, '.gradle', 'wrapper')
|
||||||
export const GRADLE_WRAPPER_KEY = 'GRADLE_WRAPPER_KEY'
|
export const GRADLE_WRAPPER_KEY = 'GRADLE_WRAPPER_KEY'
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,9 @@ export async function install(): Promise<void> {
|
||||||
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', 'sdkmanager')
|
||||||
|
|
||||||
|
console.log(fs.readdirSync(cmdlineTools))
|
||||||
|
console.log(fs.existsSync(sdkManager))
|
||||||
|
|
||||||
exec.exec(
|
exec.exec(
|
||||||
sdkManager,
|
sdkManager,
|
||||||
['--include_obsolete', `--sdk_root=${ANDROID_SDK_ROOT}`, 'tools'],
|
['--include_obsolete', `--sdk_root=${ANDROID_SDK_ROOT}`, 'tools'],
|
||||||
|
|
Loading…
Reference in a new issue