12345678910111213141516171819202122 |
- "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", process.arch, "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")
|