Move version numbers, urls and certificate hash to build.gradle
This commit is contained in:
@@ -5,7 +5,6 @@ import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.net.URI;
|
||||
|
||||
import exopandora.worldhandler.Main;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
@@ -19,7 +18,7 @@ public class ForumListener implements ActionListener
|
||||
{
|
||||
try
|
||||
{
|
||||
Desktop.getDesktop().browse(new URI(Main.URL));
|
||||
Desktop.getDesktop().browse(new URI("$url"));
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
@@ -27,5 +26,4 @@ public class ForumListener implements ActionListener
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -37,7 +37,7 @@ public class InstallListener implements ActionListener
|
||||
File mods = new File(directory, "mods");
|
||||
File versions = new File(directory, "versions");
|
||||
|
||||
if(!this.isPartialFileNameInFolder(versions, Main.MC_VERSION, "Forge"))
|
||||
if(!this.isPartialFileNameInFolder(versions, "$mcversion", "Forge"))
|
||||
{
|
||||
JOptionPane.showMessageDialog(null, "Please install Mineceaft Forge", null, JOptionPane.ERROR_MESSAGE);
|
||||
}
|
||||
@@ -54,8 +54,8 @@ public class InstallListener implements ActionListener
|
||||
try
|
||||
{
|
||||
Path path = new File(InstallListener.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath()).toPath();
|
||||
Files.copy(path, new File(mods, "WorldHandler-" + Main.FULL_VERSION + "-Universal.jar").toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||
JOptionPane.showMessageDialog(null, Main.NAME_AND_VERSION + " has been successfully installed", null, JOptionPane.INFORMATION_MESSAGE);
|
||||
Files.copy(path, new File(mods, "WorldHandler-$mcversion-$version-Universal.jar").toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||
JOptionPane.showMessageDialog(null, Main.NAME + " $mcversion-$version has been successfully installed", null, JOptionPane.INFORMATION_MESSAGE);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class Window implements Runnable
|
||||
{
|
||||
private final String title = Main.NAME_AND_VERSION + " Installer";
|
||||
private final String title = Main.NAME + " $mcversion-$version Installer";
|
||||
private final JFrame frame = new JFrame();
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user