Skip to content

Commit

Permalink
🐛 修复插件新老npm插件安装不兼容的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
muwoo committed Oct 27, 2023
1 parent a3a7dfd commit 6ae15b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 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.1.0-beta.1",
"version": "4.1.0-beta.2",
"author": "muwoo <[email protected]>",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/common/constans/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path';

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 = {
Backspace: 'Backspace',
Expand Down
2 changes: 1 addition & 1 deletion src/common/constans/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import path from 'path';

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 };
3 changes: 1 addition & 2 deletions src/common/utils/localPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import path from 'path';
import fs from 'fs';
import getLocalDataFile from './getLocalDataFile';
import { PluginHandler } from '@/core';
import { PLUGIN_INSTALL_DIR as baseDir } from '@/common/constans/main';
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 pluginInstance;
Expand Down

0 comments on commit 6ae15b8

Please sign in to comment.