"use strict" const path = require("path") function getPath() { if (process.env.USE_SYSTEM_7ZA === "true") { return "7za" } if (process.platform === "darwin") { return path.join(__dirname, "mac", "7za") } else if (process.platform === "win32") { return path.join(__dirname, "win", process.arch, "7za.exe") } else { return path.join(__dirname, "linux", process.arch, "7za") } } exports.path7za = getPath() exports.path7x = path.join(__dirname, "7x.sh")