embed and unpack gloomi in a decent way

This commit is contained in:
Zoe
2025-05-19 15:50:53 +00:00
parent a8ec911f74
commit e65a30f0e4
7 changed files with 34 additions and 42 deletions

15
embed_gloomi.go Normal file
View File

@@ -0,0 +1,15 @@
//go:build gloomi
// +build gloomi
package main
import "embed"
//go:embed schema.sql dist/host dist/gloomi.so
var embeddedAssets embed.FS
var defaultConfig = []byte(`
[[plugins]]
file = "gloomi.so"
domains = ["localhost"]
`)