Resolved issue where application won't run from outside

This commit is contained in:
Izuco 2021-06-01 15:27:00 +02:00
parent 225d81e9ce
commit 3aa4c41498
2 changed files with 8 additions and 5 deletions

View file

@ -1,2 +1,2 @@
ffmpeg: "./bin/ffmpeg"
ffmpeg: "C:\\Program Files\\ffmpeg\\bin\\ffmpeg.exe"
mkvmerge: "./bin/mkvtoolnix/mkvmerge.exe"

11
funi.js
View file

@ -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 = {