filecat 5.31.1 → 5.31.3
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.
- package/build/dist/{325.9ea6c9bbf4f88cfbe80b.js → 325.cebabea5cc1b75a2fd96.js} +2 -2
- package/build/dist/{377.d570d266ccfda9c89e47.js → 377.b73587c1099f75c9826b.js} +2 -2
- package/build/dist/859.bfc2c91ec24336bff39b.js +2 -0
- package/build/dist/{943.cf4a0c7f636c13235396.js → 943.5dfcce082d3f75a2f7b8.js} +2 -2
- package/build/dist/index.html +1 -1
- package/build/dist/{main.f92ff65daface994788d.js → main.e51f4df784c9280e3e52.js} +2 -2
- package/build/main.js +1 -1
- package/package.json +1 -1
- package/shell/start/windows-uninstall.js +17 -1
- package/build/dist/859.528b9dd1e0b66e4122f8.js +0 -2
- /package/build/dist/{325.9ea6c9bbf4f88cfbe80b.js.LICENSE.txt → 325.cebabea5cc1b75a2fd96.js.LICENSE.txt} +0 -0
- /package/build/dist/{377.d570d266ccfda9c89e47.js.LICENSE.txt → 377.b73587c1099f75c9826b.js.LICENSE.txt} +0 -0
- /package/build/dist/{859.528b9dd1e0b66e4122f8.js.LICENSE.txt → 859.bfc2c91ec24336bff39b.js.LICENSE.txt} +0 -0
- /package/build/dist/{943.cf4a0c7f636c13235396.js.LICENSE.txt → 943.5dfcce082d3f75a2f7b8.js.LICENSE.txt} +0 -0
- /package/build/dist/{main.f92ff65daface994788d.js.LICENSE.txt → main.e51f4df784c9280e3e52.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -37,6 +37,22 @@ function removeDirSafe(dir) {
|
|
|
37
37
|
console.log("已删除目录:", dir);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
+
function clearDirSafe(dir) {
|
|
41
|
+
if (!fs.existsSync(dir)) return;
|
|
42
|
+
|
|
43
|
+
const files = fs.readdirSync(dir);
|
|
44
|
+
|
|
45
|
+
for (const file of files) {
|
|
46
|
+
const fullPath = path.join(dir, file);
|
|
47
|
+
|
|
48
|
+
try {
|
|
49
|
+
fs.rmSync(fullPath, { recursive: true, force: true });
|
|
50
|
+
console.log("已删除:", fullPath);
|
|
51
|
+
} catch (e) {
|
|
52
|
+
console.error("删除失败:", fullPath, e.message);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
40
56
|
|
|
41
57
|
// =====================
|
|
42
58
|
// 安全删除文件
|
|
@@ -94,7 +110,7 @@ ws.query(shortcutPath, (err, options) => {
|
|
|
94
110
|
try {
|
|
95
111
|
|
|
96
112
|
// 删除安装目录
|
|
97
|
-
|
|
113
|
+
clearDirSafe(installDir);
|
|
98
114
|
|
|
99
115
|
// 删除开始菜单快捷方式
|
|
100
116
|
removeFileSafe(shortcutPath);
|