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(
100
100
const relativeSimDir = simDir . replace ( workspaceRoot , "" ) . replaceAll ( "\\" , "/" ) ;
101
101
mkdirSync ( simDir , { recursive : true } ) ;
102
102
103
+ const color = simVersion === "2020" ? "\x1b[34m" : "\x1b[32m" ;
104
+
103
105
// Run cargo-msfs
104
106
await $ `docker run \
105
107
--rm -t \
@@ -108,11 +110,14 @@ await Promise.all(
108
110
-w /workspace${ relativeWorkdDir } \
109
111
-e CARGO_TARGET_DIR=/workspace/targets/${ simVersion } \
110
112
${ 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 (
112
116
( err : { exitCode ?: number ; stderr ?: Buffer } ) => {
113
117
console . error ( `[-] Error building for ${ simVersion } : ${ err . exitCode } ${ err . stderr ?. toString ( ) } ` ) ;
114
118
process . exit ( 1 ) ;
115
119
} ,
116
120
) ;
117
121
} ) ,
118
122
) ;
123
+
You can’t perform that action at this time.
0 commit comments