Skip to content

πŸ†™ Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.

Update command filtering in getBatchArguments and spawnUpscayl

Nayam Amarshec2d64ebf5709
diff --git a/electron/utils/get-arguments.ts b/electron/utils/get-arguments.ts
index 6423995..0f90c6a 100644
--- a/electron/utils/get-arguments.ts
+++ b/electron/utils/get-arguments.ts
@@ -136,5 +136,5 @@ export const getBatchArguments = (
gpuId ? gpuId : "",
"-f",
saveImageAs,
- ].filter((arg) => arg !== "");
+ ];
};
diff --git a/electron/utils/spawn-upscayl.ts b/electron/utils/spawn-upscayl.ts
index 696db64..034a15d 100644
--- a/electron/utils/spawn-upscayl.ts
+++ b/electron/utils/spawn-upscayl.ts
@@ -5,12 +5,19 @@ export const spawnUpscayl = (
command: string[],
logit: (...args: any) => void
) => {
- logit("πŸ“’ Upscayl Command: ", command);
+ logit(
+ "πŸ“’ Upscayl Command: ",
+ command.filter((arg) => arg !== "")
+ );
- const spawnedProcess = spawn(execPath, command, {
- cwd: undefined,
- detached: false,
- });
+ const spawnedProcess = spawn(
+ execPath,
+ command.filter((arg) => arg !== ""),
+ {
+ cwd: undefined,
+ detached: false,
+ }
+ );
return {
process: spawnedProcess,
diff --git a/mas.json b/mas.json
index c736026..271888c 100644
--- a/mas.json
+++ b/mas.json
@@ -2,7 +2,7 @@
"productName": "Upscayl",
"appId": "org.upscayl.Upscayl",
"afterSign": "./notarize.js",
- "buildVersion": "24.01.16",
+ "buildVersion": "24.01.17",
"asar": true,
"asarUnpack": ["**/node_modules/sharp/**/*", "**/node_modules/@img/**/*"],
"extraFiles": [