From 84b914b0448ddaeab0d8dddc271cf0987ef36d0b Mon Sep 17 00:00:00 2001 From: fofolee Date: Mon, 22 Jan 2024 09:29:18 +0800 Subject: [PATCH] =?UTF-8?q?macos=E6=B7=BB=E5=8A=A0=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/preload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/preload.js b/plugin/preload.js index bcbbcc1..05a0357 100644 --- a/plugin/preload.js +++ b/plugin/preload.js @@ -46,7 +46,7 @@ window.multiProcessDetection = () => { // axios.defaults.adapter = require('axios/lib/adapters/http') -if (!utools.isWindows()) process.env.PATH += ':/usr/local/bin:/usr/local/sbin' +if (!utools.isWindows()) process.env.PATH += ':/usr/local/bin:/usr/local/sbin:/opt/homebrew/bin:/opt/homebrew/sbin' const shortCodes = [ @@ -634,7 +634,7 @@ window.runCodeFile = (cmd, option, terminal, callback, realTime=true) => { let stdout = chunks.join(""); let stderr = err_chunks.join(""); callback(stdout, stderr) - }) + }) } return child }