Added backup file deletion method

This commit is contained in:
coolGi
2023-11-18 21:52:35 +10:30
parent 73facf1f35
commit 5ee6141d3f
@@ -373,7 +373,9 @@ public class SelfUpdater
}
catch (Exception e)
{
LOGGER.warn("Failed to delete previous " + ModInfo.READABLE_NAME + " file, please delete it manually at [" + JarUtils.jarFile + "]", e);
LOGGER.warn("Failed to delete old jar using bootstrap method, doing backup 'Files.deleteOnExit()' method", e);
finalJarPath.toFile().deleteOnExit();
LOGGER.warn("If the old DH file didnt delete, delete it manually at [" + JarUtils.jarFile + "]");
}
}