Skip to content

Commit df1a27a

Browse files
committed
depack
1 parent fc65ebb commit df1a27a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command/jsos-depack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = function (opts) {
2626
} else if (process.platform === 'win32') {
2727
return console.log(chalk.red("Windows doesn't supported!"))
2828
} else if (process.platform === 'linux') { //FIXME: It doesn't works! Output file is broken
29-
exec(`tail -c +16 ${filename} > ${filename}.gz`,(e)=>console.log(e?chalk.red(e):chalk.green("OK!!!")));
29+
exec(`{ printf "\x1f\x8b\x08\x00\x00\x00\x00\x00"; tail -c +25 ${filename}; } > ${filename}.gz`,(e)=>console.log(e?chalk.red(e):chalk.green("OK!!!")));
3030
} else {
3131
return console.log(chalk.red('unknown/unsupported platform'));
3232
}

0 commit comments

Comments
 (0)