hotfix: split daemon helper functions

This commit is contained in:
George Lima 2018-11-30 22:29:27 -03:00
parent 545203a119
commit b68db00585
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// @flow
import path from 'path';
/* eslint-disable-next-line import/no-extraneous-dependencies */
import isDev from 'electron-is-dev';
// $FlowFixMe
export default () => (isDev ? path.join(__dirname, '..', '..', './bin') : path.join(process.resourcesPath, 'bin'));

View File

@ -0,0 +1,11 @@
// @flow
import os from 'os';
export default () => {
if (os.platform() === 'win32') {
return 'zcashd.exe';
}
return 'zcashd';
};

4
config/daemon/logger.js Normal file
View File

@ -0,0 +1,4 @@
// @flow
/* eslint-disable-next-line no-console */
export default (...message: Array<*>) => console.log('[ZCash Daemon]', ...message);