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.
@@ -122,7 +122,9 @@ class Bin {
122
122
  */
123
123
  }
124
124
  async unzip(filepath, dest, options, ondata) {
125
- await this.exec({ message: `7z x ${options ? options : ''} ${filepath} -o${dest}` }, ondata)
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` })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "7.1.3",
3
+ "version": "7.1.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {