Documentation
¶
Index ¶
- Constants
- Variables
- func CleanDownload(conf Conf, cleanupPaths []string) error
- func Execute(conf Conf) error
- func FetchEntry(conf Conf, entry AddonEntry) ([]string, error)
- func RemoveNonBlizDirs(conf Conf) error
- func UnpackEntry(conf Conf, entry AddonEntry) error
- type AddonEntry
- type Conf
- type UnpackCandidate
Constants ¶
View Source
const SEP = string(filepath.Separator)
Variables ¶
View Source
var DefaultSkipCleanPrefixes = []string{
"Blizzard_",
}
Functions ¶
func CleanDownload ¶
func FetchEntry ¶
func FetchEntry(conf Conf, entry AddonEntry) ([]string, error)
func RemoveNonBlizDirs ¶
func UnpackEntry ¶
func UnpackEntry(conf Conf, entry AddonEntry) error
Types ¶
type AddonEntry ¶
type AddonEntry struct {
Git string
Zip string
UniqueName string
// these will be unpacked later
UnpackMap map[string]string
UnpackList []string
}
func (*AddonEntry) Hydrate ¶
func (entry *AddonEntry) Hydrate() error
type Conf ¶
type Conf struct {
DownloadPath string
BackupPath string
AddonsPath string
PrecleanBliz bool
SkipCleanPrefixes []string
Addons []AddonEntry `toml:"addons"`
}
Click to show internal directories.
Click to hide internal directories.