"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")