Browse Source

Merge pull request #176 from SuperNETorg/master

update pkg
pkg_automation_electrum
pbca26 7 years ago
committed by GitHub
parent
commit
87cb8c167e
  1. BIN
      assets/icons/agama_app_icon.icns
  2. BIN
      assets/icons/agama_app_icon.ico
  3. BIN
      assets/icons/agama_icons/128x128.png
  4. BIN
      assets/icons/agama_icons/16x16.png
  5. BIN
      assets/icons/agama_icons/24x24.png
  6. BIN
      assets/icons/agama_icons/256x256.png
  7. BIN
      assets/icons/agama_icons/32x32.png
  8. BIN
      assets/icons/agama_icons/48x48.png
  9. BIN
      assets/icons/agama_icons/64x64.png
  10. BIN
      assets/icons/agama_icons/96x96.png
  11. BIN
      assets/icons/agama_icons/agama_app_icon.icns
  12. BIN
      assets/icons/agama_icons/agama_app_icon.ico
  13. BIN
      assets/icons/iguana_app_icon.icns
  14. BIN
      assets/icons/iguana_app_icon.ico
  15. BIN
      assets/icons/iguana_app_icon_png/128x128.png
  16. BIN
      assets/icons/iguana_app_icon_png/16x16.png
  17. BIN
      assets/icons/iguana_app_icon_png/24x24.png
  18. BIN
      assets/icons/iguana_app_icon_png/256x256.png
  19. BIN
      assets/icons/iguana_app_icon_png/32x32.png
  20. BIN
      assets/icons/iguana_app_icon_png/48x48.png
  21. BIN
      assets/icons/iguana_app_icon_png/512x512.png
  22. BIN
      assets/icons/iguana_app_icon_png/64x64.png
  23. BIN
      assets/icons/iguana_app_icon_png/96x96.png
  24. BIN
      assets/icons/komodo.icns
  25. BIN
      assets/icons/komodo.ico
  26. BIN
      assets/icons/komodo_png/128x128.png
  27. BIN
      assets/icons/komodo_png/16x16.png
  28. BIN
      assets/icons/komodo_png/24x24.png
  29. BIN
      assets/icons/komodo_png/256x256.png
  30. BIN
      assets/icons/komodo_png/32x32.png
  31. BIN
      assets/icons/komodo_png/48x48.png
  32. BIN
      assets/icons/komodo_png/512x512.png
  33. BIN
      assets/icons/komodo_png/64x64.png
  34. BIN
      assets/icons/komodo_png/96x96.png
  35. 5
      gui/startup/index.html
  36. 4
      main.js
  37. 31
      routes/shepherd.js

BIN
assets/icons/agama_app_icon.icns

Binary file not shown.

BIN
assets/icons/agama_app_icon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

BIN
assets/icons/agama_icons/128x128.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
assets/icons/agama_icons/16x16.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 693 B

After

Width:  |  Height:  |  Size: 741 B

BIN
assets/icons/agama_icons/24x24.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/icons/agama_icons/256x256.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 15 KiB

BIN
assets/icons/agama_icons/32x32.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/icons/agama_icons/48x48.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
assets/icons/agama_icons/64x64.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
assets/icons/agama_icons/96x96.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
assets/icons/agama_icons/agama_app_icon.icns

Binary file not shown.

BIN
assets/icons/agama_icons/agama_app_icon.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 KiB

After

Width:  |  Height:  |  Size: 103 KiB

BIN
assets/icons/iguana_app_icon.icns

Binary file not shown.

BIN
assets/icons/iguana_app_icon.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 KiB

BIN
assets/icons/iguana_app_icon_png/128x128.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

BIN
assets/icons/iguana_app_icon_png/16x16.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 389 B

BIN
assets/icons/iguana_app_icon_png/24x24.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 579 B

BIN
assets/icons/iguana_app_icon_png/256x256.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

BIN
assets/icons/iguana_app_icon_png/32x32.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 803 B

BIN
assets/icons/iguana_app_icon_png/48x48.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/icons/iguana_app_icon_png/512x512.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
assets/icons/iguana_app_icon_png/64x64.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

BIN
assets/icons/iguana_app_icon_png/96x96.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

BIN
assets/icons/komodo.icns

Binary file not shown.

BIN
assets/icons/komodo.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 KiB

BIN
assets/icons/komodo_png/128x128.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

BIN
assets/icons/komodo_png/16x16.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 724 B

BIN
assets/icons/komodo_png/24x24.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

BIN
assets/icons/komodo_png/256x256.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

BIN
assets/icons/komodo_png/32x32.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/icons/komodo_png/48x48.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

BIN
assets/icons/komodo_png/512x512.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

BIN
assets/icons/komodo_png/64x64.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

BIN
assets/icons/komodo_png/96x96.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

5
gui/startup/index.html

@ -13,7 +13,7 @@
<script type="text/javascript" src="../EasyDEX-GUI/assets/mainWindow/js/jRoll.min.js"></script>
<script>if (window.module) module = window.module;</script>
</head>
<body class="agamaMode">
<body class="agamaMode loading-window">
<div class="text-center">
<div id="agamaMode">
<div
@ -47,6 +47,9 @@
<li onClick="closeMainWindow(null, true)">
<a>Custom</a>
</li>
<li onClick="startKMDPassive()">
<a>KMD (passive)</a>
</li>
</ul>
<button
id="normalStartBtn"

4
main.js

@ -148,7 +148,7 @@ if (os.platform() === 'linux') {
iguanaIcon = path.join(__dirname, '/assets/icons/agama_icons/128x128.png');
}
if (os.platform() === 'win32') {
iguanaIcon = path.join(__dirname, '/assets/icons/agama_icons/agama_app_icon.ico');
iguanaIcon = path.join(__dirname, '/assets/icons/agama_app_icon.ico');
}
function createLoadingWindow() {
@ -158,7 +158,7 @@ function createLoadingWindow() {
try {
loadingWindow = new BrowserWindow({
width: 500,
height: 335,
height: 355,
frame: false,
icon: iguanaIcon,
show: false,

31
routes/shepherd.js

@ -98,14 +98,15 @@ shepherd.defaultAppConfig = Object.assign({}, shepherd.appConfig);
shepherd.coindInstanceRegistry = coindInstanceRegistry;
shepherd.startKMDNative = function(selection) {
shepherd.startKMDNative = function(selection, isManual) {
if (selection === 'KMD') {
const herdData = {
'ac_name': 'komodod',
'ac_options': [
'-daemon=0',
'-addnode=78.47.196.146',
]
],
'manualStart': isManual,
};
const options = {
@ -1568,7 +1569,7 @@ shepherd.quitKomodod = function(timeout = 100) {
}
shepherd.getConf = function(chain) {
const _confLocation = chain === 'komodod' ? (os.platform() === 'darwin' ? `${komodoDir}/Komodo.conf` : `${komodoDir}/komodo.conf`) : `${komodoDir}/${chain}/${chain}.conf`;
const _confLocation = chain === 'komodod' ? `${komodoDir}/komodo.conf` : `${komodoDir}/${chain}/${chain}.conf`;
// komodoDir
if (fs.existsSync(_confLocation)) {
@ -2312,6 +2313,7 @@ shepherd.post('/herd', function(req, res) {
console.log('======= req.body =======');
console.log(req.body);
if (!req.body.options.manualStart) {
function testCoindPort() {
if (!lockDownAddCoin) {
const _port = assetChainPorts[req.body.options.ac_name];
@ -2362,6 +2364,16 @@ shepherd.post('/herd', function(req, res) {
result: 'result',
};
res.end(JSON.stringify(obj));
}
} else {
herder(req.body.herd, req.body.options);
const obj = {
msg: 'success',
result: 'result',
};
res.end(JSON.stringify(obj));
}
});
@ -2790,10 +2802,11 @@ function herder(flock, data) {
console.log(`daemon param ${data.ac_custom_param}`);
coindInstanceRegistry[data.ac_name] = true;
if (!data.manualStart) {
let _arg = `${coindACParam}${data.ac_options.join(' ')}${_customParam}`;
_arg = _arg.trim().split(' ');
execFile(`${komododBin}`, _arg, {
maxBuffer: 1024 * 10000 // 10 mb
maxBuffer: 1024 * 500000 // 500 mb
}, function(error, stdout, stderr) {
shepherd.writeLog(`stdout: ${stdout}`);
shepherd.writeLog(`stderr: ${stderr}`);
@ -2806,12 +2819,16 @@ function herder(flock, data) {
cache.io.emit('service', {
komodod: {
error: 'run -reindex',
}
},
});
}
}
});
}
} else {
if (data.manualStart) {
coindInstanceRegistry[data.ac_name] = true;
}
console.log(`port ${_port} (${data.ac_name}) is already in use`);
shepherd.writeLog(`port ${_port} (${data.ac_name}) is already in use`);
}
@ -2885,7 +2902,7 @@ shepherd.setConfKMD = function() {
}
// check if kmd conf exists
_fs.access(os.platform() === 'darwin' ? `${komodoDir}/Komodo.conf` : `${komodoDir}/komodo.conf`, fs.constants.R_OK, function(err) {
_fs.access(`${komodoDir}/komodo.conf`, fs.constants.R_OK, function(err) {
if (err) {
console.log('creating komodo conf');
shepherd.writeLog(`creating komodo conf in ${komodoDir}/komodo.conf`);
@ -2922,7 +2939,7 @@ function setConf(flock) {
let DaemonConfPath;
switch (flock) {
case 'komodod':
DaemonConfPath = os.platform() === 'darwin' ? `${komodoDir}/Komodo.conf` : `${komodoDir}/komodo.conf`;
DaemonConfPath = `${komodoDir}/komodo.conf`;
if (os.platform() === 'win32') {
DaemonConfPath = path.normalize(DaemonConfPath);

Loading…
Cancel
Save