Added finish side and notification

This commit is contained in:
2022-06-29 22:54:44 +02:00
parent 5d53da42f9
commit a746e6aea6
7 changed files with 196 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ import path from 'path';
import { autoUpdater } from "electron-updater";
import logger from 'electron-log';
import { Platform, platform } from './components/platform';
logger.transports.console.format = "{h}:{i}:{s} {text}";
logger.transports.file.getFile();
logger.transports.file.resolvePath = () => path.join(app.getPath('userData'), "logs", "start.log");
@@ -112,6 +113,10 @@ const createWindow = () => {
mainWindow.on('close', () => {
mainWindow.webContents.send('closeApp');
});
ipcMain.on('openApp', () => {
mainWindow.show();
});
};
// This method will be called when Electron has finished