mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-17 19:26:34 +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(() -> {
|
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
|
||||||
try {
|
try {
|
||||||
logger.info("Executing: " + batchFile);
|
logger.info("Executing: " + batchFile);
|
||||||
Runtime.getRuntime().exec(String.valueOf(batchFile));
|
ProcessBuilder processBuilder = new ProcessBuilder(String.valueOf(batchFile));
|
||||||
|
processBuilder.start();
|
||||||
} catch (IOException e) {
|
} 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();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
Reference in New Issue
Block a user