{"action":"created","issue":{"url":"https://api.github.com/repos/XX-net/XX-Net/issues/1471","labels_url":"https://api.github.com/repos/XX-net/XX-Net/issues/1471/labels{/name}","comments_url":"https://api.github.com/repos/XX-net/XX-Net/issues/1471/comments","events_url":"https://api.github.com/repos/XX-net/XX-Net/issues/1471/events","html_url":"https://github.com/XX-net/XX-Net/issues/1471","id":118759982,"number":1471,"title":"自动升级应该有校验机制","user":{"login":"Cat7373","id":9296576,"avatar_url":"https://avatars.githubusercontent.com/u/9296576?v=3","gravatar_id":"","url":"https://api.github.com/users/Cat7373","html_url":"https://github.com/Cat7373","followers_url":"https://api.github.com/users/Cat7373/followers","following_url":"https://api.github.com/users/Cat7373/following{/other_user}","gists_url":"https://api.github.com/users/Cat7373/gists{/gist_id}","starred_url":"https://api.github.com/users/Cat7373/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cat7373/subscriptions","organizations_url":"https://api.github.com/users/Cat7373/orgs","repos_url":"https://api.github.com/users/Cat7373/repos","events_url":"https://api.github.com/users/Cat7373/events{/privacy}","received_events_url":"https://api.github.com/users/Cat7373/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-25T04:39:02Z","updated_at":"2015-11-25T07:28:02Z","closed_at":"2015-11-25T05:03:48Z","body":"比如每次更新版本的时候都用工具自动生成一个lst列表文件。\r\n升级后自动验证，避免升级不完全的情况出现。\r\n"},"comment":{"url":"https://api.github.com/repos/XX-net/XX-Net/issues/comments/159524573","html_url":"https://github.com/XX-net/XX-Net/issues/1471#issuecomment-159524573","issue_url":"https://api.github.com/repos/XX-net/XX-Net/issues/1471","id":159524573,"user":{"login":"xxnet","id":10395528,"avatar_url":"https://avatars.githubusercontent.com/u/10395528?v=3","gravatar_id":"","url":"https://api.github.com/users/xxnet","html_url":"https://github.com/xxnet","followers_url":"https://api.github.com/users/xxnet/followers","following_url":"https://api.github.com/users/xxnet/following{/other_user}","gists_url":"https://api.github.com/users/xxnet/gists{/gist_id}","starred_url":"https://api.github.com/users/xxnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xxnet/subscriptions","organizations_url":"https://api.github.com/users/xxnet/orgs","repos_url":"https://api.github.com/users/xxnet/repos","events_url":"https://api.github.com/users/xxnet/events{/privacy}","received_events_url":"https://api.github.com/users/xxnet/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T07:28:02Z","updated_at":"2015-11-25T07:28:02Z","body":"PGP是考虑以后P2P 分发，哪天github被封了，就需要了。\r\nmd5 的方式，首先需要有一个信得过的提供方，墙都翻不了的时候，就无法访问任何可信的提供方时用。\r\n目前确实没有需求，所以就简单做了，只要github还在就可以。\r\n\r\n在 2015年11月25日 下午1:20，linhua55 <notifications@github.com>写道：\r\n\r\n> @xxnet\r\n> 为什么需要PGP签名呢？简单的md5就可以了呀。只是为了完整性考虑，又不是防中间人。\r\n> 升级和“安装器”可以做到一个的\r\n> 1.先分平台下载lst列表文件。lst列表文件的第一行不妨就是此文件的md5值，让自己校验自己。\r\n> 2.再根据lst文件下载所需的文件。\r\n>\r\n> 2015-11-25 13:03 GMT+08:00 Cat73 <notifications@github.com>:\r\n>\r\n> > Closed #1471 <https://github.com/XX-net/XX-Net/issues/1471>.\r\n> >\r\n> > —\r\n> > Reply to this email directly or view it on GitHub\r\n> > <https://github.com/XX-net/XX-Net/issues/1471#event-474114957>.\r\n> >\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/XX-net/XX-Net/issues/1471#issuecomment-159494613>.\r\n>\r\n"}}