From 8fd9f342b883b26ea86ee37e3195a8bafdc8012d Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Fri, 13 Oct 2023 10:40:14 +0800 Subject: [PATCH] :bug: #255 --- package.json | 2 +- src/renderer/plugins-manager/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9530e5d..604f3cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rubick", - "version": "4.0.2", + "version": "4.0.3", "author": "muwoo <2424880409@qq.com>", "private": true, "scripts": { diff --git a/src/renderer/plugins-manager/index.ts b/src/renderer/plugins-manager/index.ts index 840c80b..24749a8 100644 --- a/src/renderer/plugins-manager/index.ts +++ b/src/renderer/plugins-manager/index.ts @@ -5,7 +5,7 @@ import appSearch from '@/core/app-search'; import { PluginHandler } from '@/core'; import path from 'path'; import commonConst from '@/common/utils/commonConst'; -import { execSync } from 'child_process'; +import { exec } from 'child_process'; import searchManager from './search'; import optionsManager from './options'; import { PLUGIN_INSTALL_DIR as baseDir } from '@/common/constans/renderer'; @@ -89,7 +89,7 @@ const createPluginManager = (): any => { } if (plugin.pluginType === 'app') { try { - execSync(plugin.action); + exec(plugin.action); } catch (e) { message.error('启动应用出错,请确保启动应用存在!'); }