| |
| const { app, Menu } = require("electron"); |
| const remoteMain = require("@electron/remote/main"); |
| remoteMain.initialize(); |
|
|
| |
| |
| app.allowRendererProcessReuse = true; |
| app.on("ready", () => { |
| |
| const window = require("./src/window"); |
| mainWindow = window.createBrowserWindow(app); |
| remoteMain.enable(mainWindow.webContents); |
| icon: 'assets\icons\win.icon.ico' |
| |
| |
|
|
| |
| mainWindow.loadURL("https://teledriveapp.herokuapp.com/startup"); |
|
|
| |
| |
| |
|
|
| |
| |
|
|
| |
| const menu = require("./src/menu"); |
| const template = menu.createTemplate(app.name); |
| const builtMenu = Menu.buildFromTemplate(template); |
| Menu.setApplicationMenu(builtMenu); |
| }); |
|
|
| |
| app.on("window-all-closed", () => { |
| app.quit(); |
| }); |
|
|