fix throwing error screen before loading update
This commit is contained in:
@@ -15,6 +15,13 @@ ipcMain.handleOnce('report-boot-process-failed', async () => {
|
||||
* приложение попыталось загрузиться в режиме разработки.
|
||||
*/
|
||||
let filePath = path.join(WORKING_DIR, 'b');
|
||||
if(!await existsFile(filePath)){
|
||||
/**
|
||||
* Исправление ошибки когда директории нет.
|
||||
*/
|
||||
logger.log("No compiled files to remove");
|
||||
return;
|
||||
}
|
||||
await fs.rmdir(filePath, { recursive: true });
|
||||
logger.log("Boot process failed, removed compiled files");
|
||||
logger.log(`Removed compiled files at ${filePath}`);
|
||||
|
||||
Reference in New Issue
Block a user