Documentation
¶
Index ¶
- Variables
- func CheckAndCrateOsTemp() error
- func CheckReleaseWithGitee(giteeRepoAddress string, mirrors []string) (isUpdateRequired bool, release *gitee.Release, err error)
- func ContinueSelfUpdate() error
- func Destroy()
- func SelfUpdateWithGitee(asset *gitee.ReleaseAssets, wdPath, tempDirName, updateDelay string, ...) (bool, error)
- func WriteEmbedEntrysTo(embedDir *embed.FS, f fs.DirEntry, rootPath string, parentNode string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 用于检测更新 GitVersion = "" TempDir = filepath.Join(os.TempDir(), "starbox") )
View Source
var (
FUpdateMode = flag.Bool("updateMode", false, "")
)
Functions ¶
func CheckAndCrateOsTemp ¶ added in v0.0.14
func CheckAndCrateOsTemp() error
func CheckReleaseWithGitee ¶ added in v0.0.9
func SelfUpdateWithGitee ¶
func SelfUpdateWithGitee(asset *gitee.ReleaseAssets, wdPath, tempDirName, updateDelay string, cb gitee.DownloadCB) (bool, error)
仅适用于单个可执行文件的更新 并且下载完后应当及时退出(在updateDelay期限内)
SelfUpdateWithGitee(wdPath, "name*", assets, "3s") 需要接收者接受参数:-updateMode -updateTarget -updateDelay 3s
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.