Skip to content

Commit

Permalink
feat: disable reclient when ELECTRON_DEPOT_TOOLS_WIN_TOOLCHAIN=0 on w…
Browse files Browse the repository at this point in the history
…indows. (#676)
  • Loading branch information
reitowo authored Nov 10, 2024
1 parent d5dc574 commit 3d65cb5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/e-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ program

reclient.usingRemote = options.remote;

const winToolchainOverride = process.env.ELECTRON_DEPOT_TOOLS_WIN_TOOLCHAIN;
if (os.platform() === 'win32' && winToolchainOverride === '0') {
config.reclient = 'none';
reclient.usingRemote = false;
console.warn(
`${color.warn} Build without remote execution when defined ${color.config('ELECTRON_DEPOT_TOOLS_WIN_TOOLCHAIN=0')} in environment variables.`,
);
}

reclient.downloadAndPrepare(config);

if (process.platform === 'darwin') {
Expand Down

0 comments on commit 3d65cb5

Please sign in to comment.