1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-12 01:40:53 +01:00

fixed broken builds due to folder structure

This commit is contained in:
TGS963 2022-08-26 13:47:24 +05:30
parent efab7018b0
commit 28ba2ccaa2
2 changed files with 24 additions and 2 deletions

View File

@ -9,6 +9,8 @@ const binariesPath = isDev
: join(dirname(appRootDir.get()), "..", "Resources", "bin");
const execPath = path.resolve(path.join(binariesPath, "./upscayl"));
const modelsPath = path.resolve(path.join(binariesPath, "../../models"));
const modelsPath = isDev
? path.resolve(path.join(binariesPath, "../../models"))
: path.resolve(path.join(binariesPath, "../models"))
module.exports = { execPath, modelsPath };

View File

@ -36,7 +36,8 @@
"build": "next build renderer && next export renderer",
"pack-app": "npm run build && electron-builder --dir",
"dist": "npm run build && DEBUG=* electron-builder",
"publish-app": "npm run build && electron-builder -l --publish always"
"publish-app": "export GH_TOKEN=<> && npm run build && electron-builder -w --publish always",
"publish-win": "set GH_TOKEN=<> && npm run build && electron-builder -w --publish always"
},
"build": {
"productName": "Upscayl",
@ -49,6 +50,13 @@
"filter": [
"**/*"
]
},
{
"from": "resources/models",
"to": "Resources/models",
"filter": [
"**/*"
]
}
],
"mac": {
@ -68,6 +76,18 @@
"category": "Graphics;2DGraphics;RasterGraphics;ImageProcessing;",
"maintainer": "TGS963 <tgs@963.com>"
},
"win": {
"publish": [
"github"
],
"target": [
"msi"
],
"asarUnpack": [
"**/node_modules/sharp/**"
],
"icon": "main/build/icon.png"
},
"deb": {
"packageCategory": "graphics"
},