Skip to content

Commit

Permalink
🐛 #255
Browse files Browse the repository at this point in the history
  • Loading branch information
muwoo committed Oct 13, 2023
1 parent 7db7b9e commit 8fd9f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rubick",
"version": "4.0.2",
"version": "4.0.3",
"author": "muwoo <2424880409@qq.com>",
"private": true,
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/plugins-manager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -89,7 +89,7 @@ const createPluginManager = (): any => {
}
if (plugin.pluginType === 'app') {
try {
execSync(plugin.action);
exec(plugin.action);
} catch (e) {
message.error('启动应用出错,请确保启动应用存在!');
}
Expand Down

0 comments on commit 8fd9f34

Please sign in to comment.