1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-19 09:27:27 +01:00

Fixed export error

This commit is contained in:
Nayam Amarshe 2022-09-30 22:06:16 +05:30
parent 6a27ff37a4
commit 8ee15fbcdd
3 changed files with 9 additions and 8 deletions

View File

@ -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) {

View File

@ -1,5 +1,7 @@
module.exports = {
experimental: {
images: {
unoptimized: true
}
}
unoptimized: true,
},
},
};

View File

@ -105,8 +105,7 @@
"flatpak",
"zip"
],
"category": "Graphics;2DGraphics;RasterGraphics;ImageProcessing;",
"icon": "main/build/icon.png"
"category": "Graphics;2DGraphics;RasterGraphics;ImageProcessing;"
},
"win": {
"publish": [