Skip to content

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

Fix image-upscayl command and add zip target to package.json

Nayam Amarshe10c880e32c89
diff --git a/electron/commands/image-upscayl.ts b/electron/commands/image-upscayl.ts
index 637c23c..eb3310e 100644
--- a/electron/commands/image-upscayl.ts
+++ b/electron/commands/image-upscayl.ts
@@ -169,7 +169,7 @@ const imageUpscayl = async (event, payload: ImageUpscaylPayload) => {
try {
await convertAndScale(
inputDir + slash + fullfileName,
- outFile,
+ isAlpha ? outFile + ".png" : outFile,
outFile,
desiredScale,
saveImageAs,
diff --git a/package.json b/package.json
index 5d897d6..89b1e8d 100644
--- a/package.json
+++ b/package.json
@@ -187,7 +187,8 @@
"github"
],
"target": [
- "nsis"
+ "nsis",
+ "zip"
],
"icon": "build/icon.png"
},