-const bytomdPath = process.env.DEV?
- path.join(__dirname, '/bytomd/bytomd-darwin_amd64'):
- glob.sync( path.join(__dirname, '../bytomd/bytomd*'))
-
-let bytomdDataPath
-switch (process.platform){
- case 'win32':
- bytomdDataPath = `${app.getPath('appData')}/Bytom`
- break
- case 'darwin':
- bytomdDataPath = `${app.getPath('home')}/Library/Bytom`
- break
- case 'linux':
- bytomdDataPath = `${app.getPath('home')}/.bytom`
-}