Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 6cbf0f0

Browse files
authored
Merge pull request #4 from lightninglabs/apps-dir
Apps Dir
2 parents 5764199 + 554d2a0 commit 6cbf0f0

21 files changed

+35
-32
lines changed
File renamed without changes.
File renamed without changes.

packages/lightning-desktop/main.development.js renamed to apps/desktop/main.dev.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import cp from 'child_process'
99
import ps from 'ps-node'
1010
import fileLog from 'electron-log'
1111
import os from 'os'
12-
import lnd from './lnd'
12+
import lnd from './rpc-server'
1313

1414
global.connection = lnd.connection
1515
global.serverReady = lnd.serverReady
@@ -40,11 +40,10 @@ const runProcesses = (processes, logs) => {
4040
})
4141
.catch(() => {
4242
const plat = os.platform()
43-
const binPath = isDev ? '../lightning-desktop/bin' : 'bin'
44-
const filePath = path.join(__dirname, binPath, plat, proc.name, plat === 'win32' ? '.exe' : '')
43+
const filePath = path.join(__dirname, 'bin', plat, proc.name, plat === 'win32' ? '.exe' : '')
4544

4645
try {
47-
const instance = cp.execFile(filePath, proc.args, { cwd: binPath }, (error) => {
46+
const instance = cp.execFile(filePath, proc.args, { cwd: 'bin' }, (error) => {
4847
if (error) {
4948
logs.push(error.code ? `${ error.code }: ${ error.errno }` : JSON.stringify(error))
5049
}
@@ -65,7 +64,6 @@ const runProcesses = (processes, logs) => {
6564

6665
const logBuffer = []
6766
const logs = observe(logBuffer)
68-
const miningaddr = isDev ? '--miningaddr=4NyWssGkW6Nbwj3nXrJU54U2ijHgWaKZ1N19w' : ''
6967

7068
const processes = [
7169
{
@@ -85,7 +83,7 @@ const processes = [
8583
'--rpcuser=kek',
8684
'--rpcpass=kek',
8785
isDev ? '--simnet' : '--testnet',
88-
miningaddr,
86+
isDev ? '--miningaddr=4NyWssGkW6Nbwj3nXrJU54U2ijHgWaKZ1N19w' : '',
8987
'--txindex',
9088
],
9189
},
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"node": "^6.7.0"
99
},
1010
"scripts": {
11-
"package": "cross-env NODE_ENV=production node -r babel-register -r babel-polyfill package.js",
11+
"package": "cross-env NODE_ENV=production node -r babel-register -r babel-polyfill scripts/package.js",
1212
"package-all": "npm run package -- --all",
13-
"start": "node startup-message.js && concurrently --kill-others \"npm run start-electron\" \"npm run start-webpack\" -n \"electron,webpack\" -p name",
14-
"start-electron": "cross-env HOT=1 NODE_ENV=development electron -r babel-register ./main.development",
15-
"start-webpack": "cross-env NODE_ENV=development node -r babel-register dev-server.js",
13+
"start": "node scripts/startup-message.js && concurrently --kill-others \"npm run start-electron\" \"npm run start-webpack\" -n \"electron,webpack\" -p name",
14+
"start-electron": "cross-env HOT=1 NODE_ENV=development electron -r babel-register ./main.dev",
15+
"start-webpack": "cross-env NODE_ENV=development node -r babel-register scripts/dev-server.js",
1616
"install-grpc": "cd node_modules/grpc && git submodule update --init && npm run electron-build -- --target=1.4.6"
1717
},
1818
"bin": {

0 commit comments

Comments
 (0)