#4: Support spaces in Windows path

This commit is contained in:
Roel van Uden 2015-03-06 21:41:02 +01:00
parent 44a66286cb
commit 575569bd91
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ function main(config: typings.IConfig, rtmpInputPath: string, filePath: string,
*/
function command(): string {
if (os.platform() !== 'win32') return 'mkvmerge';
return path.join(__dirname, '../../bin/mkvmerge.exe');
return '"' + path.join(__dirname, '../../bin/mkvmerge.exe') + '"';
}
/**

View File

@ -22,5 +22,5 @@ function main(rtmpUrl: string, rtmpInputPath: string, swfUrl: string, filePath:
*/
function command(): string {
if (os.platform() !== 'win32') return 'rtmpdump';
return path.join(__dirname, '../../bin/rtmpdump.exe');
return '"' + path.join(__dirname, '../../bin/rtmpdump.exe') + '"';
}