embed dependencies

This commit is contained in:
josc146
2023-05-29 09:39:16 +08:00
parent d66c30698c
commit 6fc5a335fb
8 changed files with 52 additions and 89 deletions

13
main.go
View File

@@ -13,7 +13,20 @@ import (
//go:embed all:frontend/dist
var assets embed.FS
//go:embed all:py310/Lib/site-packages/cyac
var cyac embed.FS
//go:embed all:py310/Lib/site-packages/cyac-1.7.dist-info
var cyacInfo embed.FS
//go:embed backend-python
var py embed.FS
func main() {
go backend.CopyEmbed(cyac)
go backend.CopyEmbed(cyacInfo)
go backend.CopyEmbed(py)
// Create an instance of the app structure
app := backend.NewApp()