mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-18 00:34:19 +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;
|
||||
|
||||
Reference in New Issue
Block a user