Smail/backend/cmd/smail/bundle.go
smail d7837de561
Some checks are pending
Security Checks / security (push) Waiting to run
保存模拟部署迁移与最新构建校验阶段成果
2026-09-08 18:33:21 +08:00

22 lines
272 B
Go

//go:build bundled
package main
import (
"embed"
"io/fs"
"git.pcux.cn/xuans/Smail/hooks"
)
//go:embed bundled/*
var pluginFiles embed.FS
func init() {
files, err := fs.Sub(pluginFiles, "bundled")
if err != nil {
panic(err)
}
hooks.SetBundledPlugins(files)
}