// `bun run start`: launch the app against the prebuilt Angular bundle (no ng // serve / hot reload — that's `bun run dev`). Exists as a script rather than a // bare `bunx electrobun dev` in package.json so the Linux GPU workaround can be // injected into the environment before the app process starts. import { launchEnv } from "./linux-gpu"; const app = Bun.spawn(["bunx", "electrobun", "dev"], { stdout: "inherit", stderr: "inherit", env: launchEnv(), }); function shutdown(): void { app.kill(); process.exit(0); } process.on("SIGINT", shutdown); process.on("SIGTERM", shutdown); process.exit(await app.exited);