mirror of
https://github.com/rubickCenter/rubick
synced 2025-07-19 06:09:41 +08:00
🐛 #255
This commit is contained in:
parent
7db7b9e391
commit
8fd9f342b8
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rubick",
|
"name": "rubick",
|
||||||
"version": "4.0.2",
|
"version": "4.0.3",
|
||||||
"author": "muwoo <2424880409@qq.com>",
|
"author": "muwoo <2424880409@qq.com>",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -5,7 +5,7 @@ import appSearch from '@/core/app-search';
|
|||||||
import { PluginHandler } from '@/core';
|
import { PluginHandler } from '@/core';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import commonConst from '@/common/utils/commonConst';
|
import commonConst from '@/common/utils/commonConst';
|
||||||
import { execSync } from 'child_process';
|
import { exec } from 'child_process';
|
||||||
import searchManager from './search';
|
import searchManager from './search';
|
||||||
import optionsManager from './options';
|
import optionsManager from './options';
|
||||||
import { PLUGIN_INSTALL_DIR as baseDir } from '@/common/constans/renderer';
|
import { PLUGIN_INSTALL_DIR as baseDir } from '@/common/constans/renderer';
|
||||||
@ -89,7 +89,7 @@ const createPluginManager = (): any => {
|
|||||||
}
|
}
|
||||||
if (plugin.pluginType === 'app') {
|
if (plugin.pluginType === 'app') {
|
||||||
try {
|
try {
|
||||||
execSync(plugin.action);
|
exec(plugin.action);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
message.error('启动应用出错,请确保启动应用存在!');
|
message.error('启动应用出错,请确保启动应用存在!');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user