diff --git a/mage.updater.client/pom.xml b/mage.updater.client/pom.xml
index c4cd02eba48..e51ba18019d 100644
--- a/mage.updater.client/pom.xml
+++ b/mage.updater.client/pom.xml
@@ -12,5 +12,19 @@
Mage Client Updater
mage-updater-client
-
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+
+ com.magefree.update.Main
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mage.updater.client/src/main/java/com/magefree/update/Main.java b/mage.updater.client/src/main/java/com/magefree/update/Main.java
index aa7779c9153..13dd024be7e 100644
--- a/mage.updater.client/src/main/java/com/magefree/update/Main.java
+++ b/mage.updater.client/src/main/java/com/magefree/update/Main.java
@@ -10,7 +10,7 @@ import java.util.List;
import java.util.Scanner;
public class Main {
- private final static String URL_PREFIX = "http://magefree.com:81/test1/update/";
+ private final static String URL_PREFIX = "http://download.magefree.com/update/";
public static void main(String[] args) throws Exception {
Main m = new Main();
@@ -117,6 +117,9 @@ public class Main {
System.out.println("downloading " + filename);
try {
InputStream in = urlConnection.getInputStream();
+ File f = new File(filename);
+ if (!f.exists())
+ f.getParentFile().mkdirs();
FileOutputStream out = new FileOutputStream(filename);
byte[] buf = new byte[4 * 1024];
int bytesRead;