From 8ee15fbcdd8701da5f2fecf8d168da9ad8c0c542 Mon Sep 17 00:00:00 2001 From: Nayam Amarshe <25067102+NayamAmarshe@users.noreply.github.com> Date: Fri, 30 Sep 2022 22:06:16 +0530 Subject: [PATCH] Fixed export error --- main/index.js | 6 +++--- next.config.js | 8 +++++--- package.json | 3 +-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/main/index.js b/main/index.js index ef24271..69241c7 100644 --- a/main/index.js +++ b/main/index.js @@ -28,13 +28,13 @@ let mainWindow; app.on("ready", async () => { await prepareNext("./renderer"); - console.log("🚀 Icon Path: ", join(__dirname, "icon.png")); + console.log("🚀 Icon Path: ", join(__dirname, "build", "icon.png")); console.log("🚀 Development Mode? :", isDev); console.log("🚀 RS Executable Path: ", execPath("")); console.log("🚀 Models: ", modelsPath); mainWindow = new BrowserWindow({ - icon: join(__dirname, "build", "icon.png"), + icon: join(app.getAppPath(), "icon.png"), width: 1100, height: 740, minHeight: 500, @@ -66,7 +66,7 @@ app.on("ready", async () => { mainWindow.once("ready-to-show", () => { mainWindow.show(); - mainWindow.webContents.setZoomFactor(1) + mainWindow.webContents.setZoomFactor(1); }); if (!isDev) { diff --git a/next.config.js b/next.config.js index a75d922..8c71f80 100644 --- a/next.config.js +++ b/next.config.js @@ -1,5 +1,7 @@ module.exports = { + experimental: { images: { - unoptimized: true - } -} + unoptimized: true, + }, + }, +}; diff --git a/package.json b/package.json index 0381c2d..3599a59 100644 --- a/package.json +++ b/package.json @@ -105,8 +105,7 @@ "flatpak", "zip" ], - "category": "Graphics;2DGraphics;RasterGraphics;ImageProcessing;", - "icon": "main/build/icon.png" + "category": "Graphics;2DGraphics;RasterGraphics;ImageProcessing;" }, "win": { "publish": [