diff options
author | Jose Antonio Marquez | 2012-02-08 14:38:20 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-08 14:38:20 -0800 |
commit | 2133bd1e74864b4b69d824ba7977fa07034af962 (patch) | |
tree | be869d96247fb98a8cfefb1ef45e16df33acf4f7 | |
parent | 5ee983dbbc0dddf18771da1925ccf634a67c365b (diff) | |
download | ninja-2133bd1e74864b4b69d824ba7977fa07034af962.tar.gz |
Setting up packaged app
-rw-r--r-- | js/io/system/ninjalibrary.js | 12 | ||||
-rw-r--r-- | manifest.json | 15 | ||||
-rw-r--r-- | ninja_icon.png | bin | 0 -> 8742 bytes |
3 files changed, 16 insertions, 11 deletions
diff --git a/js/io/system/ninjalibrary.js b/js/io/system/ninjalibrary.js index 7b524189..c85de3b0 100644 --- a/js/io/system/ninjalibrary.js +++ b/js/io/system/ninjalibrary.js | |||
@@ -114,16 +114,6 @@ exports.NinjaLibrary = Montage.create(Object.prototype, { | |||
114 | //File to copy | 114 | //File to copy |
115 | this.chromeApi.fileContent(contents[i].fullPath, function (result) { | 115 | this.chromeApi.fileContent(contents[i].fullPath, function (result) { |
116 | // | 116 | // |
117 | |||
118 | /* | ||
119 | var ui8a = new Uint8Array(result.content); | ||
120 | console.log(ui8a); | ||
121 | |||
122 | var blob = new window.WebKitBlobBuilder; | ||
123 | blob.append(result.content); | ||
124 | */ | ||
125 | //console.log(blob.getBlob(result.data.type)); | ||
126 | //this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: result.content, contentType: result.data.type}); | ||
127 | //this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: blob.getBlob(result.data.type), contentType: result.data.type}); | 117 | //this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: blob.getBlob(result.data.type), contentType: result.data.type}); |
128 | this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: result.content}); | 118 | this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: result.content}); |
129 | }.bind(this)); | 119 | }.bind(this)); |
@@ -143,7 +133,7 @@ var ui8a = new Uint8Array(result.content); | |||
143 | // | 133 | // |
144 | var i, l, libs, libjson, xhr = new XMLHttpRequest(), tocopylibs = [], copied; | 134 | var i, l, libs, libjson, xhr = new XMLHttpRequest(), tocopylibs = [], copied; |
145 | //Getting known json list of libraries to copy to chrome | 135 | //Getting known json list of libraries to copy to chrome |
146 | xhr.open("GET", '/ninja-internal/js/io/system/ninjalibrary.json', false); | 136 | xhr.open("GET", '/js/io/system/ninjalibrary.json', false); |
147 | xhr.send(); | 137 | xhr.send(); |
148 | //Checkng for correct reponse | 138 | //Checkng for correct reponse |
149 | if (xhr.readyState === 4) { | 139 | if (xhr.readyState === 4) { |
diff --git a/manifest.json b/manifest.json new file mode 100644 index 00000000..0ffea9b0 --- /dev/null +++ b/manifest.json | |||
@@ -0,0 +1,15 @@ | |||
1 | { | ||
2 | "name": "Motorola Mobility Ninja", | ||
3 | "description": "Local Development Version", | ||
4 | "version": "0.0", | ||
5 | "icons": {"128": "ninja_icon.png"}, | ||
6 | "app": { | ||
7 | "launch": {"local_path": "index.html"} | ||
8 | }, | ||
9 | "permissions": ["unlimitedStorage"], | ||
10 | "requirements": { | ||
11 | "3D": { | ||
12 | "features": ["css3d", "webgl"] | ||
13 | } | ||
14 | } | ||
15 | } \ No newline at end of file | ||
diff --git a/ninja_icon.png b/ninja_icon.png new file mode 100644 index 00000000..6f609f4a --- /dev/null +++ b/ninja_icon.png | |||
Binary files differ | |||