hotfix: split daemon helper functions
This commit is contained in:
parent
545203a119
commit
b68db00585
|
@ -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'));
|
|
@ -0,0 +1,11 @@
|
||||||
|
// @flow
|
||||||
|
|
||||||
|
import os from 'os';
|
||||||
|
|
||||||
|
export default () => {
|
||||||
|
if (os.platform() === 'win32') {
|
||||||
|
return 'zcashd.exe';
|
||||||
|
}
|
||||||
|
|
||||||
|
return 'zcashd';
|
||||||
|
};
|
|
@ -0,0 +1,4 @@
|
||||||
|
// @flow
|
||||||
|
|
||||||
|
/* eslint-disable-next-line no-console */
|
||||||
|
export default (...message: Array<*>) => console.log('[ZCash Daemon]', ...message);
|
Loading…
Reference in New Issue