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
"use strict"

const path = require("path")

const nameMap = {
  "darwin": "mac",
  "win32": "win",
  "linux": "linux",
}

const suffix = nameMap[process.platform]
if (suffix == null) {
  throw new Error("Unsupported platform " + process.platform)
}
exports.path7za = process.env.USE_SYSTEM_7ZA === "true" ? "7za" : require(`7zip-bin-${suffix}`).path7za
exports.path7x = path.join(__dirname, "7x.sh")
exports.pathCompressStdIn = path.join(__dirname, "compress.sh")