Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvisioner ¶
func NewProvisioner(disembedFunc func(string) ([]byte, error)) astilectron.Provisioner
NewProvisioner builds the proper disembedder provisioner
Types ¶
type Bundler ¶
Bundler represents an object capable of bundling an Astilectron app
func New ¶
func New(c *Configuration) (b *Bundler, err error)
New builds a new bundler based on a configuration
func (*Bundler) ClearCache ¶
ClearCache clears the bundler cache
type Configuration ¶
type Configuration struct {
// The app name as it should be displayed everywhere
// It's also set as an ldflag and therefore accessible in a global var main.AppName
AppName string `json:"app_name"`
// The bundler cache the vendor content in this path.
// Best is to leave it empty.
CachePath string `json:"cache_path"`
// List of environments the bundling should be done upon.
// An environment is a combination of OS and ARCH
Environments []ConfigurationEnvironment `json:"environments"`
// Paths to icons
IconPathDarwin string `json:"icon_path_darwin"` // .icns
IconPathLinux string `json:"icon_path_linux"`
IconPathWindows string `json:"icon_path_windows"` // .ico
// The path of the project.
// Best is to leave it empty and execute the bundler while in the project folder
InputPath string `json:"input_path"`
// The path of the go binary
// Best is to leave it empty. Default value is "go"
GoBinaryPath string `json:"go_binary_path"`
// The path where the files will be written
OutputPath string `json:"output_path"`
//!\\ DEBUG ONLY
AstilectronPath string `json:"astilectron_path"` // when making changes to astilectron
}
Configuration represents the bundle configuration
type ConfigurationEnvironment ¶
ConfigurationEnvironment represents the bundle configuration environment
Click to show internal directories.
Click to hide internal directories.