1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-15 10:24:04 +02:00

use processbuilder for ripme update on windows, exec is deprecated.

This commit is contained in:
soloturn
2024-12-29 11:33:51 +01:00
parent 9a6de2509d
commit ec728ab5e4

View File

@@ -296,10 +296,9 @@ public class UpdateUtils {
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
try {
logger.info("Executing: " + batchFile);
Runtime.getRuntime().exec(String.valueOf(batchFile));
ProcessBuilder processBuilder = new ProcessBuilder(String.valueOf(batchFile));
processBuilder.start();
} catch (IOException e) {
// TODO implement proper stack trace handling this is really just intented as a
// placeholder until you implement proper error handling
e.printStackTrace();
}
}));