mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-11-28 21:20:25 +08:00
29 lines
472 B
Cheetah
29 lines
472 B
Cheetah
package main
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
"os"
|
|
|
|
"github.com/wavetermdev/waveterm/tsunami/app"
|
|
)
|
|
|
|
//go:embed dist/**
|
|
var distFS embed.FS
|
|
|
|
//go:embed static/**
|
|
var staticFS embed.FS
|
|
|
|
func main() {
|
|
subDistFS, _ := fs.Sub(distFS, "dist")
|
|
subStaticFS, _ := fs.Sub(staticFS, "static")
|
|
app.RegisterEmbeds(subDistFS, subStaticFS, nil)
|
|
app.SetAppMeta(AppMeta)
|
|
|
|
if len(os.Args) == 2 && os.Args[1] == "--manifest" {
|
|
app.PrintAppManifest()
|
|
os.Exit(0)
|
|
}
|
|
|
|
app.RunMain()
|
|
}
|