bytomdInit.on('exit', function (code) {
event.sender.send('ConfiguredNetwork','init')
- .then(() =>
- setBytomMining(event)
- )
+ setBytomMining(event)
bytomdLog.info('bytom init exited with code ' + code)
})
const { app } = require('electron')
const path = require('path')
+const glob = require('glob')
-import logger from './logger'
+// import logger from './logger'
let instance = null
}
init() {
- const logLevel = { logLevel: 'info' }
- const logFolder = { logFolder: path.join(this.userDataPath, 'logs') }
- const loggerOptions = Object.assign('info', logLevel, logFolder)
- logger.setup(loggerOptions)
+ // const logLevel = { logLevel: 'info' }
+ // const logFolder = { logFolder: path.join(this.userDataPath, 'logs') }
+ // const loggerOptions = Object.assign('info', logLevel, logFolder)
+ // logger.setup(loggerOptions)
}
get userDataPath() {
get bytomdPath() {
return process.env.DEV?
path.join(__dirname, '../bytomd/bytomd-darwin_amd64'):
- glob.sync( path.join(__dirname, '../bytomd/bytomd*'))
+ glob.sync( path.join(__dirname, '../../bytomd/bytomd*'))
}
get bytomdDataPath(){
{
"name": "bytom-wallet",
- "version": "1.0.4",
+ "version": "1.0.5",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"version": "6.22.0",
"resolved": "http://registry.npm.taobao.org/babel-register/download/babel-register-6.22.0.tgz",
"integrity": "sha1-ph3YOXX5ykqefW7/MFlJTNXqTGM=",
- "dev": true,
"requires": {
"babel-core": "6.26.3",
"babel-runtime": "6.26.0",
],
"dependencies": {
"babel-polyfill": "~6.16.0",
+ "babel-register": "~6.22.0",
"bootstrap-sass": "~3.3.7",
"btoa": "^1.1.2",
"classnames": "~2.2.5",
"babel-preset-es2015": "~6.9.0",
"babel-preset-react": "~6.5.0",
"babel-preset-react-hmre": "~1.1.1",
- "babel-register": "~6.22.0",
"bootstrap-loader": "~1.0.10",
"chai": "~3.5.0",
"chai-as-promised": "~6.0.0",