From 35a4e04fae452817361a2b8ce362475a95c3d3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=88=E7=A9=B6=E8=BF=98=E6=98=AF=E6=88=91=E4=BB=AC?= =?UTF-8?q?=E9=98=9F?= <t202410110992653@eduxiji.net> Date: Wed, 14 Aug 2024 03:59:01 +0000 Subject: [PATCH] Delete update.c --- update/update.c | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 update/update.c diff --git a/update/update.c b/update/update.c deleted file mode 100644 index 793bb42..0000000 --- a/update/update.c +++ /dev/null @@ -1,32 +0,0 @@ -#include "update.h" -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -int update(const char *update_package) { - // 下载更新包 - if (download_update(update_package) != 0) { - fprintf(stderr, "Failed to download update package.\n"); - return -1; - } - - // éªŒè¯æ›´æ–°åŒ… - if (verify_update(update_package) != 0) { - fprintf(stderr, "Failed to verify update package.\n"); - return -1; - } - - // 备份当å‰å®‰è£… - if (backup_current_installation() != 0) { - fprintf(stderr, "Failed to backup current installation.\n"); - return -1; - } - - // 安装更新包 - if (install_update(update_package) != 0) { - fprintf(stderr, "Failed to install update package.\n"); - return -1; - } - - return 0; -} -- GitLab