From 84eddf10d5c0477c31de7396eba3e9ba6c55253f Mon Sep 17 00:00:00 2001 From: Saptarshi Sarkar Date: Fri, 16 Feb 2024 10:50:58 +0530 Subject: [PATCH] chore: Added a test window --- GUI/src/main/java/ui/UIController.java | 3 ++- .../main/resources/META-INF/native-image/resource-config.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/GUI/src/main/java/ui/UIController.java b/GUI/src/main/java/ui/UIController.java index 3fb2180ab..bf1f7bec7 100644 --- a/GUI/src/main/java/ui/UIController.java +++ b/GUI/src/main/java/ui/UIController.java @@ -33,7 +33,6 @@ import javafx.stage.Stage; import main.Drifty_GUI; import org.buildobjects.process.ProcBuilder; -import org.buildobjects.process.ProcResult; import properties.OS; import support.Job; import support.JobHistory; @@ -114,6 +113,8 @@ private void downloadUpdate() { if (OS.isMac()) { try { String argument = Paths.get(tmpFolder.toString(), currentExecutablePath.getFileName().toString()).toAbsolutePath().toString(); + new ConfirmationDialog("PKG start command", "The command is " + nl.repeat(2) + "open" + argument).getResponse(); + M.msgUpdateInfo("The command is " + nl.repeat(2) + "open" + argument); new ProcBuilder("open").withArgs(argument).withNoTimeout().ignoreExitStatus().run(); // ProcessBuilder startPkg = new ProcessBuilder(Paths.get(tmpFolder.toString(), currentExecutablePath.getFileName().toString()).toAbsolutePath().toString()); // startPkg.start().waitFor(); diff --git a/GUI/src/main/resources/META-INF/native-image/resource-config.json b/GUI/src/main/resources/META-INF/native-image/resource-config.json index 5c5b2474a..af7a067c5 100644 --- a/GUI/src/main/resources/META-INF/native-image/resource-config.json +++ b/GUI/src/main/resources/META-INF/native-image/resource-config.json @@ -128,7 +128,7 @@ "locales":["", "und"] }, { "name":"com.sun.org.apache.xml.internal.serializer.XMLEntities", - "locales":["", "und"] + "locales":["und"] }, { "name":"com/sun/javafx/scene/control/skin/resources/controls", "locales":["", "und"]