Newer
Older
CVSS_3.0_GUI / node_modules / nwjs-builder-phoenix / node_modules / 7zip-bin / index.js
root on 7 May 2019 463 bytes Initial commit
  1. "use strict"
  2.  
  3. const path = require("path")
  4.  
  5. const nameMap = {
  6. "darwin": "mac",
  7. "win32": "win",
  8. "linux": "linux",
  9. }
  10.  
  11. const suffix = nameMap[process.platform]
  12. if (suffix == null) {
  13. throw new Error("Unsupported platform " + process.platform)
  14. }
  15. exports.path7za = process.env.USE_SYSTEM_7ZA === "true" ? "7za" : require(`7zip-bin-${suffix}`).path7za
  16. exports.path7x = path.join(__dirname, "7x.sh")
  17. exports.pathCompressStdIn = path.join(__dirname, "compress.sh")
Buy Me A Coffee