This branch snapshots the in-progress desktop workspace so GitHub-hosted Windows and Linux runners can package the same source tree that already passes local verification on macOS. Constraint: Local Apple Silicon Docker/Wine packaging crashes before Windows artifacts are produced Rejected: Publish from the incomplete base repo state | remote typecheck failed because current source additions were missing Confidence: medium Scope-risk: broad Directive: Treat this branch as a build snapshot only; do not merge it without reviewing the unrelated workspace changes it contains Tested: local typecheck, lint, workspace typecheck, unit tests, integration tests, e2e smoke, macOS signed release upload Not-tested: Native Windows/Linux artifacts before this CI run
17 lines
532 B
TypeScript
17 lines
532 B
TypeScript
import { execFileSync } from "node:child_process";
|
|
import { createElectronLaunchEnv } from "./launch";
|
|
|
|
/**
|
|
* Playwright globalSetup: build the Electron app from source before E2E tests.
|
|
* Uses execFileSync and enables shell mode on Windows so the pnpm shim resolves correctly.
|
|
*/
|
|
export default function globalSetup() {
|
|
execFileSync("pnpm", ["electron-vite", "build"], {
|
|
stdio: "inherit",
|
|
cwd: process.cwd(),
|
|
timeout: 120_000,
|
|
env: createElectronLaunchEnv({}),
|
|
shell: process.platform === "win32",
|
|
});
|
|
}
|