mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 21:01:40 +08:00
🎨 Improve boot
This commit is contained in:
parent
dfb5be0679
commit
200499aad4
@ -389,6 +389,9 @@ func InitConf() {
|
||||
}
|
||||
|
||||
util.SetNetworkProxy(Conf.System.NetworkProxy.String())
|
||||
|
||||
go util.InitPandoc()
|
||||
go util.InitTesseract()
|
||||
}
|
||||
|
||||
func initLang() {
|
||||
|
@ -82,7 +82,7 @@ var (
|
||||
PandocBinPath string // Pandoc 可执行文件路径
|
||||
)
|
||||
|
||||
func initPandoc() {
|
||||
func InitPandoc() {
|
||||
if ContainerStd != Container {
|
||||
return
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ func Tesseract(imgAbsPath string) string {
|
||||
return ret
|
||||
}
|
||||
|
||||
func initTesseract() {
|
||||
func InitTesseract() {
|
||||
ver := getTesseractVer()
|
||||
if "" == ver {
|
||||
return
|
||||
|
@ -110,8 +110,6 @@ func Boot() {
|
||||
}
|
||||
|
||||
initPathDir()
|
||||
go initPandoc()
|
||||
go initTesseract()
|
||||
|
||||
bootBanner := figure.NewColorFigure("SiYuan", "isometric3", "green", true)
|
||||
logging.LogInfof("\n" + bootBanner.String())
|
||||
|
Loading…
Reference in New Issue
Block a user