diff --git a/src/Drivers/Electron/Traits/ExecuteCommand.php b/src/Drivers/Electron/Traits/ExecuteCommand.php index 1d72384a..3e1d50b1 100644 --- a/src/Drivers/Electron/Traits/ExecuteCommand.php +++ b/src/Drivers/Electron/Traits/ExecuteCommand.php @@ -5,6 +5,7 @@ use Illuminate\Support\Facades\Process; use Native\Desktop\Builder\Builder; use Native\Desktop\Drivers\Electron\ElectronServiceProvider; +use Symfony\Component\Process\Process as SymfonyProcess; use function Laravel\Prompts\error; @@ -40,7 +41,7 @@ protected function executeCommand( $result = Process::path(ElectronServiceProvider::electronPath()) ->env($envs[$type]) ->forever() - ->tty(! $withoutInteraction && PHP_OS_FAMILY != 'Windows') + ->tty(! $withoutInteraction && SymfonyProcess::isTtySupported() && PHP_OS_FAMILY != 'Windows') ->run($command, function (string $type, string $output) { if ($this->getOutput()->isVerbose()) { echo $output;