🎨 Improve boot

This commit is contained in:
Daniel 2023-06-16 09:18:44 +08:00
parent dfb5be0679
commit 200499aad4
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017
4 changed files with 5 additions and 4 deletions

View File

@ -389,6 +389,9 @@ func InitConf() {
}
util.SetNetworkProxy(Conf.System.NetworkProxy.String())
go util.InitPandoc()
go util.InitTesseract()
}
func initLang() {

View File

@ -82,7 +82,7 @@ var (
PandocBinPath string // Pandoc 可执行文件路径
)
func initPandoc() {
func InitPandoc() {
if ContainerStd != Container {
return
}

View File

@ -129,7 +129,7 @@ func Tesseract(imgAbsPath string) string {
return ret
}
func initTesseract() {
func InitTesseract() {
ver := getTesseractVer()
if "" == ver {
return

View File

@ -110,8 +110,6 @@ func Boot() {
}
initPathDir()
go initPandoc()
go initTesseract()
bootBanner := figure.NewColorFigure("SiYuan", "isometric3", "green", true)
logging.LogInfof("\n" + bootBanner.String())