15815213711
2024-08-26 67b8b6731811983447e053d4396b3708c14dfe3c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"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")