pinokiod 7.1.3 → 7.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/bin/index.js +3 -1
- package/package.json +1 -1
package/kernel/bin/index.js
CHANGED
|
@@ -122,7 +122,9 @@ class Bin {
|
|
|
122
122
|
*/
|
|
123
123
|
}
|
|
124
124
|
async unzip(filepath, dest, options, ondata) {
|
|
125
|
-
|
|
125
|
+
const unzipCmd = this.platform === "win32" ? "7zz" : "7z"
|
|
126
|
+
const extra = options ? `${options} ` : ""
|
|
127
|
+
await this.exec({ message: `${unzipCmd} x ${extra}"${filepath}" -o"${dest}"` }, ondata)
|
|
126
128
|
}
|
|
127
129
|
async rm(src, ondata) {
|
|
128
130
|
ondata({ raw: `rm ${src}\r\n` })
|