-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #500 from sputn1ck/no_ui
multi: add support for building without UI
- Loading branch information
Showing
5 changed files
with
42 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//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 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//go:build litd_no_ui | ||
// +build litd_no_ui | ||
|
||
package terminal | ||
|
||
import "embed" | ||
|
||
var ( | ||
appBuildFS embed.FS | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters