-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguoba.support.js
33 lines (31 loc) · 1.25 KB
/
guoba.support.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import path from "path";
import lodash from 'lodash'
import cfg from './model/Config.js'
import Config from "./model/Config.js";
const _path = process.cwd() + "/plugins/xiuxian-emulator-plugin";
//定义一个版本信息的常量,获取默认文件配置文件信息
const versionData = Config.getdefSet("version", "version");
/**
* 支持锅巴配置
*/
export function supportGuoba() {
return {
pluginInfo: {
name: "xiuxian-emulator-plugin",
title: "修仙模拟器",
author: "@柠檬冲水 @DD斩首",
authorLink: "https://gitee.com/hutao222",
link: "https://gitee.com/hutao222/DDZS-XIUXIAN-V1.2.4",
isV3: true,
isV2: false,
description: `绝云间修仙模拟器${versionData[0].version}「${versionData[0].name}」]`,
// 显示图标,此为个性化配置
// 图标可在 https://icon-sets.iconify.design 这里进行搜索
icon: "mdi:stove",
// 图标颜色,例:#FF0000 或 rgb(255, 0, 0)
iconColor: "#d19f56",
// 如果想要显示成图片,也可以填写图标路径(绝对路径)
iconPath: path.join(_path, "resources/img/xiuxian.png"),
}
}
}