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:
@@ -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();
|
||||
}
|
||||
}));
|
||||
|
Reference in New Issue
Block a user