From 5f9213462c8f45fc1c9aa19f1852f124e4577ca2 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 2 Feb 2018 04:00:49 +0300 Subject: [PATCH] tweaking nw build... Signed-off-by: Alex A. Naanou --- ui (gen4)/Makefile | 4 +++- ui (gen4)/ui.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/Makefile b/ui (gen4)/Makefile index ac9a7390..228f9e93 100755 --- a/ui (gen4)/Makefile +++ b/ui (gen4)/Makefile @@ -646,7 +646,9 @@ $(TARGET_DIR)/$(NW_DIST): # NOTE: this needs a clean app dir... -# XXX this is not runnable yet... +# XXX BUG: can't find modules in unpacked node_modules... +# XXX for some reason if $(BUILD_DIR)/$(APP_NAME) exists package.josn +# is zero length... .PRECIOUS: $(BUILD_DIR)/package.nw $(BUILD_DIR)/package.nw: INCLUDE_NODE_MODULES += $(INCLUDE_NW_NODE_MODULES) $(BUILD_DIR)/package.nw: PACK_MINIMAL = $(BUILD_DIR)/$(APP_NAME)/ \ diff --git a/ui (gen4)/ui.js b/ui (gen4)/ui.js index 96110530..b2079fbb 100755 --- a/ui (gen4)/ui.js +++ b/ui (gen4)/ui.js @@ -13,6 +13,7 @@ if((typeof(process) != 'undefined' ? process : {}).__nwjs){ var path = require('path') require('app-module-path') .addPath(path.dirname(process.execPath) + '/node_modules/') + console.log('!!!!!!!') }