-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
61 lines (59 loc) · 22.1 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
const { app, BrowserWindow, Tray, contextBridge, ipcMain} = require('electron');
const nativeImage = require('electron').nativeImage;
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = 'true';
const path = require('path');
const fs = require('fs');
function createWindow () {
const icon = nativeImage.createFromDataURL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVwAAAFCCAYAAAC9ymXHAAAAAXNSR0IArs4c6QAAIABJREFUeF7tnUvsJcd53e+8h/MkZyiN+LAlUZYgyUn4kGSZjqlQNhQbNJidFwaMwMssmJ0Cw0YcIHAEKUEiZSEQ2QQSsjIUCF4QliVAsWLKEqPI5Jh0bFEaiHp4NHwN5/1+BvPv+/1n+puuPuerru7bfe/5r8jp6nqcqvr1uV9XVW+Y6U8KjFCBR5966HpTtZ77/N9sGGF1VSUpQCmgwUvJpERDKyDgDq24yhtCAQF3CJVXuIxfTjhVVhI/QDds3sje2pju2//1BY35Tgrq5i4KaPB1UU/3QgUEXCiREqyQAgLuCnV2l6Z+4o//aWNMdcOmvCF04cTFxurs2L89VM1LZ6+0pmfrd+bVs1S53/lvL+Y1mMpdiZZdAQ2eZe/hQu0TcCshBdxCA2pFsxFwV6zjf+3f/XKjU0UybNqyqTHJ5XOX0a2N169drVdj+53bsvLxN125cHX+T1nNvK0OVy5afkWqN3v2P35Xc66MlJPMRZ0/yW7Lr7SAG9NOwI3ppdTtCgi4Ex0hH/v9j6xZuGuXrxVpwZ77dq3lc+b1c0Xy27Slvppgy84tWfmee+t84327DuzMyu/sG+3tu3y+PSZshW7ayq2W2Hv/bqqe169xjvzP/82zmrOUouNMpM4bZ7/AWgm4Ai4cJEowOgUE3AV3Cbtsaivp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KpV53Of+9z1G21+49v/s7Xpi3K4Ood21UZkv+0VcPvVV7kDBQRcDZFVUkDAXaXenlBb/WE6fTtcOdkJDY4JV1XAnXDnLXPVBdxl7t3VbZuAu7p9P8mW/85jH1iL+aI/tEpBh8cgBXW9DwUE3D5UVZ69KSDg9iatMh5AAQF3AJFVRH8KpADsHa4cbX99oJx5BQRcXiulHKECAu4IO0VVSirw/wFlyupg8ZpsPgAAAABJRU5ErkJggg==");
const appIcon = new Tray(icon);
const mainWindow = new BrowserWindow({
autoHideMenuBar: true,
icon: icon,
width: 800,
height: 600,
show: false,
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
nodeIntegration: true,
contextIsolation: false,
}
});
// and load the index.html of the app.
mainWindow.maximize();
mainWindow.setTitle("Loading...");
mainWindow.loadFile('index.html');
mainWindow.show();
ipcMain.on('loadStatus', (event, args) => {
mainWindow.setProgressBar(args);
});
ipcMain.on('updated', (event) => {
mainWindow.loadFile('index.html');
app.relaunch();
});
ipcMain.on('writeFile', (event, args) => {
var path = args.path;
var buff = args.data;
fs.writeFileSync(path, buff);
})
// Open the DevTools.
// mainWindow.webContents.openDevTools()
}
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.whenReady().then(() => {
createWindow()
app.on('activate', function () {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (BrowserWindow.getAllWindows().length === 0) createWindow()
})
})
// Quit when all windows are closed, except on macOS. There, it's common
// for applications and their menu bar to stay active until the user quits
// explicitly with Cmd + Q.
app.on('window-all-closed', function () {
if (process.platform !== 'darwin') app.quit()
})
// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here.