From 7f6d8a89cc20618692a44d2b2c4d229c5e599dcd Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 27 Aug 2020 17:09:04 +0300 Subject: [PATCH] tweaks... Signed-off-by: Alex A. Naanou --- ui (gen4)/Makefile | 5 ++++- ui (gen4)/e.js | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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...