mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 10:20:22 +08:00
fix: 发布 1.1.22,官方桌面 app.asar 还在时应用不再 ENOENT
归档还在时改写真实 resources/app;没有归档时仍用 node:fs。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
4538da436d
commit
58c950ae65
10 files changed
+153
-50
No files matched your search
+2
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user