mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-26 04:19:27 +08:00
feat: souport windows
This commit is contained in:
@@ -3,6 +3,10 @@ import path from "path";
|
||||
import commonConst from "../../common/utils/commonConst";
|
||||
import { PLUGIN_INSTALL_DIR as baseDir } from "@/common/constans/main";
|
||||
|
||||
const getRelativePath = (indexPath) => {
|
||||
return commonConst.windows() ? indexPath.replace("file://", "") : indexPath.replace("file:", "");
|
||||
}
|
||||
|
||||
const getPreloadPath = (plugin, pluginIndexPath) => {
|
||||
const { name, preload, tplPath, indexPath } = plugin;
|
||||
if (!preload) return;
|
||||
|
||||
@@ -31,6 +31,7 @@ const API: any = {
|
||||
currentPlugin: API.currentPlugin,
|
||||
})})`
|
||||
);
|
||||
window.show();
|
||||
},
|
||||
removePlugin(e, window) {
|
||||
API.currentPlugin = null;
|
||||
|
||||
Reference in New Issue
Block a user