diff --git a/src/io/cubyz/Main.java b/src/io/cubyz/Main.java index c6d4ae7..c8b4c50 100644 --- a/src/io/cubyz/Main.java +++ b/src/io/cubyz/Main.java @@ -35,6 +35,7 @@ public static void main(String[] args) { // Prompt the user to update: JOptionPane.showMessageDialog(null, "A new update of launcher is available.", "information", JOptionPane.INFORMATION_MESSAGE); } catch(Exception e) {} + JOptionPane.showMessageDialog(null, "The Java version of the game and the Java launcher are deprecated and will no longer receive any updates. Newer versions of the game are available in the Zig version.", "information", JOptionPane.INFORMATION_MESSAGE); GitHubConnection.downloadReleaseData(); new MainGUI(); } diff --git a/src/io/cubyz/github/GitHubConnection.java b/src/io/cubyz/github/GitHubConnection.java index cd53cf1..7d13cd1 100644 --- a/src/io/cubyz/github/GitHubConnection.java +++ b/src/io/cubyz/github/GitHubConnection.java @@ -34,7 +34,7 @@ public static void downloadReleaseData() { if(file.exists()) continue; // Tests if the version `i` is available if so reads the file, otherwise throws an Exception. - String link = "https://github.com/PixelGuys/Cubyz/releases/download/R"+i+"/release_info"; + String link = "https://github.com/PixelGuys/Cubyz-Java/releases/download/R"+i+"/release_info"; URL url = new URL(link); ReadableByteChannel rbc = Channels.newChannel(url.openStream()); new File(System.getProperty("user.home") + "/.cubyz/" + "R" + i).mkdirs(); // Create the directory. @@ -53,7 +53,7 @@ public static BufferedImage readOrDownloadImage(File folder) { if(!imageLocation.exists()) { // Download the image: String tag = folder.getName(); - String link = "https://github.com/PixelGuys/Cubyz/releases/download/"+tag+"/image.png"; + String link = "https://github.com/PixelGuys/Cubyz-Java/releases/download/"+tag+"/image.png"; try { DownloadAndFileManager.downloadToFile(imageLocation, link); } catch(IOException e) { @@ -72,7 +72,7 @@ public static void downloadAndLaunchRelease(File folder) { // The game files need to be downloaded. // Addons folder: - String link = "https://github.com/PixelGuys/Cubyz/releases/download/"+tag+"/addons.zip"; + String link = "https://github.com/PixelGuys/Cubyz-Java/releases/download/"+tag+"/addons.zip"; try { DownloadAndFileManager.downloadAndUnzip(folder, link); } catch(IOException e) { @@ -80,7 +80,7 @@ public static void downloadAndLaunchRelease(File folder) { } // Assets folder: - link = "https://github.com/PixelGuys/Cubyz/releases/download/"+tag+"/assets.zip"; + link = "https://github.com/PixelGuys/Cubyz-Java/releases/download/"+tag+"/assets.zip"; try { DownloadAndFileManager.downloadAndUnzip(folder, link); } catch(IOException e) { @@ -90,11 +90,11 @@ public static void downloadAndLaunchRelease(File folder) { } // Dependencies: - link = "https://github.com/PixelGuys/Cubyz/releases/download/"+tag+"/pom.xml"; + link = "https://github.com/PixelGuys/Cubyz-Java/releases/download/"+tag+"/pom.xml"; DependencyManager.fetchDependencies(link, System.getProperty("user.home") + "/.cubyz", new File(folder, "pom.xml")); // And finally the jar file. This is downloaded last to reduce potential issues when the user closes the application before everything is done. - link = "https://github.com/PixelGuys/Cubyz/releases/download/"+tag+"/Cubyz.jar"; + link = "https://github.com/PixelGuys/Cubyz-Java/releases/download/"+tag+"/Cubyz.jar"; try { DownloadAndFileManager.downloadToFile(jarLocation, link); } catch(IOException e) { @@ -102,14 +102,14 @@ public static void downloadAndLaunchRelease(File folder) { // The old version 0.6.0 packaged the libraries into the jar file, so there are multiple files for each OS and arch: if(SystemInfo.OS_FAMILY.equals("windows")) { if(SystemInfo.OS_ARCH.contains("64")) { - link = "https://github.com/PixelGuys/Cubyz/releases/download/"+tag+"/Cubyz_win_64.jar"; + link = "https://github.com/PixelGuys/Cubyz-Java/releases/download/"+tag+"/Cubyz_win_64.jar"; } else { - link = "https://github.com/PixelGuys/Cubyz/releases/download/"+tag+"/Cubyz_win_x86.jar"; + link = "https://github.com/PixelGuys/Cubyz-Java/releases/download/"+tag+"/Cubyz_win_x86.jar"; } DownloadAndFileManager.downloadToFile(jarLocation, link); } else if(SystemInfo.OS_FAMILY.equals("unix")) { if(SystemInfo.OS_ARCH.contains("64")) { - link = "https://github.com/PixelGuys/Cubyz/releases/download/"+tag+"/Cubyz_win_64.jar"; + link = "https://github.com/PixelGuys/Cubyz-Java/releases/download/"+tag+"/Cubyz_win_64.jar"; DownloadAndFileManager.downloadToFile(jarLocation, link); } } @@ -123,7 +123,7 @@ public static void downloadAndLaunchRelease(File folder) { } // Build the classpath: - ArrayList libs = DependencyManager.fetchDependencies("https://github.com/PixelGuys/Cubyz/releases/download/"+tag+"/pom.xml", System.getProperty("user.home") + "/.cubyz", new File(folder, "pom.xml")); + ArrayList libs = DependencyManager.fetchDependencies("https://github.com/PixelGuys/Cubyz-Java/releases/download/"+tag+"/pom.xml", System.getProperty("user.home") + "/.cubyz", new File(folder, "pom.xml")); int minJavaVersion = DependencyManager.findJavaVersion(new File(folder, "pom.xml")); if(minJavaVersion > SystemInfo.JAVA_VERSION) {