diff --git a/bin/linux/geth b/bin/linux/geth index 5daaf90..7664044 100644 Binary files a/bin/linux/geth and b/bin/linux/geth differ diff --git a/bin/win/geth.exe b/bin/win/geth.exe index c5fc0d1..ed6bfc5 100644 Binary files a/bin/win/geth.exe and b/bin/win/geth.exe differ diff --git a/modules/geth.js b/modules/geth.js index 372642d..20b3958 100644 --- a/modules/geth.js +++ b/modules/geth.js @@ -43,16 +43,22 @@ class Geth { try { 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.on('error', function(err) { + + if (!this.gethProcess) { dialog.showErrorBox("Error starting application", "Geth failed to start!"); app.quit(); - }); - this.gethProcess.stderr.on('data', function(data) { - EthoGeth._writeLog(data.toString() + '\n'); - }); - this.gethProcess.stdout.on('data', function(data) { - EthoGeth._writeLog(data.toString() + '\n'); - }); + } else { + this.gethProcess.on('error', function(err) { + dialog.showErrorBox("Error starting application", "Geth failed to start!"); + app.quit(); + }); + this.gethProcess.stderr.on('data', function(data) { + EthoGeth._writeLog(data.toString() + '\n'); + }); + this.gethProcess.stdout.on('data', function(data) { + EthoGeth._writeLog(data.toString() + '\n'); + }); + } } catch (err) { dialog.showErrorBox("Error starting application", err.message); app.quit(); diff --git a/package.json b/package.json index 87635e2..3abeb34 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ ] }, "mac": { - "target": "tar.gz", + "target": "dmg", "icon": "build/icon.icns", "artifactName": "MacOS-${productName}-${version}.${ext}", "extraResources": [