Fixed __dirname value
This commit is contained in:
parent
096fe1d1e4
commit
bd6c0c2a56
2 changed files with 6 additions and 2 deletions
|
|
@ -2,6 +2,8 @@ const os = require("os");
|
|||
const path = require("path");
|
||||
const platform = os.platform();
|
||||
const homeDir = os.homedir();
|
||||
// @ts-ignore
|
||||
const rootFolder = process.resourcesPath || __dirname
|
||||
|
||||
const getLndDirectory = () => {
|
||||
if (platform === "darwin") {
|
||||
|
|
@ -35,7 +37,7 @@ module.exports = (mainnet = false) => {
|
|||
sessionMaxAge: 300000,
|
||||
lndAddress: "127.0.0.1:9735",
|
||||
maxNumRoutesToQuery: 20,
|
||||
lndProto: parsePath(`${__dirname}/rpc.proto`),
|
||||
lndProto: parsePath(`${rootFolder}/rpc.proto`),
|
||||
lndHost: "localhost:10009",
|
||||
lndCertPath: parsePath(`${lndDirectory}/tls.cert`),
|
||||
macaroonPath: parsePath(
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@ const jsonfile = require('jsonfile')
|
|||
const path = require('path')
|
||||
const logger = require('winston')
|
||||
const FS = require('../../utils/fs')
|
||||
const secretsFilePath = path.resolve(__dirname, 'secrets.json')
|
||||
|
||||
const rootFolder = process.resourcesPath || __dirname
|
||||
const secretsFilePath = path.resolve(rootFolder, 'secrets.json')
|
||||
|
||||
class Auth {
|
||||
verifySecretsFile = async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue