File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -3283,8 +3283,6 @@ function setupAndroid(version) {
3283
3283
core . addPath ( '$ANDROID_HOME/tools' ) ;
3284
3284
core . addPath ( '$ANDROID_HOME/tools/bin' ) ;
3285
3285
core . addPath ( '$ANDROID_HOME/platform-tools' ) ;
3286
- yield exec . exec ( `bash -c "echo $PATH" ` ) ;
3287
- yield exec . exec ( `bash -c "echo $ANDROID_HOME" ` ) ;
3288
3286
console . log ( '=== installing android SDK ===' ) ;
3289
3287
// await io.mkdirP(`${homeDirectory}/.android`);
3290
3288
// await exec.exec(`bash -c "sudo echo '### User Sources for Android SDK Manager' | sudo tee -a ${homeDirectory}/.android/repositories.cfg"`);
Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ export async function setupAndroid(version: string): Promise<void>{
51
51
52
52
//download android sdk
53
53
await io . mkdirP ( `${ homeDirectory } /android/sdk` ) ;
54
-
55
54
core . exportVariable ( 'ANDROID_HOME' , `${ homeDirectory } /android/sdk` ) ;
56
55
core . exportVariable ( 'SDK_VERSION' , 'sdk-tools-linux-4333796.zip' ) ;
57
56
core . exportVariable ( 'ADB_INSTALL_TIMEOUT' , '120' ) ;
@@ -66,17 +65,18 @@ export async function setupAndroid(version: string): Promise<void>{
66
65
core . addPath ( '$ANDROID_HOME/tools/bin' ) ;
67
66
core . addPath ( '$ANDROID_HOME/platform-tools' ) ;
68
67
69
- await exec . exec ( `bash -c "echo $PATH" ` ) ;
70
- await exec . exec ( `bash -c "echo $ANDROID_HOME" ` ) ;
71
68
72
69
console . log ( '=== installing android SDK ===' ) ;
73
70
74
71
// await io.mkdirP(`${homeDirectory}/.android`);
75
72
// await exec.exec(`bash -c "sudo echo '### User Sources for Android SDK Manager' | sudo tee -a ${homeDirectory}/.android/repositories.cfg"`);
73
+
76
74
await exec . exec ( `bash -c "mkdir ~/.android && echo '### User Sources for Android SDK Manager' > ~/.android/repositories.cfg"` ) ;
77
75
await exec . exec ( `bash -c "sudo ln -s $ANDROID_HOME/tools/bin/sdkmanager /usr/lib/sdkmanager"` ) ;
78
76
await exec . exec ( `bash -c "yes | sudo sdkmanager --list"` ) ;
79
77
await exec . exec ( `bash -c "yes | sudo sdkmanager --licenses"` ) ;
78
+
79
+
80
80
// await exec.exec(`sudo chown -R ${user}:${user} ${homeDirectory}/android`);
81
81
// await exec.exec(`sudo chown -R ${user}:${user} ${homeDirectory}/.android`);
82
82
// await exec.exec(`bash -c " ls -la ${homeDirectory}/android/sdk/tools/"`);
You can’t perform that action at this time.
0 commit comments