Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 94edbfc

Browse files
update revision/changelog file and improve "check update" functionality
1 parent 2b3ec4c commit 94edbfc

File tree

3 files changed

+34
-10
lines changed

3 files changed

+34
-10
lines changed

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ define(function (require, exports, module) {
6262
//var Locale = require("modules/Localization/strings");
6363

6464
brackets.arduino = {
65-
revision : require("modules/Extra/revision"),
65+
revision : require("modules/Extra/revision").revisions[0],
6666
strings : require("modules/Localization/strings"),
6767
preferences : {},
6868
domains : {},

modules/Extra/checkupdate.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ define(function (require, exports, module) {
4040
method: "GET",
4141
data: {"version": parseInt(current_version)},
4242
success: function(data, status, xhr){
43-
if(status == 'success')
43+
if(status == 'success'){
44+
data = data.revisions[0];
4445
if(data.version > current_version )
4546
showLatest(data);
4647
//else
4748
//if(showIfLatest)
4849
//TODO SHOW UP TO DATE MESSAGE
50+
}
4951
},
5052
error: function(err){/*alert(JSON.stringify(err));*/},
5153
dataType: "json"

shared/revision

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
11
{
2-
"version" : 1,
3-
"hversion" : "0.0.1",
4-
"cycle" : "alpha",
5-
"source" : "https://github.com/arduino-org/brackets-arduino/tree/0.0.1-alpha",
6-
"changelog" : [],
7-
"url" : "http://arduino.org/downloads",
8-
"message" : "",
9-
"error" : ""
2+
"revisions":
3+
[
4+
{
5+
"version" : 2,
6+
"hversion" : "0.0.2",
7+
"cycle" : "alpha",
8+
"source" : "https://github.com/arduino-org/brackets-arduino/tree/0.0.2-alpha",
9+
"changelog" : [
10+
{"name" : "studio", "desc": "open blink example at first run."},
11+
{"name" : "studio", "desc": "improve ui loading."},
12+
{"name" : "studio", "desc": "serial monitor responsive ui."},
13+
{"name" : "studio", "desc": "serial monitor fix end line chars in received messages."},
14+
{"name" : "studio", "desc": "fix icon now visible in bar for linux version."}
15+
],
16+
"url" : "http://arduino.org/downloads",
17+
"message" : "",
18+
"error" : ""
19+
},
20+
21+
{
22+
"version" : 1,
23+
"hversion" : "0.0.1",
24+
"cycle" : "alpha",
25+
"source" : "https://github.com/arduino-org/brackets-arduino/tree/0.0.1-alpha",
26+
"changelog" : [],
27+
"url" : "http://arduino.org/downloads",
28+
"message" : "",
29+
"error" : ""
30+
}
31+
]
1032
}

0 commit comments

Comments
 (0)