()
| 42 | * electron-builder's `dir` target assembles the unpacked app on macOS without |
| 43 | * Docker. */ |
| 44 | const ensureBundle = (): void => { |
| 45 | if (existsSync(hostBundle().dir)) return; |
| 46 | const run = (cmd: string, args: string[], env: Record<string, string> = {}) => |
| 47 | execFileSync(cmd, args, { cwd: appDir, stdio: "inherit", env: { ...process.env, ...env } }); |
| 48 | run("bun", ["./scripts/build-sidecar.ts"], { BUN_TARGET: "bun-linux-arm64" }); |
| 49 | run("bunx", ["--bun", "electron-vite", "build"]); |
| 50 | run( |
| 51 | "bunx", |
| 52 | [ |
| 53 | "--bun", |
| 54 | "electron-builder", |
| 55 | "--config", |
| 56 | "electron-builder.e2e.config.ts", |
| 57 | "--linux", |
| 58 | "--arm64", |
| 59 | ], |
| 60 | { CSC_IDENTITY_AUTO_DISCOVERY: "false" }, |
| 61 | ); |
| 62 | }; |
| 63 | |
| 64 | const provisionLinux = async (): Promise<ProvisionedGuest> => { |
| 65 | ensureBundle(); |
no test coverage detected