From caacf8e1074a474cdaf4c0bb72b322b4b06da1e4 Mon Sep 17 00:00:00 2001 From: Mark Sujew Date: Mon, 29 Apr 2024 11:26:02 +0000 Subject: [PATCH] Fix unix terminals for bundled apps --- .../native-webpack-plugin/src/native-webpack-plugin.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev-packages/native-webpack-plugin/src/native-webpack-plugin.ts b/dev-packages/native-webpack-plugin/src/native-webpack-plugin.ts index 7ff3c13e20fcc..eafa1a01ac386 100644 --- a/dev-packages/native-webpack-plugin/src/native-webpack-plugin.ts +++ b/dev-packages/native-webpack-plugin/src/native-webpack-plugin.ts @@ -124,6 +124,10 @@ export class NativeWebpackPlugin { const dllFile = require.resolve('node-pty/build/Release/winpty.dll'); const targetDllFile = path.join(targetDirectory, 'winpty.dll'); await this.copyExecutable(dllFile, targetDllFile); + } else { + const sourceFile = require.resolve('node-pty/build/Release/spawn-helper'); + const targetFile = path.join(targetDirectory, 'spawn-helper'); + await this.copyExecutable(sourceFile, targetFile); } }