⬆️
This commit is contained in:
parent
9048b9e52f
commit
dc91c25941
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ let resetWindowStateOnRestart = false;
|
|||
remote.initialize();
|
||||
|
||||
app.setPath("userData", app.getPath("userData") + "-Electron"); // `~/.config` 下 Electron 相关文件夹名称改为 `SiYuan-Electron` https://github.com/siyuan-note/siyuan/issues/3349
|
||||
fs.rmdirSync(app.getPath("appData") + "/" + app.name, {recursive: true}); // 删除自动创建的应用目录 https://github.com/siyuan-note/siyuan/issues/13150
|
||||
fs.rmSync(app.getPath("appData") + "/" + app.name, {recursive: true}); // 删除自动创建的应用目录 https://github.com/siyuan-note/siyuan/issues/13150
|
||||
|
||||
if (!app.requestSingleInstanceLock()) {
|
||||
app.quit();
|
||||
|
|
|
@ -322,7 +322,7 @@ ${response.data.replace("%pages", "<span class=totalPages></span>").replace("%pa
|
|||
fs.readdir(dir, function (err, files) {
|
||||
files = files.map(file => path.join(dir, file)); // a/b a/m
|
||||
Promise.all(files.map(file => removePromise(file))).then(function () {
|
||||
fs.rmdir(dir, resolve);
|
||||
fs.rm(dir, resolve);
|
||||
});
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue