Skip to content

The only downloader you need. 下载器的集大成者。

fix(updater): 删除应用失败的 Patch

XiaoYouChRd0f6f43b692e
diff --git a/tools/updater/updater.c b/tools/updater/updater.c
index ad3e2421..ea993fef 100644
--- a/tools/updater/updater.c
+++ b/tools/updater/updater.c
@@ -983,6 +983,11 @@ int main(int argc, char *argv[]) {
logMsg("hpatchz failed");
deleteDir(newDir);
closeLog();
+#ifdef _WIN32
+ _wremove(patchFile);
+#else
+ remove(patchFile);
+#endif
startApp(appExe);
return EXIT_PATCH_FAILED;
} else {