From 2133bd1e74864b4b69d824ba7977fa07034af962 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Wed, 8 Feb 2012 14:38:20 -0800 Subject: Setting up packaged app --- js/io/system/ninjalibrary.js | 12 +----------- manifest.json | 15 +++++++++++++++ ninja_icon.png | Bin 0 -> 8742 bytes 3 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 manifest.json create mode 100644 ninja_icon.png 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, { //File to copy this.chromeApi.fileContent(contents[i].fullPath, function (result) { // - - /* -var ui8a = new Uint8Array(result.content); - console.log(ui8a); - - var blob = new window.WebKitBlobBuilder; - blob.append(result.content); -*/ - //console.log(blob.getBlob(result.data.type)); - //this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: result.content, contentType: result.data.type}); //this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: blob.getBlob(result.data.type), contentType: result.data.type}); this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: result.content}); }.bind(this)); @@ -143,7 +133,7 @@ var ui8a = new Uint8Array(result.content); // var i, l, libs, libjson, xhr = new XMLHttpRequest(), tocopylibs = [], copied; //Getting known json list of libraries to copy to chrome - xhr.open("GET", '/ninja-internal/js/io/system/ninjalibrary.json', false); + xhr.open("GET", '/js/io/system/ninjalibrary.json', false); xhr.send(); //Checkng for correct reponse 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 @@ +{ + "name": "Motorola Mobility Ninja", + "description": "Local Development Version", + "version": "0.0", + "icons": {"128": "ninja_icon.png"}, + "app": { + "launch": {"local_path": "index.html"} + }, + "permissions": ["unlimitedStorage"], + "requirements": { + "3D": { + "features": ["css3d", "webgl"] + } + } +} \ No newline at end of file diff --git a/ninja_icon.png b/ninja_icon.png new file mode 100644 index 00000000..6f609f4a Binary files /dev/null and b/ninja_icon.png differ -- cgit v1.2.3