MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / ensureBundle

Function ensureBundle

e2e/setup/desktop-linux.globalsetup.ts:44–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 * electron-builder's `dir` target assembles the unpacked app on macOS without
43 * Docker. */
44const 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
64const provisionLinux = async (): Promise<ProvisionedGuest> => {
65 ensureBundle();

Callers 1

provisionLinuxFunction · 0.70

Calls 2

hostBundleFunction · 0.70
runFunction · 0.70

Tested by

no test coverage detected