fix: harden app lock system unlock flow

This commit is contained in:
Zheng Liu
2026-06-24 14:42:49 +08:00
parent f6a49dbf0a
commit 0ea707f70f
14 changed files with 114 additions and 26 deletions
+4 -1
View File
@@ -72,7 +72,10 @@ function beforePackCursorSdk(context = {}) {
ensureCursor({ projectDir, platform });
const buildHelper = context.buildWindowsHelloHelper || buildWindowsHelloHelper;
if (platform === "win32") {
buildHelper(projectDir);
const result = buildHelper({ projectDir, platform });
if (result?.skipped) {
throw new Error(`Windows Hello helper was not built: ${result.reason || "unknown"}`);
}
}
}