diff --git a/forge.jar.log b/forge.jar.log new file mode 100644 index 0000000..e69de29 diff --git a/modpack/1.10.2/forge-1.10.2-12.18.2.2107-installer.jar b/modpack/1.10.2/forge-1.10.2-12.18.2.2107-installer.jar new file mode 100644 index 0000000..8186cba Binary files /dev/null and b/modpack/1.10.2/forge-1.10.2-12.18.2.2107-installer.jar differ diff --git a/modpack/1.7.10/forge-1.7.10-10.13.4.1614-1.7.10-installer.jar b/modpack/1.7.10/forge-1.7.10-10.13.4.1614-1.7.10-installer.jar new file mode 100644 index 0000000..17b3afb Binary files /dev/null and b/modpack/1.7.10/forge-1.7.10-10.13.4.1614-1.7.10-installer.jar differ diff --git a/modpack/Minecraft.jar b/modpack/Minecraft.jar new file mode 100644 index 0000000..1f331a9 Binary files /dev/null and b/modpack/Minecraft.jar differ diff --git a/modpack/modpack/Minecraft.jar b/modpack/modpack/Minecraft.jar new file mode 100644 index 0000000..1f331a9 Binary files /dev/null and b/modpack/modpack/Minecraft.jar differ diff --git a/modpack/modpack/forge.jar b/modpack/modpack/forge.jar new file mode 100644 index 0000000..8186cba Binary files /dev/null and b/modpack/modpack/forge.jar differ diff --git a/src/forgemodpackbuilder/ProcExecExamples.java b/src/forgemodpackbuilder/ProcExecExamples.java index 4a78345..5624c1a 100644 --- a/src/forgemodpackbuilder/ProcExecExamples.java +++ b/src/forgemodpackbuilder/ProcExecExamples.java @@ -9,7 +9,6 @@ package forgemodpackbuilder; * * @author simonr */ -import java.io.*; public class ProcExecExamples { @@ -17,34 +16,11 @@ public class ProcExecExamples { public static void main(String[] args) throws Exception { - if (isWindowsSystem()) { - System.out.println("Windows"); - if (funktion == 1) { - Runtime.getRuntime().exec("cmd /c C:\\Users\\" + System.getProperty("user.home") + "\\AppData\\Roaming\\.minecraft\\Minecraft.jar"); - } - if (funktion == 2) { - Runtime.getRuntime().exec("cmd /c C:\\Users\\" + System.getProperty("user.home") + "\\AppData\\Roaming\\.minecraft\\forge.jar"); - } + if (funktion == 1) { + Runtime.getRuntime().exec("java -jar ./modpack/Minecraft.jar"); } - if (isLinuxSystem()) { - System.out.println("Linux"); - if (funktion == 1) { - Runtime.getRuntime().exec("java -jar " + System.getProperty("user.home") + "/.minecraft/Minecraft.jar"); - } - if (funktion == 2) { - Runtime.getRuntime().exec("java -jar " + System.getProperty("user.home") + "/.minecraft/forge.jar"); - } - + if (funktion == 2) { + Runtime.getRuntime().exec("java -jar ./modpack/modpack/forge.jar"); } } - - static boolean isWindowsSystem() { - String osName = System.getProperty("os.name").toLowerCase(); - return osName.indexOf("windows") >= 0; - } - - static boolean isLinuxSystem() { - String osName = System.getProperty("os.name").toLowerCase(); - return osName.indexOf("linux") >= 0; - } }