We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc65ebb commit df1a27aCopy full SHA for df1a27a
command/jsos-depack.js
@@ -26,7 +26,7 @@ module.exports = function (opts) {
26
} else if (process.platform === 'win32') {
27
return console.log(chalk.red("Windows doesn't supported!"))
28
} 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!!!")));
+ 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!!!")));
30
} else {
31
return console.log(chalk.red('unknown/unsupported platform'));
32
}
0 commit comments