mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-12 01:40:53 +01:00
temporary fix (works)
This commit is contained in:
parent
5f8704480b
commit
1206dc8beb
@ -2,10 +2,11 @@ const path = require("path");
|
||||
const { rootPath } = require("electron-root-path");
|
||||
const { isPackaged } = require("electron-is-packaged");
|
||||
const { getPlatform } = require("./getPlatform");
|
||||
const {app} = require('electron')
|
||||
|
||||
const IS_PROD = process.env.NODE_ENV === "production";
|
||||
|
||||
const binariesPath = path.join("./resources", getPlatform(), "./bin");
|
||||
const binariesPath = path.join(app.getAppPath(), "../", getPlatform(), "./bin");
|
||||
|
||||
const execPath = path.resolve(path.join(binariesPath, "./upscayl"));
|
||||
const modelsPath = path.resolve(path.join(binariesPath, "./models"));
|
||||
|
@ -95,6 +95,7 @@ ipcMain.handle(commands.SELECT_FOLDER, async (event, message) => {
|
||||
});
|
||||
|
||||
ipcMain.on(commands.UPSCAYL, async (event, payload) => {
|
||||
console.log(execPath)
|
||||
console.log(payload);
|
||||
const model = payload.model;
|
||||
const scale = payload.scaleFactor;
|
||||
|
14
package.json
14
package.json
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "upscayl",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"productName": "Upscayl",
|
||||
"author": "TGS963 <nayam@nay.am>",
|
||||
"email": "nay@am.com",
|
||||
@ -26,8 +26,16 @@
|
||||
"appId": "com.tgs963.upscayl",
|
||||
"asar": true,
|
||||
"extraFiles": [
|
||||
"constants",
|
||||
"resources"
|
||||
{
|
||||
"from": "constants",
|
||||
"to": "constants",
|
||||
"filter": ["**/*"]
|
||||
},
|
||||
{
|
||||
"from": "resources",
|
||||
"to": "resources",
|
||||
"filter": ["**/*"]
|
||||
}
|
||||
],
|
||||
"linux": {
|
||||
"publish": [
|
||||
|
Loading…
Reference in New Issue
Block a user