Documentation ¶
Index ¶
- Variables
- func CheckReleaseWithGitee(giteeRepoAddress string) (isUpdateRequired bool, err error)
- func ContinueSelfUpdate() error
- func SelfUpdateWithGitee(wdPath, tempDirName, giteeRepoAddress, updateDelay string, extArgs []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 SelfUpdateWithGitee ¶
func SelfUpdateWithGitee(wdPath, tempDirName, giteeRepoAddress, updateDelay string, extArgs []string) (bool, error)
仅适用于单个可执行文件的更新 并且下载完后应当及时退出(在updateDelay期限内)
SelfUpdateWithGitee(wdPath, "starbox_l10napp*", "StarCitizen_CN", "sc_eac_passer", "3s") 需要接收者接受参数:-updateMode -updateTarget -updateDelay 3s
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.