mirror of
https://gitee.com/myxzgzs/boyue_jnpf.git
synced 2025-08-08 15:22:43 +08:00
18 lines
582 B
JavaScript
18 lines
582 B
JavaScript
![]() |
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
exports.getPath7za = getPath7za;
|
||
|
exports.getPath7x = getPath7x;
|
||
|
const _7zip_bin_1 = require("7zip-bin");
|
||
|
const fs = require("fs");
|
||
|
const fs_extra_1 = require("fs-extra");
|
||
|
async function getPath7za() {
|
||
|
if (fs.existsSync(_7zip_bin_1.path7za)) {
|
||
|
await (0, fs_extra_1.chmod)(_7zip_bin_1.path7za, 0o755);
|
||
|
}
|
||
|
return _7zip_bin_1.path7za;
|
||
|
}
|
||
|
async function getPath7x() {
|
||
|
await (0, fs_extra_1.chmod)(_7zip_bin_1.path7x, 0o755);
|
||
|
return _7zip_bin_1.path7x;
|
||
|
}
|
||
|
//# sourceMappingURL=7za.js.map
|