}
function setBytomNode(event) {
- bytomdNode = spawn( `${Settings.bytomdPath}`, ['node', '--web.closed'] )
+ bytomdNode = spawn( `${Settings.bytomdPath}`, ['node', '--web.closed', '--home', Settings.bytomdDataPath] )
bytomdNode.stdout.on('data', function(data) {
bytomdLog.info(`bytomd node: ${data}`)
function setBytomInit(event, bytomNetwork) {
// Init bytomd
- bytomdInit = spawn(`${Settings.bytomdPath}`, ['init', '--chain_id', `${bytomNetwork}`] )
+ bytomdInit = spawn(`${Settings.bytomdPath}`, ['init', '--chain_id', `${bytomNetwork}`, '--home', Settings.bytomdDataPath] )
bytomdInit.stdout.on('data', function(data) {
bytomdLog.info(`bytomd init: ${data}`)
let bytomdDataPath
switch (process.platform){
case 'win32':
- bytomdDataPath = `${app.getPath('appData')}/Bytom`
+ bytomdDataPath = `${app.getPath('appData')}/Bytom2`
break
case 'darwin':
- bytomdDataPath = `${app.getPath('home')}/Library/Application Support/Bytom`
+ bytomdDataPath = `${app.getPath('home')}/Library/Application Support/Bytom2`
break
case 'linux':
- bytomdDataPath = `${app.getPath('home')}/.bytom`
+ bytomdDataPath = `${app.getPath('home')}/.bytom2`
}
return bytomdDataPath
}
{
"name": "bytom-wallet",
- "productName": "Bytom Wallet",
+ "productName": "Bytom Wallet2",
"build": {
"electronVersion": "1.8.3",
"appId": "io.bytom.desktop",