4.5.1 #595

Merged
AnimeDL merged 73 commits from mpd-support into master 2024-03-18 02:08:39 +00:00
Showing only changes of commit 1b5dfa0f3e - Show all commits

View file

@ -10,7 +10,11 @@ const exec = (pname: string, fpath: string, pargs: string, spc = false): {
pargs = pargs ? ' ' + pargs : '';
console.info(`\n> "${pname}"${pargs}${spc ? '\n' : ''}`);
try {
childProcess.execSync((fpath + pargs), { stdio: 'inherit' });
if (process.platform === 'win32') {
childProcess.execSync(('& ' + fpath + pargs), { stdio: 'inherit', 'shell': 'powershell.exe', 'windowsHide': true });
} else {
childProcess.execSync((fpath + pargs), { stdio: 'inherit' });
}
return {
isOk: true
};