Updated Branches: refs/heads/master bb7abee6b -> ea667804f
CB-6041 createTemplates should install them for VS-2013 as well Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/ea667804 Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/ea667804 Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/ea667804 Branch: refs/heads/master Commit: ea667804f589c5c9b15b74fe361f6a204690329a Parents: bb7abee Author: Jesse MacFadyen <[email protected]> Authored: Fri Feb 14 11:16:33 2014 -0800 Committer: Jesse MacFadyen <[email protected]> Committed: Fri Feb 14 11:19:25 2014 -0800 ---------------------------------------------------------------------- wp7/tooling/scripts/createTemplates.js | 9 ++++++++- wp8/tooling/scripts/createTemplates.js | 10 +++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/ea667804/wp7/tooling/scripts/createTemplates.js ---------------------------------------------------------------------- diff --git a/wp7/tooling/scripts/createTemplates.js b/wp7/tooling/scripts/createTemplates.js index 7c7e8d1..816603c 100644 --- a/wp7/tooling/scripts/createTemplates.js +++ b/wp7/tooling/scripts/createTemplates.js @@ -268,7 +268,14 @@ function package_templates() { Log("WARNING: Could not find template directory in Visual Studio,\n you can manually copy over the template .zip files."); } - } + // add to VS-2013 as well + template_dir = wscript_shell.ExpandEnvironmentStrings("%USERPROFILE%") + '\\Documents\\Visual Studio 2013\\Templates\\ProjectTemplates'; + if(fso.FolderExists(template_dir )) + { + dest = shell.NameSpace(template_dir); + dest.CopyHere(templateOutFilename, 4|20); + } + } } function zip_project(zip_path, project_path) { http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/ea667804/wp8/tooling/scripts/createTemplates.js ---------------------------------------------------------------------- diff --git a/wp8/tooling/scripts/createTemplates.js b/wp8/tooling/scripts/createTemplates.js index 650b375..608628f 100644 --- a/wp8/tooling/scripts/createTemplates.js +++ b/wp8/tooling/scripts/createTemplates.js @@ -275,6 +275,7 @@ function package_templates() zip_project(templateOutFilename, platformRoot + templatePath); + if(addToVS) { var template_dir = wscript_shell.ExpandEnvironmentStrings("%USERPROFILE%") + '\\Documents\\Visual Studio 2012\\Templates\\ProjectTemplates'; @@ -287,7 +288,14 @@ function package_templates() { Log("WARNING: Could not find template directory in Visual Studio,\n you can manually copy over the template .zip files."); } - } + // add to VS-2013 as well + template_dir = wscript_shell.ExpandEnvironmentStrings("%USERPROFILE%") + '\\Documents\\Visual Studio 2013\\Templates\\ProjectTemplates'; + if(fso.FolderExists(template_dir )) + { + dest = shell.NameSpace(template_dir); + dest.CopyHere(templateOutFilename, 4|20); + } + } } function zip_project(zip_path, project_path) {
