mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-08 11:34:10 +08:00
🐛 修复插件新老npm插件安装不兼容的问题
This commit is contained in:
parent
a3a7dfde98
commit
6ae15b8f37
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rubick",
|
"name": "rubick",
|
||||||
"version": "4.1.0-beta.1",
|
"version": "4.1.0-beta.2",
|
||||||
"author": "muwoo <2424880409@qq.com>",
|
"author": "muwoo <2424880409@qq.com>",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -3,7 +3,7 @@ import path from 'path';
|
|||||||
|
|
||||||
const appPath = app.getPath('userData');
|
const appPath = app.getPath('userData');
|
||||||
|
|
||||||
const PLUGIN_INSTALL_DIR = path.join(appPath, './rubick-plugins');
|
const PLUGIN_INSTALL_DIR = path.join(appPath, './rubick-plugins-new');
|
||||||
|
|
||||||
const DECODE_KEY = {
|
const DECODE_KEY = {
|
||||||
Backspace: 'Backspace',
|
Backspace: 'Backspace',
|
||||||
|
@ -3,6 +3,6 @@ import path from 'path';
|
|||||||
|
|
||||||
const appPath = app.getPath('userData');
|
const appPath = app.getPath('userData');
|
||||||
|
|
||||||
const PLUGIN_INSTALL_DIR = path.join(appPath, './rubick-plugins');
|
const PLUGIN_INSTALL_DIR = path.join(appPath, './rubick-plugins-new');
|
||||||
|
|
||||||
export { PLUGIN_INSTALL_DIR };
|
export { PLUGIN_INSTALL_DIR };
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
import path from 'path';
|
import path from 'path';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import getLocalDataFile from './getLocalDataFile';
|
|
||||||
import { PluginHandler } from '@/core';
|
import { PluginHandler } from '@/core';
|
||||||
import { PLUGIN_INSTALL_DIR as baseDir } from '@/common/constans/main';
|
import { PLUGIN_INSTALL_DIR as baseDir } from '@/common/constans/main';
|
||||||
import API from '@/main/common/api';
|
import API from '@/main/common/api';
|
||||||
|
|
||||||
const configPath = path.join(getLocalDataFile(), './rubick-local-plugin.json');
|
const configPath = path.join(baseDir, './rubick-local-plugin.json');
|
||||||
|
|
||||||
let registry;
|
let registry;
|
||||||
let pluginInstance;
|
let pluginInstance;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user