mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 08:21:56 +00:00
Resolved issue where application won't run from outside
This commit is contained in:
parent
225d81e9ce
commit
3aa4c41498
2 changed files with 8 additions and 5 deletions
|
|
@ -1,2 +1,2 @@
|
|||
ffmpeg: "./bin/ffmpeg"
|
||||
ffmpeg: "C:\\Program Files\\ffmpeg\\bin\\ffmpeg.exe"
|
||||
mkvmerge: "./bin/mkvtoolnix/mkvmerge.exe"
|
||||
|
|
|
|||
11
funi.js
11
funi.js
|
|
@ -27,10 +27,13 @@ const getData = require('./modules/module.getdata.js');
|
|||
const vttConvert = require('./modules/module.vttconvert');
|
||||
|
||||
// new-cfg
|
||||
const binCfgFile = path.join('config', 'bin-path');
|
||||
const dirCfgFile = path.join('config', 'dir-path');
|
||||
const cliCfgFile = path.join('config', 'cli-defaults');
|
||||
const tokenFile = path.join('config', 'token');
|
||||
|
||||
const pathToFile = process.pkg ? '' : __dirname;
|
||||
|
||||
const binCfgFile = path.join(pathToFile, 'config', 'bin-path');
|
||||
const dirCfgFile = path.join(pathToFile, 'config', 'dir-path');
|
||||
const cliCfgFile = path.join(pathToFile, 'config', 'cli-defaults');
|
||||
const tokenFile = path.join(pathToFile, 'config', 'token');
|
||||
|
||||
// params
|
||||
let cfg = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue