Documentation
¶
Index ¶
- Constants
- Variables
- func BuildGame() error
- func CleanGame() error
- func ConfigGame() error
- func CreateGame() error
- func DebugBuild(IsFileBuild bool) error
- func InitConfig() error
- func NewBuildCmd() *gcli.Command
- func NewCleanCmd() *gcli.Command
- func NewConfigCmd() *gcli.Command
- func NewCreateCmd() *gcli.Command
- func NewSelfUpdateCmd() *gcli.Command
- func PrintConfig() error
- func PublishWASM() error
- func ReleaseBuild(IsFileBuild bool) error
- func SelfUpdate() error
- type Project
Constants ¶
View Source
const ( Debug = "Debug" Release = "Release" All = "All" )
View Source
const (
VERSION = "1.0"
)
Variables ¶
View Source
var App = gcli.NewApp(func(app *gcli.App) { app.Version = VERSION app.Desc = "A tool for managing & building the ebitengine game." app.On(gcli.EvtAppInit, func(data ...interface{}) bool { return false }) app.Logo.Text = ` ███████╗██████╗ ██╗██████╗ ██╗ ██╗██╗██╗ ██████╗ ███████╗██████╗ ██╔════╝██╔══██╗██║██╔══██╗██║ ██║██║██║ ██╔══██╗██╔════╝██╔══██╗ █████╗ ██████╔╝██║██████╔╝██║ ██║██║██║ ██║ ██║█████╗ ██████╔╝ ██╔══╝ ██╔══██╗██║██╔══██╗██║ ██║██║██║ ██║ ██║██╔══╝ ██╔══██╗ ███████╗██████╔╝██║██████╔╝╚██████╔╝██║███████╗██████╔╝███████╗██║ ██║ ╚══════╝╚═════╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝╚══════╝╚═════╝ ╚══════╝╚═╝ ╚═╝ ` app.Add(SelfUpdateCmd, CleanCmd, BuildCmd, ConfigCmd, CreateCmd) app.Add(builtin.GenAutoComplete()) app.Add(builtin.GenEmojiMap) })
View Source
var BuildCmd = NewBuildCmd()
View Source
var CFF fs.FS
View Source
var CleanCmd = NewCleanCmd()
View Source
var ConfigCmd = NewConfigCmd()
View Source
var CreateCmd = NewCreateCmd()
View Source
var CreateFile embed.FS
View Source
var SelfUpdateCmd = NewSelfUpdateCmd()
View Source
var WASMfile embed.FS
View Source
var WF fs.FS
Functions ¶
func ConfigGame ¶
func ConfigGame() error
func CreateGame ¶
func CreateGame() error
func DebugBuild ¶
func InitConfig ¶
func InitConfig() error
func NewBuildCmd ¶
func NewCleanCmd ¶
func NewConfigCmd ¶
func NewCreateCmd ¶
func NewSelfUpdateCmd ¶
func PrintConfig ¶
func PrintConfig() error
func PublishWASM ¶
func PublishWASM() error
func ReleaseBuild ¶
func SelfUpdate ¶
func SelfUpdate() error
Types ¶
type Project ¶
type Project struct {
IsGomod bool `json:"IsGomod,omitempty"`
IsEbitenv1 bool `json:"IsEbitenv1,omitempty"`
EbiVersion string `json:"EbiVersion,omitempty"`
BuildMode string `json:"BuildMode,omitempty"`
OutputName string `json:"OutputName,omitempty"`
Config string `json:"Config,omitempty"`
Path string `json:"Path,omitempty"`
GameName string `json:"GameName,omitempty"`
GameVersion string `json:"GameVersion,omitempty"`
Iconfile string `json:"Iconfile,omitempty"`
}
var Npj Project
var Pj Project
func UnmarshalProject ¶
Click to show internal directories.
Click to hide internal directories.