Versions in this module Expand all Collapse all v0 v0.3.2 Jun 18, 2025 v0.3.1 Jun 18, 2025 Changes in this version + const AOGVersion + var AppKey = "aog" + var AppSecret = "39ee3ba7b2003ee239d700b53da8dfa4c29f09ee5a460b9641a8bc9d89eac99a" + var UpdateCheckInterval = 60 * 60 * time.Second + var UpdateCheckUrlBase = "https://api-aipc-test.dcclouds.com" + func CleanOldVersionFile() error + func DownloadNewVersion(ctx context.Context, updateResponse UpdateResponse) error + func StartCheckUpdate(ctx context.Context) + type UpdateAuthRequest struct + AppKey string + ClientType string + NonceStr string + Sign string + Timestamp int64 + type UpdateAuthResponse struct + Code string + ExpireIn int + IssuedAt int + TokenType string + func UpdaterAuth() (UpdateAuthResponse, error) + type UpdateRequest struct + Arch string + Platform string + type UpdateResponse struct + ReleaseNotes string + UpdateURL string + UpdateVersion string + func IsNewVersionAvailable(ctx context.Context) (bool, UpdateResponse)