Skip to content

Commit

Permalink
Prepare for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
liulalemx committed Aug 18, 2022
1 parent 48bfc04 commit 7c847d2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { app, BrowserWindow, ipcMain } = require("electron");
const { app, BrowserWindow, ipcMain, Menu } = require("electron");
const path = require("path");
const similarity_checker = require("./similarity_checker");

Expand Down Expand Up @@ -42,7 +42,7 @@ const createWindow = () => {
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
icon: "./assets/logo.ico",
icon: "src/assets/logo.ico",
webPreferences: {
preload: path.join(__dirname, "preload.js"),
nodeIntegration: true,
Expand All @@ -53,13 +53,18 @@ const createWindow = () => {
mainWindow.loadFile(path.join(__dirname, "index.html"));

// Open the DevTools.
mainWindow.webContents.openDevTools();
// 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.on("ready", createWindow);
app.on("ready", function () {
createWindow();
const template = [];
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
});

// 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
Expand All @@ -80,6 +85,3 @@ app.on("activate", () => {

// 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 import them here.
// app.whenReady().then(() => {

// });

0 comments on commit 7c847d2

Please sign in to comment.