build(release): add tag-based release automation and version metadata

This commit is contained in:
alphago9
2026-03-30 01:37:08 +08:00
parent fc8d58024e
commit dea81caa61
11 changed files with 312 additions and 69 deletions
+12 -11
View File
@@ -1,7 +1,8 @@
package bootstrap
import (
"github.com/assimon/luuu/command"
"sync"
"github.com/assimon/luuu/config"
"github.com/assimon/luuu/model/dao"
"github.com/assimon/luuu/mq"
@@ -10,15 +11,15 @@ import (
"github.com/assimon/luuu/util/log"
)
func Start() {
config.Init()
log.Init()
dao.Init()
mq.Start()
go telegram.BotStart()
go task.Start()
var initOnce sync.Once
if err := command.Execute(); err != nil {
panic(err)
}
func InitApp() {
initOnce.Do(func() {
config.Init()
log.Init()
dao.Init()
mq.Start()
go telegram.BotStart()
go task.Start()
})
}