This commit is contained in:
josc146 2023-10-25 22:40:39 +08:00
parent 30e1c3171e
commit d7ba88953d
2 changed files with 7 additions and 6 deletions

Binary file not shown.

View File

@ -43,7 +43,7 @@ var assets embed.FS
//go:embed all:py310/Lib/site-packages/cyac //go:embed all:py310/Lib/site-packages/cyac
var cyac embed.FS var cyac embed.FS
//go:embed all:py310/Lib/site-packages/cyac-1.7.dist-info //go:embed all:py310/Lib/site-packages/cyac-1.9.dist-info
var cyacInfo embed.FS var cyacInfo embed.FS
//go:embed backend-python //go:embed backend-python
@ -66,6 +66,7 @@ var components embed.FS
func main() { func main() {
if buildInfo, ok := debug.ReadBuildInfo(); !ok || strings.Contains(buildInfo.String(), "-ldflags") { if buildInfo, ok := debug.ReadBuildInfo(); !ok || strings.Contains(buildInfo.String(), "-ldflags") {
os.RemoveAll("./py310/Lib/site-packages/cyac-1.7.dist-info")
backend.CopyEmbed(cyac) backend.CopyEmbed(cyac)
backend.CopyEmbed(cyacInfo) backend.CopyEmbed(cyacInfo)
backend.CopyEmbed(py) backend.CopyEmbed(py)