Browse Source

Checks for Linux/Mac cert location

renovate/lint-staged-8.x
Torkel Rogstad 7 years ago
parent
commit
0e51410879
  1. 11
      app/lnd/config/index.js
  2. BIN
      resources/bin/linux/lnd
  3. BIN
      resources/bin/win32/lnd.exe

11
app/lnd/config/index.js

@ -2,10 +2,17 @@
// Mac OS X: /Users/user/Library/Application Support/Lnd/tls.cert
// Linux: ~/.lnd/tls.cert
// Windows: TODO find out where cert is located for windows machine
import { userInfo } from 'os'
import { userInfo, platform } from 'os'
var loc;
if (platform() == 'linux') {
loc = `/home/${userInfo().username}/.lnd/tls.cert`
} else if (platform() == 'darwin') {
loc = `/Users/${userInfo().username}/Library/Application Support/lnd/tls.cert`
}
export default {
lightningRpc: `${__dirname}/rpc.proto`,
lightningHost: 'localhost:10009',
cert: `/Users/${userInfo().username}/Library/Application Support/Lnd/tls.cert`
cert: loc
}

BIN
resources/bin/linux/lnd

Binary file not shown.

BIN
resources/bin/win32/lnd.exe

Binary file not shown.
Loading…
Cancel
Save