Documentation
¶
Index ¶
- Constants
- func GenerateDarwinPlist(cfg *Config, outDir string) error
- func GenerateGoreleaser(cfg *Config, outDir string) error
- func GenerateIcons(cfg *Config, baseDir, outDir string) error
- func GenerateLinuxDesktop(cfg *Config, outDir string) error
- func GenerateWinres(cfg *Config, baseDir, outDir string) error
- func ResolveConfigPath(dir string) (path string, legacy bool, err error)
- type AppSection
- type BinarySection
- type BuildSection
- type Config
- type ConfigFile
- type DMGSection
- type DesktopSection
- type ElectronSection
- type IOSSection
- type LinuxSection
- type MacOSSection
- type Position
- type ReleaseSection
- type UpdateSection
- type UpdateSourceConfig
- type WindowsSection
Constants ¶
View Source
const ( ConfigFileName = "velo.json" LegacyConfigFileName = "app-config.json" )
Variables ¶
This section is empty.
Functions ¶
func GenerateDarwinPlist ¶
func GenerateGoreleaser ¶
func GenerateIcons ¶
func GenerateLinuxDesktop ¶
func GenerateWinres ¶
Types ¶
type AppSection ¶
type BinarySection ¶
type BinarySection struct {
ProjectName string `json:"project_name"`
}
type BuildSection ¶
type BuildSection struct {
ConfigFiles []ConfigFile `json:"config_files"`
ExcludeFiles []string `json:"exclude_files"`
}
type Config ¶
type Config struct {
App AppSection `json:"app"`
Binary BinarySection `json:"binary"`
Platforms struct {
MacOS MacOSSection `json:"macos"`
Windows WindowsSection `json:"windows"`
Linux LinuxSection `json:"linux"`
IOS IOSSection `json:"ios"`
} `json:"platforms"`
Build BuildSection `json:"build"`
Desktop DesktopSection `json:"desktop"`
Release ReleaseSection `json:"release"`
Update UpdateSection `json:"update"`
}
func (*Config) DisplayName ¶
func (*Config) ProjectName ¶
type ConfigFile ¶
type DMGSection ¶
type DMGSection struct {
WindowSize struct {
Width int `json:"width"`
Height int `json:"height"`
} `json:"window_size"`
IconSize int `json:"icon_size"`
Positions struct {
App Position `json:"app"`
Applications Position `json:"applications"`
} `json:"positions"`
Background struct {
AutoGenerate bool `json:"auto_generate"`
CustomPath string `json:"custom_path"`
} `json:"background"`
}
type DesktopSection ¶
type DesktopSection struct {
Engine string `json:"engine"`
Electron ElectronSection `json:"electron"`
}
type ElectronSection ¶
type IOSSection ¶
type LinuxSection ¶
type MacOSSection ¶
type MacOSSection struct {
BundleID string `json:"bundle_id"`
IconFile string `json:"icon_file"`
MinSystemVersion string `json:"min_system_version"`
Category string `json:"category"`
Entitlements map[string]bool `json:"entitlements"`
APSEnvironment string `json:"aps_environment"`
DMG DMGSection `json:"dmg"`
}
type ReleaseSection ¶
type ReleaseSection struct {
}
type UpdateSection ¶
type UpdateSection struct {
Enabled bool `json:"enabled"`
CheckFrequency string `json:"check_frequency"`
Channel string `json:"channel"`
AutoDownload bool `json:"auto_download"`
Timeout int `json:"timeout"`
Sources []UpdateSourceConfig `json:"sources"`
}
func (*UpdateSection) ToUpdaterConfig ¶
func (u *UpdateSection) ToUpdaterConfig() *types.UpdateConfig
type UpdateSourceConfig ¶
type UpdateSourceConfig struct {
Type string `json:"type"`
Priority int `json:"priority"`
Enabled bool `json:"enabled"`
NeedCheckChecksum bool `json:"need_check_checksum"`
GitHubRepo string `json:"github_repo,omitempty"`
GitHubToken string `json:"github_token,omitempty"`
ManifestURL string `json:"manifest_url,omitempty"`
SelfURL string `json:"self_url,omitempty"`
}
type WindowsSection ¶
type WindowsSection struct {
CompanyName string `json:"company_name"`
ProductName string `json:"product_name"`
FileDescription string `json:"file_description"`
InternalName string `json:"internal_name"`
OriginalFilename string `json:"original_filename"`
IconFiles struct {
PNG string `json:"png"`
PNG16 string `json:"png16"`
} `json:"icon_files"`
}
Click to show internal directories.
Click to hide internal directories.