From 2e4436ed9a3a2a8ef64c4385d805b6e651f58f82 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Thu, 22 Jun 2023 16:48:43 +0200 Subject: [PATCH] delete update.bat --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index d195909..ee72692 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,6 +57,10 @@ fn update_binary() {} // allow dead code, function is only called if not debug env #[allow(dead_code)] fn update_self() { + if PathBuf::from("update.bat").exists() { + fs::remove_file("update.bat").unwrap(); + } + let platform = if cfg!(windows) { "alterware-launcher-x86_64-pc-windows-msvc.zip" } else {