File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -932,21 +932,25 @@ const buildXbox = async (): Promise<void> =>
932932 return ;
933933 }
934934
935- // フルビルド (Release パッケージまで)
936- const stream = cp.spawn("cmake", [
937- "--build", cmakeBuildDir,
938- "--config", "Release"
939- ], { "stdio" : "inherit" } );
940-
941- stream.on("close", (code: number): void =>
935+ // フルビルド (Release パッケージまで)。失敗時は reject して非ゼロ終了させる
936+ // (以前は表示のみで exit code 0 のまま成功扱いになっていた)
937+ await new Promise< void > ((resolve, reject): void =>
942938 {
943- if ( code !== 0 ) {
944- console . log ( pc . red ( "Export of the Xbox (GDK) package failed." ) ) ;
945- return ;
946- }
947- console.log();
948- console.log(pc.green(`Finished building the Xbox (GDK) package for ${ gdkArch } .`));
949- console.log();
939+ const stream = cp . spawn ( "cmake" , [
940+ "--build" , cmakeBuildDir ,
941+ "--config" , "Release"
942+ ] , { "stdio" : "inherit" } ) ;
943+
944+ stream . on ( "close" , ( code : number ) : void =>
945+ {
946+ if ( code !== 0 ) {
947+ return reject ( "Export of the Xbox (GDK) package failed." ) ;
948+ }
949+ console . log ( ) ;
950+ console . log ( pc . green ( `Finished building the Xbox (GDK) package for ${ gdkArch } .` ) ) ;
951+ console . log ( ) ;
952+ resolve ( ) ;
953+ } ) ;
950954 } );
951955} ;
952956
You can’t perform that action at this time.
0 commit comments