mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-20 09:35:58 +00:00
app version major/minor/release/build sending,
nighlty build id display
This commit is contained in:
@@ -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¤tVersion=" + URLEncoder.encode(currentVersion, "UTF-8") + "¤tBuild=" + URLEncoder.encode(ApplicationInfo.build, "UTF-8") + "¤tNightly=" + (ApplicationInfo.nightly ? "1" : "0") + " HTTP/1.1\r\n"
|
||||
os.write(("GET /flash/update.html?action=check¤tVersion=" + URLEncoder.encode(currentVersion, "UTF-8")
|
||||
+ "¤tRevision=" + URLEncoder.encode(ApplicationInfo.revision, "UTF-8")
|
||||
+ "¤tVersionMajor=" + URLEncoder.encode(""+ApplicationInfo.version_major, "UTF-8")
|
||||
+ "¤tVersionMinor=" + URLEncoder.encode(""+ApplicationInfo.version_minor, "UTF-8")
|
||||
+ "¤tVersionRelease=" + URLEncoder.encode(""+ApplicationInfo.version_release, "UTF-8")
|
||||
+ "¤tVersionBuild=" + URLEncoder.encode(""+ApplicationInfo.version_build, "UTF-8")
|
||||
+ "¤tNightly=" + (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"
|
||||
|
||||
Reference in New Issue
Block a user