Commit 057b4c34 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent b57225bf
......@@ -59,11 +59,11 @@ eventemitter.on('install', (app, options) => {
let tar;
if (db.platform == 'win32') {
let xz = child_process.spawn(path.join(__dirname, 'bin', 'xz.exe'), ['-d', '-c', path.join(__dirname, app.id + '.tar.xz')], {stdio: ['inherit', 'pipe', 'inherit']});
tar = child_process.spawn(path.join(__dirname, 'bin', 'tar.exe'), ['fx', '-'], {
cwd: local.path,
stdio: [xz.stdout, 'inherit', 'inherit']
stdio: ['pipe', 'inherit', 'inherit']
});
child_process.spawn(path.join(__dirname, 'bin', 'xz.exe'), ['-d', '-c', path.join(__dirname, app.id + '.tar.xz')], {stdio: ['inherit', tar.stdin, 'inherit']});
} else {
tar = child_process.spawn('tar', ['fx', path.join(__dirname, app.id + '.tar.xz'), '-C', local.path], {stdio: 'inherit'});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment