mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
This commit adds support for building without UI. If the build tag "litd no_ui" is set the UI will be disabled.
19 lines
494 B
Go
19 lines
494 B
Go
//go:build !litd_no_ui
|
|
// +build !litd_no_ui
|
|
|
|
package terminal
|
|
|
|
import (
|
|
"embed"
|
|
)
|
|
|
|
var (
|
|
// appBuildFS is an in-memory file system that contains all the static
|
|
// HTML/CSS/JS files of the UI. It is compiled into the binary with the
|
|
// go 1.16 embed directive below. Because the path is relative to the
|
|
// root package, all assets will have a path prefix of /app/build/ which
|
|
// we'll strip by giving a sub directory to the HTTP server.
|
|
//
|
|
//go:embed app/build/*
|
|
appBuildFS embed.FS
|
|
)
|