Skip to content

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

Fix model ID for high fidelity and update file protocol path handling for development mode

Nayam Amarshe4347196efb10
diff --git a/common/models-list.ts b/common/models-list.ts
index 810d638..d061022 100644
--- a/common/models-list.ts
+++ b/common/models-list.ts
@@ -6,7 +6,7 @@ export const MODELS = {
id: "upscayl-lite-4x",
},
"high-fidelity-4x": {
- id: "hfa2k-4x",
+ id: "high-fidelity-4x",
},
"remacri-4x": {
id: "remacri-4x",
diff --git a/electron/index.ts b/electron/index.ts
index 161f3d1..64b75fd 100644
--- a/electron/index.ts
+++ b/electron/index.ts
@@ -35,7 +35,12 @@ app.on("ready", async () => {
});
protocol.registerFileProtocol("public", (request, callback) => {
const filePath = decodeURI(request.url.replace("public:///", ""));
- const asarPath = path.join(app.getAppPath(), "renderer", "out", filePath);
+ const asarPath = path.join(
+ app.getAppPath(),
+ "renderer",
+ process.env.NODE_ENV === "development" ? "public" : "out",
+ filePath,
+ );
callback(asarPath);
});
logit("πŸšƒ App Path: ", app.getAppPath());