Browse Source

Merge pull request #12 from Seil0/dev

update to build 127 plasma cow
pull/25/head
Jannik 4 years ago
committed by GitHub
parent
commit
85d65b6235
4 changed files with 3 additions and 8 deletions
  1. BIN
      bin/application/updater.class
  2. +2
    -7
      src/application/updater.java
  3. BIN
      updates/ProjectHomeFlix.jar
  4. +1
    -1
      updates/buildNumber.txt

BIN
bin/application/updater.class View File


+ 2
- 7
src/application/updater.java 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);


BIN
updates/ProjectHomeFlix.jar View File


+ 1
- 1
updates/buildNumber.txt View File

@ -1 +1 @@
125
127

Loading…
Cancel
Save