mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-26 20:54:18 +08:00
✨ 支持插件开发者模式
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
const APP_FINDER_PATH = process.platform === 'darwin' ? ['/System/Applications', '/Applications', '/System/Library/PreferencePanes'] : []
|
||||
|
||||
export {
|
||||
APP_FINDER_PATH
|
||||
}
|
||||
8
src/common/constans/main.ts
Normal file
8
src/common/constans/main.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { app } from "electron";
|
||||
import path from "path";
|
||||
|
||||
const appPath = app.getPath("cache");
|
||||
|
||||
const PLUGIN_INSTALL_DIR = path.join(appPath, "./rubick-plugins");
|
||||
|
||||
export { PLUGIN_INSTALL_DIR };
|
||||
8
src/common/constans/renderer.ts
Normal file
8
src/common/constans/renderer.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { remote } from "electron";
|
||||
import path from "path";
|
||||
|
||||
const appPath = remote.app.getPath("cache");
|
||||
|
||||
const PLUGIN_INSTALL_DIR = path.join(appPath, "./rubick-plugins");
|
||||
|
||||
export { PLUGIN_INSTALL_DIR };
|
||||
Reference in New Issue
Block a user