@@ -64,18 +64,15 @@ export default async function(): Promise<SetupResult> {
6464 await sourceEnvironment ( )
6565
6666 // 4. Install West with pip
67- await system . exec (
68- `which pip` ,
69- {
70- stdout : process . stdout ,
71- } ,
72- )
67+ spinner . start ( 'Installing west build tool' )
7368 await system . exec ( `pip install west` , {
7469 process,
7570 shell : process . env . SHELL ,
7671 } )
72+ spinner . succeed ( )
7773
7874 // 5. Install west build tools
75+ spinner . start ( `Initializing west tooling in ${ ZEPHYR_ROOT } ` )
7976 await system . exec ( `west init ${ ZEPHYR_ROOT } ` , {
8077 process,
8178 shell : process . env . SHELL ,
@@ -85,26 +82,31 @@ export default async function(): Promise<SetupResult> {
8582 process,
8683 shell : process . env . SHELL ,
8784 } )
85+ spinner . succeed ( )
8886
8987 // 6. Install west packages
88+ spinner . start ( `Installing west packages` )
9089 await system . exec ( `west packages pip --install` , {
9190 process,
9291 shell : process . env . SHELL ,
9392 stdout : process . stdout
9493 } )
94+ spinner . succeed ( )
9595
9696 // 7. Install Zephyr SDK
97+ spinner . start ( `Installing Zephyr SDK in ${ ZEPHYR_BASE } ` )
9798 await system . exec ( `west sdk install` , {
9899 cwd : ZEPHYR_BASE ,
99100 process,
100101 shell : process . env . SHELL ,
101102 } )
103+ spinner . succeed ( )
102104
103105 if ( process . env . ZEPHYR_BASE === undefined ) {
104106 await upsert ( EXPORTS_FILE_PATH , `export ZEPHYR_BASE=${ ZEPHYR_BASE } ` )
105107 }
106108
107- spinner . succeed ( `
109+ print . success ( `
108110Successfully set up zephyr platform support for Moddable!
109111Test out the setup by starting a new terminal session,
110112Then run: xs-dev run --example helloworld --device zephyr/<board_name>
0 commit comments