tweaking nw build...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-02-02 04:00:49 +03:00
parent a337fd5861
commit 5f9213462c
2 changed files with 4 additions and 1 deletions

View File

@ -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)/ \

View File

@ -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('!!!!!!!')
}