Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdBindata = &command.Command{
UsageLine: "bindata",
Short: "Use bindata to embed static resources",
Long: `
If the go version is less than 1.16, you can use bindata to embed static resources
Example golang code:
package main
import (
"fmt"
// other imports...
)
//go:generate energy bindata --fs --o=assets/assets.go --pkg=assets --paths=./assets
func main() {
// your code here...
}
Bash: Run the following command in the same directory
go generate
`,
}
View Source
var CmdBuild = &command.Command{
UsageLine: "build -p [path] -u [upx] --upxFlag --args --libemfs",
Short: "build energy project",
Long: `
Building energy project
-p Project path, default current path. Can be configured in energy.json
-u Set this parameter and install upx. Use upx to compress the execution file.
--upxFlag: Upx command line parameters
--args Set go build [args]
--libemfs Built in dynamic libraries to executable files, Copy liblcl to the built-in directory every compilation
`,
}
View Source
var CmdEnv = &command.Command{
UsageLine: "env",
Short: "Get ENERGY Framework Development Environment",
Long: ``,
}
View Source
var CmdGen = &command.Command{
UsageLine: "gen --icon --syso",
Short: "generate icons or syso commands",
Long: `
generate icons or syso commands
--icon Used to generate application icons, can convert .png to .ico.
Generate pixel size of: [256, 128, 64, 48, 32, 16]
-p --iconFilePath: Icon source file directory
-o --outPath: Save directory after icon generation. if empty, the current directory
--syso Generate the application program xxx.syso, and when compiling the execution file
the execution file information can be written into it
-p --iconFilePath: Icon source file directory
-o --outPath: Save directory after icon generation. if empty, the current directory
-n --name: Generate the syso file name and move it to the application name
-m --manifestFilePath: Manifest file directory. if empty, will use the default template
-a --arch: amd64 or i386 or arm64. if empty, the current system architecture
-i --infoFilePath: Generate directory for syso information data files in JSON format
`,
}
View Source
var CmdInit = &command.Command{
UsageLine: "init -n [name]",
Short: "Initialized energy project",
Long: `
Initialize energy golang project
-n Initialized project name
`,
}
View Source
var CmdInstall = &command.Command{
UsageLine: "install -p [path] -v [version] -n [name] -d [download] --os --arch --cef",
Short: "Automatic installation and configuration of the energy framework complete development environment",
Long: `
-p Installation directory Default current directory
-v Specifying a version number,Default latest
-n Name of the framework directory after installation, Default EnergyFramework
-d Download Source, 0:gitee or 1:github, Default empty
--os Specify install OS: [windows, linux, darwin], default current system: os
--arch Specify install ARCH: [386, amd64, arm64], Default current system: architecture
--cef Install system supports CEF version, provide 4 options, default empty
default : Automatically select support for the latest version based on the current system.
109 : CEF 109.1.18 is the last one to support Windows 7, windows version < 10.
106 : CEF 106.1.1 is the last default support for GTK2 in Linux.
87 : CEF 87.1.14 is the last one to support Flash.
49 : CEF 49.0.2623 is the last on to support Windows XP.
Auto installation and configuration of the energy framework complete development environment.
Installation package is downloaded over the network during the installation process.
`,
}
View Source
var CmdPackage = &command.Command{
UsageLine: "package -p [path] -c [clean]",
Short: "Making an Installation Package",
Long: `
-p Project path, default current path. Can be configured in energy.json
-c Clear configuration and regenerate the default configuration
Making an Installation Package
Windows:
Creating an installation program using NSIS for Windows
Linux:
Creating deb installation packages using dpkg
MacOS:
Generate app package for energy
--pkg Switch, generate pkg package
`,
}
View Source
var CmdSetenv = &command.Command{
UsageLine: "setenv -p [path]",
Short: "Set energy framework development environment",
Long: `
-p Set the Framework pointed to by the ENERGY_HOME development environment variable
`,
}
View Source
var CmdUpgrade = &command.Command{
UsageLine: "upg",
Short: "check and upgrade to the latest version library",
Long: `
check and upgrade to the latest version library
`,
}
View Source
var CmdVersion = &command.Command{
UsageLine: "package -a [all]",
Short: "Get version list",
Long: `
-a show all details
`,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.