Update check

This commit is contained in:
Lubos
2019-03-08 13:19:55 +01:00
parent 2de9adec89
commit e464989202
+3
View File
@@ -474,6 +474,9 @@ class App extends iron.Trait {
if (kha.System.systemId == "Windows") {
Krom.sysCommand('powershell -c "Invoke-WebRequest -Uri ' + uri + " -OutFile '" + outFile + "'");
}
else {
Krom.sysCommand('curl ' + uri + ' -o ' + outFile);
}
// Compare versions
iron.data.Data.getBlob(outFile, function(blob:kha.Blob) {
var update = haxe.Json.parse(blob.toString());