File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/cli-doctor/src/tools/healthchecks Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,13 @@ export default {
22
22
23
23
// On Windows `doctor` installs Android Studio locally in a well-known place
24
24
if ( needsToBeFixed && process . platform === 'win32' ) {
25
+ const archSuffix = process . arch === 'x64' ? '64' : '' ;
26
+
25
27
const androidStudioPath = join (
26
28
getUserAndroidPath ( ) ,
27
29
'android-studio' ,
28
30
'bin' ,
29
- ' studio.exe' ,
31
+ ` studio${ archSuffix } .exe` ,
30
32
) . replace ( / \\ / g, '\\\\' ) ;
31
33
const { stdout} = await executeCommand (
32
34
`wmic datafile where name="${ androidStudioPath } " get Version` ,
@@ -58,11 +60,11 @@ export default {
58
60
installPath : installPath ,
59
61
} ) ;
60
62
61
- const prefix = process . arch === 'x64' ? '64' : '' ;
63
+ const archSuffix = process . arch === 'x64' ? '64' : '' ;
62
64
const binFolder = join ( installPath , 'android-studio' , 'bin' ) ;
63
65
64
66
await createShortcut ( {
65
- path : join ( binFolder , `studio${ prefix } .exe` ) ,
67
+ path : join ( binFolder , `studio${ archSuffix } .exe` ) ,
66
68
name : 'Android Studio' ,
67
69
ico : join ( binFolder , 'studio.ico' ) ,
68
70
} ) ;
You can’t perform that action at this time.
0 commit comments