From 32bab4ff3ec616a4b1582cdd31c5fc82d2ddd57f Mon Sep 17 00:00:00 2001 From: Gabriel Bazan Date: Tue, 6 Sep 2016 17:44:07 -0300 Subject: [PATCH 1/2] make wp8 cordova project --- app-template/Makefile | 27 +++++++++++++++++---------- app-template/ProjectMakefile | 6 +++--- app-template/package.json | 2 +- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/app-template/Makefile b/app-template/Makefile index 058cbce10..f18321402 100644 --- a/app-template/Makefile +++ b/app-template/Makefile @@ -8,7 +8,7 @@ clean: rm -Rf $(WORKDIR)* -$(WORKDIR)android $(WORKDIR)ios $(WORKDIR)wp: config.xml +$(WORKDIR)android $(WORKDIR)ios: config.xml cordova create $@ com.bitpay.*NAMENOSPACE* *NAMECASENOSPACE* || echo "Project Path Existed" cp ProjectMakefile $@/Makefile rm -r $@/www && ln -sF ../../public $@/www @@ -27,16 +27,23 @@ android: project-android cp -R android/res/* $(WORKDIR)android/platforms/android/res make -C $(WORKDIR)android build-android +wp-init: config.xml + cordova create $(WORKDIR)$@ com.bitpay.*NAMENOSPACE* *NAMECASENOSPACE* || echo "Project Path Existed" + cp ProjectMakefile $(WORKDIR)$@/Makefile + mkdir -p $(WORKDIR)$@/www + cp -Rf ../public/* $(WORKDIR)$@/www + cp config.xml $(WORKDIR)$@/config.xml + make -C $(WORKDIR)$@ $(subst $(WORKDIR),, $(WORKDIR)$@) -wp: build-wp - cp -vf wp/Properties/* $ Date: Tue, 6 Sep 2016 17:47:21 -0300 Subject: [PATCH 2/2] fix grunt file --- Gruntfile.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 1ef8ef2cf..05df4524b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -28,8 +28,11 @@ module.exports = function(grunt) { chrome: { command: 'make -C chrome-app ' }, - wp: { - command: 'make -C cordova wp', + wpinit: { + command: 'make -C cordova wp-init', + }, + wpcopy: { + command: 'make -C cordova wp-copy', }, ios: { command: 'make -C cordova ios', @@ -254,7 +257,8 @@ module.exports = function(grunt) { grunt.registerTask('osx', ['prod', 'nwjs', 'exec:osx']); grunt.registerTask('chrome', ['exec:chrome']); grunt.registerTask('wp', ['prod', 'exec:wp']); - grunt.registerTask('wp-debug', ['default', 'exec:wp']); + grunt.registerTask('wp-copy', ['default', 'exec:wpcopy']); + grunt.registerTask('wp-init', ['default', 'exec:wpinit']); grunt.registerTask('ios', ['prod', 'exec:ios']); grunt.registerTask('ios-debug', ['default', 'exec:ios']); grunt.registerTask('ios-run', ['exec:xcode']);