apache_updater.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:webupdate 作者: Bakterija 项目源码 文件源码
def _update(self, *args):
        result = False
        if self.builds == []:
            raise Exception('No builds updates available, did you forget to check_update()?')
            self.logging('No builds updates available, did you forget to check_update()?')
        try:
            self.download_file(self.builds[-1]['link'])
            self.extract_files(fpath=self.update_path+'temp.zip')
            if self.prompts:
                Clock.schedule_once(lambda x: self.update_done_dialog(self.own_ver, self.builds[-1]['ver']), 0)
            result = True
        except Exception as e:
            self.logging('Update crashed')
            self.logging(traceback.format_exc())
        for x in self.on_update:
            x(result)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号