🚑 默认不编译webui

This commit is contained in:
源文雨
2023-03-09 13:55:15 +08:00
parent fb2718b495
commit 09a3e807c9
4 changed files with 19 additions and 166 deletions

10
main.go
View File

@@ -192,7 +192,7 @@ import (
"github.com/wdvxdr1123/ZeroBot/driver"
"github.com/wdvxdr1123/ZeroBot/message"
webctrl "github.com/FloatTech/zbputils/control/web"
// webctrl "github.com/FloatTech/zbputils/control/web"
"github.com/FloatTech/ZeroBot-Plugin/kanban/banner"
// -----------------------以上为内置依赖,勿动------------------------ //
@@ -212,7 +212,7 @@ func init() {
d := flag.Bool("d", false, "Enable debug level log and higher.")
w := flag.Bool("w", false, "Enable warning level log and higher.")
h := flag.Bool("h", false, "Display this help.")
g := flag.String("g", "127.0.0.1:3000", "Set webui url.")
// g := flag.String("g", "127.0.0.1:3000", "Set webui url.")
// 直接写死 AccessToken 时,请更改下面第二个参数
token := flag.String("t", "", "Set AccessToken of WSClient.")
// 直接写死 URL 时,请更改下面第二个参数
@@ -249,9 +249,6 @@ func init() {
sus = append(sus, i)
}
// 启用 gui
go webctrl.RunGui(*g)
// 通过代码写死的方式添加主人账号
// sus = append(sus, 12345678)
// sus = append(sus, 87654321)
@@ -301,6 +298,9 @@ func init() {
logrus.Infoln("[main] 配置文件已保存到", *save)
os.Exit(0)
}
// 启用 webui
// go webctrl.RunGui(*g)
}
func main() {