| Josh Bleecher Snyder | 1c18ec9 | 2025-07-08 10:55:54 -0700 | [diff] [blame] | 1 | //go:build innie |
| 2 | |||||
| 3 | package embedded | ||||
| 4 | |||||
| 5 | import ( | ||||
| 6 | "embed" | ||||
| 7 | "io/fs" | ||||
| 8 | ) | ||||
| 9 | |||||
| 10 | //go:embed webui-dist | ||||
| 11 | var webUIAssets embed.FS | ||||
| 12 | |||||
| 13 | // LinuxBinary returns the embedded linux binary. | ||||
| 14 | func LinuxBinary() []byte { | ||||
| 15 | return nil | ||||
| 16 | } | ||||
| 17 | |||||
| 18 | // WebUIFS returns the embedded webui filesystem for direct serving | ||||
| 19 | func WebUIFS() fs.FS { | ||||
| 20 | // TODO: can we avoid this fs.Sub somehow? | ||||
| 21 | webuiFS, _ := fs.Sub(webUIAssets, "webui-dist") | ||||
| 22 | return webuiFS | ||||
| 23 | } | ||||