+ create user data dir

! fixed keystore path for MacOS
+ check file types on import accounts and notify of success or error
This commit is contained in:
Taegus
2019-01-03 15:38:11 +01:00
parent 5090754127
commit 7fb212f7fc
3 changed files with 58 additions and 7 deletions

View File

@@ -9,6 +9,10 @@ const os = require('os');
class Geth {
constructor() {
this.gethProcess = null;
// create the user data dir (needed for MacOS)
if (!fs.existsSync(app.getPath('userData'))) {
fs.mkdirSync(app.getPath('userData'));
}
this.logStream = fs.createWriteStream(path.join(app.getPath('userData'), 'gethlog.txt'));
if (appRoot.path.indexOf('app.asar') > -1) {