forked from wownero/wow-lite-wallet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
654 B
23 lines
654 B
6 years ago
|
import { join as joinPath, dirname } from 'path';
|
||
|
import { exec } from 'child_process';
|
||
|
|
||
|
import appRootDir from 'app-root-dir';
|
||
|
|
||
|
const IS_PROD = process.env.NODE_ENV === 'production';
|
||
|
console.log('Prod: ' + IS_PROD);
|
||
|
import getPlatform from './get-platform';
|
||
|
|
||
|
const execPath = IS_PROD ?
|
||
|
joinPath(dirname(appRootDir.get()), '..', 'Resources', 'bin') :
|
||
|
joinPath(appRootDir.get(), 'resources', getPlatform(), 'bin');
|
||
|
|
||
|
|
||
|
const cli_binaries = {
|
||
|
'linux': 'wowlight',
|
||
|
'mac': 'wowlight',
|
||
|
'win32': 'wowlight.exe'
|
||
|
}
|
||
|
|
||
|
export const cliPath = `${joinPath(execPath, cli_binaries[getPlatform()])}`;
|
||
|
console.log('binaries.js - clipPath: ' + cliPath);
|