|
@ -42,11 +42,11 @@ if (os.platform() === 'linux') { |
|
|
|
|
|
|
|
|
// GUI APP settings and starting gui on address http://120.0.0.1:17777
|
|
|
// GUI APP settings and starting gui on address http://120.0.0.1:17777
|
|
|
var shepherd = require('./routes/shepherd'), |
|
|
var shepherd = require('./routes/shepherd'), |
|
|
guiapp = express(); |
|
|
guiapp = express(); |
|
|
|
|
|
|
|
|
shepherd.createIguanaDirs(); |
|
|
shepherd.createIguanaDirs(); |
|
|
|
|
|
|
|
|
const appSessionHash = md5(new Date(Date.now()).toLocaleString); |
|
|
const appSessionHash = md5(Date.now()); |
|
|
|
|
|
|
|
|
shepherd.writeLog('app init ' + appSessionHash); |
|
|
shepherd.writeLog('app init ' + appSessionHash); |
|
|
shepherd.writeLog('app info: ' + appBasicInfo.name + ' ' + appBasicInfo.version); |
|
|
shepherd.writeLog('app info: ' + appBasicInfo.name + ' ' + appBasicInfo.version); |
|
@ -365,9 +365,9 @@ function createWindow (status) { |
|
|
if (appConfig.edexGuiOnly) { |
|
|
if (appConfig.edexGuiOnly) { |
|
|
if (appConfig.v2) { |
|
|
if (appConfig.v2) { |
|
|
shepherd.writeLog('show edex gui'); |
|
|
shepherd.writeLog('show edex gui'); |
|
|
mainWindow.loadURL('http://127.0.0.1:3000'); |
|
|
// mainWindow.loadURL('http://127.0.0.1:3000');
|
|
|
mainWindow.appConfig = appConfig; |
|
|
mainWindow.appConfig = appConfig; |
|
|
//mainWindow.appSessionHash = appSessionHash;
|
|
|
mainWindow.appSessionHash = appSessionHash; |
|
|
mainWindow.loadURL('http://' + appConfig.host + ':' + appConfig.agamaPort + '/gui/EasyDEX-GUI/react/build'); |
|
|
mainWindow.loadURL('http://' + appConfig.host + ':' + appConfig.agamaPort + '/gui/EasyDEX-GUI/react/build'); |
|
|
} else { |
|
|
} else { |
|
|
shepherd.writeLog('show edex gui'); |
|
|
shepherd.writeLog('show edex gui'); |
|
|