File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ await Promise.all(
100100 const relativeSimDir = simDir . replace ( workspaceRoot , "" ) . replaceAll ( "\\" , "/" ) ;
101101 mkdirSync ( simDir , { recursive : true } ) ;
102102
103+ const color = simVersion === "2020" ? "\x1b[34m" : "\x1b[32m" ;
104+
103105 // Run cargo-msfs
104106 await $ `docker run \
105107 --rm -t \
@@ -108,11 +110,14 @@ await Promise.all(
108110 -w /workspace${ relativeWorkdDir } \
109111 -e CARGO_TARGET_DIR=/workspace/targets/${ simVersion } \
110112 ${ IMAGE_NAME } \
111- bash -c "cargo-msfs build msfs${ simVersion } -i ./src/wasm -o ./${ relativeSimDir } /msfs_navigation_data_interface.wasm 1> >(sed "s/^/[${ simVersion } ]/") 2> >(sed "s/^/[${ simVersion } ]/" >&2)"` . catch (
113+ bash -c "cargo-msfs build msfs${ simVersion } -i ./src/wasm -o ./${ relativeSimDir } /msfs_navigation_data_interface.wasm \
114+ 1> >(sed \"s/^/[\\x1b[${ color } ${ simVersion } \\x1b[0m]/\") \
115+ 2> >(sed \"s/^/[\\x1b[${ color } ${ simVersion } \\x1b[0m]/\" >&2)"` . catch (
112116 ( err : { exitCode ?: number ; stderr ?: Buffer } ) => {
113117 console . error ( `[-] Error building for ${ simVersion } : ${ err . exitCode } ${ err . stderr ?. toString ( ) } ` ) ;
114118 process . exit ( 1 ) ;
115119 } ,
116120 ) ;
117121 } ) ,
118122) ;
123+
You can’t perform that action at this time.
0 commit comments