···5151 SP_ALLOWED_STREAMS: account.address.toLowerCase(),
5252 };
5353 if (args["self-test"]) {
5454+ app.on("window-all-closed", () => {
5555+ // need to override this to prevent the app from quitting
5656+ });
5457 const success = await runTests(
5558 args["tests-to-run"].split(","),
5659 args["self-test-duration"],
5760 privateKey,
5861 );
6262+ console.log("tests finished");
5963 if (!success) {
6064 app.exit(1);
6165 } else {
···8286 });
83878488 const start = async (env: { [k: string]: string }): Promise<void> => {
8989+ app.on("window-all-closed", () => {
9090+ if (process.platform !== "darwin") {
9191+ app.quit();
9292+ }
9393+ });
8594 const { skipNode, nodeFrontend, noUpdate } = getEnv();
8695 if (!noUpdate) {
8796 initUpdater();
···110119 // Quit when all windows are closed, except on macOS. There, it's common
111120 // for applications and their menu bar to stay active until the user quits
112121 // explicitly with Cmd + Q.
113113- // app.on("window-all-closed", () => {
114114- // if (process.platform !== "darwin") {
115115- // app.quit();
116116- // }
117117- // });
118122119123 app.on("activate", () => {
120124 // On OS X it's common to re-create a window in the app when the