Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Config Config
Webview webview.Webview
ProjectDir string
DevMode bool
DevURL string // set by dev server to load URL instead of file
}
App is the main LightShell application.
type BuildConfig ¶
type Config ¶
type Config struct {
Name string `json:"name"`
Version string `json:"version"`
Entry string `json:"entry"`
Window WindowConfig `json:"window"`
Tray bool `json:"tray"`
Build BuildConfig `json:"build"`
Permissions []string `json:"permissions"`
DevCommand string `json:"devCommand,omitempty"`
BuildCommand string `json:"buildCommand,omitempty"`
}
Config represents the lightshell.json configuration.
func LoadConfig ¶
LoadConfig reads and parses lightshell.json from the given directory.
Click to show internal directories.
Click to hide internal directories.