diff --git a/ui (gen4)/Makefile b/ui (gen4)/Makefile index ff4c2fe0..8d83d437 100755 --- a/ui (gen4)/Makefile +++ b/ui (gen4)/Makefile @@ -9,7 +9,7 @@ # - git # - nodejs / npm # also nodejs-legacy seems to be required by some code... -# - npm i -g electron electron-rebuild asar less +# - npm i -g electron electron-rebuild asar less (optional) # - wget # - zip / unzip / zipnote # if zipnote fails this is likely due to a bug in @@ -119,6 +119,9 @@ SHELL := $(shell which bash) +# set path to use local tools... +export PATH := $(shell pwd)/node_modules/.bin/:$(PATH) + # variables... diff --git a/ui (gen4)/e.js b/ui (gen4)/e.js index e72feb14..7c90e810 100644 --- a/ui (gen4)/e.js +++ b/ui (gen4)/e.js @@ -16,6 +16,8 @@ var path = require('path') var url = require('url') //var fs = require('fs') +var argv = require('ig-argv') + var VERSION = require('./version').version @@ -30,6 +32,12 @@ var VERSION = require('./version').version /*********************************************************************/ // XXX process args... +// ...might be a good idea to process args in two stages: +// 1) process pre-start args: +// splash screen opts +// debug stuff (dev tools etc) +// start mode (ui vs cli ...) +// 2) process the rest of the args within the started context...