You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/08/23 23:49:18 UTC

[12/14] git commit: removed manifest file, going to rely on cordova-cli config.xml instead

removed manifest file, going to rely on cordova-cli config.xml instead


Project: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/commit/f5038395
Tree: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/tree/f5038395
Diff: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/diff/f5038395

Branch: refs/heads/master
Commit: f5038395c12a00ecce047412b7ad6af3b1469238
Parents: 1c20f3f
Author: Steven Gill <st...@gmail.com>
Authored: Wed Aug 21 17:26:38 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Fri Aug 23 14:33:22 2013 -0700

----------------------------------------------------------------------
 bin/create                | 18 +-----------------
 framework/manifest.webapp | 10 ----------
 2 files changed, 1 insertion(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/f5038395/bin/create
----------------------------------------------------------------------
diff --git a/bin/create b/bin/create
index 1652697..c69879d 100755
--- a/bin/create
+++ b/bin/create
@@ -75,15 +75,7 @@ function main(project_path,package_name,project_name){
     shjs.cp('-r', path.join(ROOT, 'bin', 'templates', 'project', 'www'), project_path);
     
     //copy cordova js file
-    shjs.cp('-r', path.join(ROOT, 'javascript', 'cordova.js'), path.join(project_path,'www'));
-    
-    //copy manifest file
-    shjs.cp('-r', path.join(ROOT, 'framework', 'manifest.webapp'), path.join(project_path,'www'));
-    
-    //update app manifest file
-    updateManifest(ROOT, project_path, project_name);
-    
-    
+    shjs.cp('-r', path.join(ROOT, 'javascript', 'cordova.js'), path.join(project_path,'www'));   
 }
 
 function help(){
@@ -93,11 +85,3 @@ function help(){
     console.log(' <project_name>: Project name');
     process.exit(0);
 }
-
-function updateManifest(ROOT, project_path, project_name){
-    var filename = path.join(ROOT, project_path, 'www', 'manifest.webapp');
-    var file_content = fs.readFileSync(filename);
-    var content = JSON.parse(file_content);
-    content.name = project_name;
-    fs.writeFileSync(filename, JSON.stringify(content));
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/f5038395/framework/manifest.webapp
----------------------------------------------------------------------
diff --git a/framework/manifest.webapp b/framework/manifest.webapp
deleted file mode 100644
index f24deb8..0000000
--- a/framework/manifest.webapp
+++ /dev/null
@@ -1,10 +0,0 @@
-{
-  "name": "My App",
-  "description": "Description of your app",
-  "launch_path": "/index.html",
-  "icons": {
-    "128": "/img/logo.png"
-  },
-  "default_locale": "en",
-  "type": "privileged"
-}
\ No newline at end of file