* updated to latest geth binaries
! check if geth was started
This commit is contained in:
BIN
bin/linux/geth
BIN
bin/linux/geth
Binary file not shown.
BIN
bin/win/geth.exe
BIN
bin/win/geth.exe
Binary file not shown.
@@ -43,6 +43,11 @@ class Geth {
|
|||||||
try {
|
try {
|
||||||
const gethPath = path.join(this.binaries, 'geth');
|
const gethPath = path.join(this.binaries, 'geth');
|
||||||
this.gethProcess = child_process.spawn(gethPath, ['--ws', '--wsorigins', '*', '--wsaddr', '127.0.0.1', '--wsport', '8546', '--wsapi', 'admin,db,eth,net,miner,personal,web3']);
|
this.gethProcess = child_process.spawn(gethPath, ['--ws', '--wsorigins', '*', '--wsaddr', '127.0.0.1', '--wsport', '8546', '--wsapi', 'admin,db,eth,net,miner,personal,web3']);
|
||||||
|
|
||||||
|
if (!this.gethProcess) {
|
||||||
|
dialog.showErrorBox("Error starting application", "Geth failed to start!");
|
||||||
|
app.quit();
|
||||||
|
} else {
|
||||||
this.gethProcess.on('error', function(err) {
|
this.gethProcess.on('error', function(err) {
|
||||||
dialog.showErrorBox("Error starting application", "Geth failed to start!");
|
dialog.showErrorBox("Error starting application", "Geth failed to start!");
|
||||||
app.quit();
|
app.quit();
|
||||||
@@ -53,6 +58,7 @@ class Geth {
|
|||||||
this.gethProcess.stdout.on('data', function(data) {
|
this.gethProcess.stdout.on('data', function(data) {
|
||||||
EthoGeth._writeLog(data.toString() + '\n');
|
EthoGeth._writeLog(data.toString() + '\n');
|
||||||
});
|
});
|
||||||
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
dialog.showErrorBox("Error starting application", err.message);
|
dialog.showErrorBox("Error starting application", err.message);
|
||||||
app.quit();
|
app.quit();
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mac": {
|
"mac": {
|
||||||
"target": "tar.gz",
|
"target": "dmg",
|
||||||
"icon": "build/icon.icns",
|
"icon": "build/icon.icns",
|
||||||
"artifactName": "MacOS-${productName}-${version}.${ext}",
|
"artifactName": "MacOS-${productName}-${version}.${ext}",
|
||||||
"extraResources": [
|
"extraResources": [
|
||||||
|
|||||||
Reference in New Issue
Block a user