Merge pull request #12 from Seil0/dev

update to build 127 plasma cow
This commit is contained in:
Jannik 2017-06-01 17:37:53 +02:00 committed by GitHub
commit 85d65b6235
4 changed files with 3 additions and 8 deletions

Binary file not shown.

View File

@ -80,14 +80,9 @@ public class updater implements Runnable{
});
System.out.println("update available");
System.out.println("download link: " + browserDownloadUrl);
try {
//get the download-Data URL
URL downloadURL = new URL(browserDownloadUrl);
BufferedReader in = new BufferedReader(new InputStreamReader(downloadURL.openStream()));
String updateDataURL = in.readLine();
try {
//open new Http connection, ProgressMonitorInputStream for downloading the data
HttpURLConnection conn = (HttpURLConnection) new URL(updateDataURL).openConnection();
HttpURLConnection conn = (HttpURLConnection) new URL(browserDownloadUrl).openConnection();
ProgressMonitorInputStream pmis = new ProgressMonitorInputStream(null, "Downloading...", conn.getInputStream());
ProgressMonitor pm = pmis.getProgressMonitor();
pm.setMillisToDecideToPopup(0);

Binary file not shown.

View File

@ -1 +1 @@
125
127