preserve tune while updating firmware #7357

This commit is contained in:
rusefillc 2025-02-08 00:38:52 -05:00
parent 61dea4c03c
commit 1499e47fe9
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,7 @@ import static com.rusefi.core.FindFileHelper.findSrecFile;
public class Autoupdate {
private static final Logging log = getLogging(Autoupdate.class);
private static final int AUTOUPDATE_VERSION = 20241004; // separate from rusEFIVersion#CONSOLE_VERSION
private static final int AUTOUPDATE_VERSION = 20250208; // separate from rusEFIVersion#CONSOLE_VERSION
private static final String LOGO_PATH = "/com/rusefi/";
private static final String LOGO = LOGO_PATH + "logo.png";
@ -79,6 +79,8 @@ public class Autoupdate {
Optional<DownloadedAutoupdateFileInfo> downloadedAutoupdateFile = downloadFreshZipFile(args, firstArgument, bundleInfo);
URLClassLoader jarClassLoader = safeUnzipMakingSureClassloaderIsHappy(downloadedAutoupdateFile);
// extremely dark magic: XML binding seems to depend on this
Thread.currentThread().setContextClassLoader(jarClassLoader);
startConsole(args, jarClassLoader);
}