From 6ae15b8f37e753d6d384e005ef39ea83c1992be7 Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Fri, 27 Oct 2023 10:17:21 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=96=B0=E8=80=81npm=E6=8F=92=E4=BB=B6=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E4=B8=8D=E5=85=BC=E5=AE=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/common/constans/main.ts | 2 +- src/common/constans/renderer.ts | 2 +- src/common/utils/localPlugin.ts | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 93eff250..913364e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rubick", - "version": "4.1.0-beta.1", + "version": "4.1.0-beta.2", "author": "muwoo <2424880409@qq.com>", "private": true, "scripts": { diff --git a/src/common/constans/main.ts b/src/common/constans/main.ts index 9526cd0e..447acc4d 100644 --- a/src/common/constans/main.ts +++ b/src/common/constans/main.ts @@ -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', diff --git a/src/common/constans/renderer.ts b/src/common/constans/renderer.ts index 58d73356..29f70596 100644 --- a/src/common/constans/renderer.ts +++ b/src/common/constans/renderer.ts @@ -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 }; diff --git a/src/common/utils/localPlugin.ts b/src/common/utils/localPlugin.ts index 7378bce4..0b309306 100644 --- a/src/common/utils/localPlugin.ts +++ b/src/common/utils/localPlugin.ts @@ -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;