()
| 71 | } |
| 72 | |
| 73 | async function stop() { |
| 74 | try { |
| 75 | await listener?.stop() |
| 76 | } finally { |
| 77 | listener = undefined |
| 78 | parentPort.postMessage({ type: "stopped" }) |
| 79 | setImmediate(() => process.exit(0)) |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | function prepareSidecarEnv(password: string, userDataPath: string) { |
| 84 | Object.assign(process.env, { |