boxcfg

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CfgRoamingPath = "starbox\\boxcfg.json"
)

Variables

This section is empty.

Functions

func WriteCfg

func WriteCfg(property *AppProperty) (err error)

Types

type AppProperty

type AppProperty struct {
	Version       string `json:"app_version"`
	InstalledPath string `json:"installed_path"`
}

需要与 flutter 端保持一致 用于安装程序读取

func ReadCfg

func ReadCfg(cfgPath string) (property *AppProperty, err error)

type L10nMeta

type L10nMeta struct {
	Version   string `json:"version"`
	Content   string `json:"content"`
	PatchCode string `json:"patch_code"`
}

func ReadL10nMeta

func ReadL10nMeta(location string) (meta *L10nMeta, err error)

type PatchMeta

type PatchMeta struct {
	BoxVersion  string `json:"box_version"`
	L10nVersion string `json:"l10n_version"`
	PatchCode   string `json:"patch_code"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL