Documentation ¶
Index ¶
- Variables
- func CheckReleaseWithGitee(giteeRepoAddress string) (isUpdateRequired bool, release *gitee.GiteeRelease, err error)
- func ContinueSelfUpdate() error
- func SelfUpdateWithGitee(asset *gitee.GiteeReleaseAssets, 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 (
FUpdateMode = flag.Bool("updateMode", false, "")
)
View Source
var (
// 用于检测更新
GitVersion = ""
)
Functions ¶
func CheckReleaseWithGitee ¶ added in v0.0.9
func CheckReleaseWithGitee(giteeRepoAddress string) (isUpdateRequired bool, release *gitee.GiteeRelease, err error)
func SelfUpdateWithGitee ¶
func SelfUpdateWithGitee(asset *gitee.GiteeReleaseAssets, wdPath, tempDirName, updateDelay string, extArgs []string) (bool, error)
仅适用于单个可执行文件的更新 并且下载完后应当及时退出(在updateDelay期限内)
SelfUpdateWithGitee(wdPath, "starbox_l10napp*", assets, "3s") 需要接收者接受参数:-updateMode -updateTarget -updateDelay 3s
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.