|
@ -1,25 +1,24 @@ |
|
|
// main proc for Agama
|
|
|
// main proc for Agama
|
|
|
// this app spawns iguana in background in nontech-mode
|
|
|
// this app spawns iguana in background in nontech-mode
|
|
|
|
|
|
|
|
|
const electron = require('electron'), |
|
|
const electron = require('electron'); |
|
|
app = electron.app, |
|
|
const app = electron.app; |
|
|
BrowserWindow = electron.BrowserWindow, |
|
|
const BrowserWindow = electron.BrowserWindow; |
|
|
path = require('path'), |
|
|
const path = require('path'); |
|
|
url = require('url'), |
|
|
const url = require('url'); |
|
|
os = require('os'), |
|
|
const os = require('os'); |
|
|
md5 = require('./routes/md5'), |
|
|
const md5 = require('./routes/md5'); |
|
|
exec = require('child_process').exec, |
|
|
const exec = require('child_process').exec; |
|
|
{ Menu } = require('electron'), |
|
|
const { Menu } = require('electron'); |
|
|
portscanner = require('portscanner'), |
|
|
const portscanner = require('portscanner'); |
|
|
osPlatform = os.platform(), |
|
|
const osPlatform = os.platform(); |
|
|
fixPath = require('fix-path'); |
|
|
const fixPath = require('fix-path'); |
|
|
|
|
|
|
|
|
var express = require('express'), |
|
|
const express = require('express'); |
|
|
bodyParser = require('body-parser'), |
|
|
const bodyParser = require('body-parser'); |
|
|
fs = require('fs'), |
|
|
const fsnode = require('fs'); |
|
|
fsnode = require('fs'), |
|
|
const fs = require('fs-extra'); |
|
|
fs = require('fs-extra'), |
|
|
const numCPUs = require('os').cpus().length; |
|
|
numCPUs = require('os').cpus().length; |
|
|
|
|
|
|
|
|
|
|
|
Promise = require('bluebird'); |
|
|
Promise = require('bluebird'); |
|
|
|
|
|
|
|
@ -114,9 +113,9 @@ process.once('loaded', () => { |
|
|
process.setFdLimit(appConfig.maxDescriptors.darwin); |
|
|
process.setFdLimit(appConfig.maxDescriptors.darwin); |
|
|
app.setAboutPanelOptions({ |
|
|
app.setAboutPanelOptions({ |
|
|
applicationName: app.getName(), |
|
|
applicationName: app.getName(), |
|
|
applicationVersion: `app.getVersion().replace('version=', '')}-beta`, |
|
|
applicationVersion: `${app.getVersion().replace('version=', '')}-beta`, |
|
|
copyright: 'Released under the MIT license', |
|
|
copyright: 'Released under the MIT license', |
|
|
credits: 'SuperNET Team' |
|
|
credits: 'SuperNET Team', |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
if (osPlatform === 'linux') { |
|
|
if (osPlatform === 'linux') { |
|
|