app version major/minor/release/build sending,

nighlty build id display
This commit is contained in:
Jindra Petřík
2014-11-10 12:53:14 +01:00
parent 9e550e4505
commit 09c9fd7643
2 changed files with 18 additions and 4 deletions

View File

@@ -1285,7 +1285,13 @@ public class Main {
Socket sock = new Socket("www.free-decompiler.com", 80);
OutputStream os = sock.getOutputStream();
String currentLoc = Configuration.locale.get("en");
os.write(("GET /flash/update.html?action=check&currentVersion=" + URLEncoder.encode(currentVersion, "UTF-8") + "&currentBuild=" + URLEncoder.encode(ApplicationInfo.build, "UTF-8") + "&currentNightly=" + (ApplicationInfo.nightly ? "1" : "0") + " HTTP/1.1\r\n"
os.write(("GET /flash/update.html?action=check&currentVersion=" + URLEncoder.encode(currentVersion, "UTF-8")
+ "&currentRevision=" + URLEncoder.encode(ApplicationInfo.revision, "UTF-8")
+ "&currentVersionMajor=" + URLEncoder.encode(""+ApplicationInfo.version_major, "UTF-8")
+ "&currentVersionMinor=" + URLEncoder.encode(""+ApplicationInfo.version_minor, "UTF-8")
+ "&currentVersionRelease=" + URLEncoder.encode(""+ApplicationInfo.version_release, "UTF-8")
+ "&currentVersionBuild=" + URLEncoder.encode(""+ApplicationInfo.version_build, "UTF-8")
+ "&currentNightly=" + (ApplicationInfo.nightly ? "1" : "0") + " HTTP/1.1\r\n"
+ "Host: www.free-decompiler.com\r\n"
+ "X-Accept-Versions: " + acceptVersions + "\r\n"
+ "X-Update-Major: " + UPDATE_SYSTEM_MAJOR + "\r\n"