示例#1
0
        public async Task CheckForUpdate()
        {
            var latest = await Github.CheckForUpdate("andburn", "hdt-plugin-endgame", Version);

            if (latest != null)
            {
                EndGame.Notify("Plugin Update Available", $"[DOWNLOAD]({latest.html_url}) EndGame v{latest.tag_name}", 0,
                               "download", () => Process.Start(latest.html_url));
                Log.Info("Update available: v" + latest.tag_name, "EndGame");
            }
        }