Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(launcher): make PrintDeps.exe path configurable (#3311)

Max Schmitte582cc678ca6
diff --git a/src/server/validateDependencies.ts b/src/server/validateDependencies.ts
index d0797a328f..7b072fc215 100644
--- a/src/server/validateDependencies.ts
+++ b/src/server/validateDependencies.ts
@@ -187,7 +187,8 @@ async function executablesOrSharedLibraries(directoryPath: string): Promise<stri
async function missingFileDependenciesWindows(filePath: string): Promise<Array<string>> {
const dirname = path.dirname(filePath);
- const {stdout, code} = await spawnAsync(path.join(__dirname, '../../bin/PrintDeps.exe'), [filePath], {
+ const printDepsWindowsExecutable = process.env.PW_PRINT_DEPS_WINDOWS_EXECUTABLE || path.join(__dirname, '../../bin/PrintDeps.exe');
+ const {stdout, code} = await spawnAsync(printDepsWindowsExecutable, [filePath], {
cwd: dirname,
env: {
...process.env,