@mingxy/ocosay 1.1.29 → 1.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,7 +20,8 @@ export declare function execCapture(cmd: string, cwd?: string): {
|
|
|
20
20
|
stderr: string;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* 从已有的错误输出中检测缺失依赖
|
|
24
|
+
* @param errorOutput 已捕获的错误输出字符串
|
|
24
25
|
*/
|
|
25
|
-
export declare function detectMissingDependencies(
|
|
26
|
+
export declare function detectMissingDependencies(errorOutput: string): DetectResult;
|
|
26
27
|
//# sourceMappingURL=dependency-detector.d.ts.map
|
|
@@ -39,14 +39,14 @@ export function execCapture(cmd, cwd) {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* 从已有的错误输出中检测缺失依赖
|
|
43
|
+
* @param errorOutput 已捕获的错误输出字符串
|
|
43
44
|
*/
|
|
44
|
-
export function detectMissingDependencies(
|
|
45
|
-
const
|
|
46
|
-
const missingHeaders = parseMissingHeaders(result.stderr);
|
|
45
|
+
export function detectMissingDependencies(errorOutput) {
|
|
46
|
+
const missingHeaders = parseMissingHeaders(errorOutput);
|
|
47
47
|
return {
|
|
48
48
|
missingHeaders,
|
|
49
|
-
rawOutput:
|
|
49
|
+
rawOutput: errorOutput,
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
//# sourceMappingURL=dependency-detector.js.map
|
|
@@ -82,6 +82,7 @@ export async function installSystemPackages(packages, notifSvc) {
|
|
|
82
82
|
execSync('sudo apt-get update', {
|
|
83
83
|
timeout: 120000,
|
|
84
84
|
encoding: 'utf8',
|
|
85
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
85
86
|
});
|
|
86
87
|
silentLog('info', 'apt-get update 完成');
|
|
87
88
|
}
|
|
@@ -93,6 +94,7 @@ export async function installSystemPackages(packages, notifSvc) {
|
|
|
93
94
|
const output = execSync(fullCommand, {
|
|
94
95
|
timeout: 300000,
|
|
95
96
|
encoding: 'utf8',
|
|
97
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
96
98
|
});
|
|
97
99
|
silentLog('info', `安装输出: ${output.substring(0, 500)}`);
|
|
98
100
|
const verifiedPackages = [];
|
package/dist/package.json
CHANGED
package/dist/plugin.js
CHANGED
|
@@ -9933,12 +9933,11 @@ function execCapture(cmd, cwd) {
|
|
|
9933
9933
|
};
|
|
9934
9934
|
}
|
|
9935
9935
|
}
|
|
9936
|
-
function detectMissingDependencies(
|
|
9937
|
-
const
|
|
9938
|
-
const missingHeaders = parseMissingHeaders(result.stderr);
|
|
9936
|
+
function detectMissingDependencies(errorOutput) {
|
|
9937
|
+
const missingHeaders = parseMissingHeaders(errorOutput);
|
|
9939
9938
|
return {
|
|
9940
9939
|
missingHeaders,
|
|
9941
|
-
rawOutput:
|
|
9940
|
+
rawOutput: errorOutput
|
|
9942
9941
|
};
|
|
9943
9942
|
}
|
|
9944
9943
|
|
|
@@ -10173,7 +10172,8 @@ async function installSystemPackages(packages, notifSvc) {
|
|
|
10173
10172
|
try {
|
|
10174
10173
|
execSync3("sudo apt-get update", {
|
|
10175
10174
|
timeout: 12e4,
|
|
10176
|
-
encoding: "utf8"
|
|
10175
|
+
encoding: "utf8",
|
|
10176
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
10177
10177
|
});
|
|
10178
10178
|
silentLog("info", "apt-get update \u5B8C\u6210");
|
|
10179
10179
|
} catch (updateErr) {
|
|
@@ -10183,7 +10183,8 @@ async function installSystemPackages(packages, notifSvc) {
|
|
|
10183
10183
|
notifSvc?.info(`\u6B63\u5728\u5B89\u88C5 ${validPackages.length} \u4E2A\u5305...`, "Ocosay", 5e3);
|
|
10184
10184
|
const output = execSync3(fullCommand, {
|
|
10185
10185
|
timeout: 3e5,
|
|
10186
|
-
encoding: "utf8"
|
|
10186
|
+
encoding: "utf8",
|
|
10187
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
10187
10188
|
});
|
|
10188
10189
|
silentLog("info", `\u5B89\u88C5\u8F93\u51FA: ${output.substring(0, 500)}`);
|
|
10189
10190
|
const verifiedPackages = [];
|