X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2FResources.vala;h=f35b38972fc9799cfbd3515fa3ca2886af21cc0c;hb=700f970c58ea880664ac6d459472b93dab1c41f4;hp=d30856471638c60abf29491cb94e3ec4b08f9502;hpb=2449eb011f96a35765fa276588224bb609f7e076;p=app.Builder.js diff --git a/src/Resources.vala b/src/Resources.vala index d30856471..f35b38972 100644 --- a/src/Resources.vala +++ b/src/Resources.vala @@ -89,7 +89,7 @@ public class Resources : Object "roodata.json", "*", "Editors/*.js", - "vapi/*.vapi" + "vapi/*" }; this.fetch_files = new Gee.ArrayList(); @@ -183,6 +183,7 @@ public class Resources : Object public void parseDirectory(string json, string target) { + print("%s\n", json); var pa = new Json.Parser(); pa.load_from_data(json); var node = pa.get_root(); @@ -206,7 +207,11 @@ public class Resources : Object if (this.files_has_target(split[0] + n)) { continue; } - var src = "https://raw.githubusercontent.com/roojs/app.Builder.js/master/resources/" + split[0] + n; + + + + var src = ob.get_string_member("download_url"); + // "https://raw.githubusercontent.com/roojs/app.Builder.js/master/resources/" + split[0] + n; var add = new ResourcesItem(src, split[0] + n, ob.get_string_member("sha") ); //add.new_sha = ob.get_string_member("sha"); this.fetch_files.add(add);