fix: 发布 1.1.22,官方桌面 app.asar 还在时应用不再 ENOENT

归档还在时改写真实 resources/app;没有归档时仍用 node:fs。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-09-27 14:57:48 +08:00
1 parent 4ef30254f2
commit 75e7a2d849
10 files changed
+153 -50

No files matched your search

+2 -3
View File
@@ -1,5 +1,4 @@
import fs from "node:fs";
import { promises as fsp } from "node:fs";
import { fsFor } from "./extract-asar.js";
import * as core from "./core.js";
import * as hostctl from "./host.js";
import * as rules from "./rules.js";
@@ -99,7 +98,7 @@ function watchWebTreeReady(ctx) {
}
function fsExists(fp) {
return fs.existsSync(fp);
return fsFor(fp).existsSync(fp);
}
function line(title, value, ok = null) {