mirror of
https://github.com/upscayl/upscayl.git
synced 2026-02-19 11:55:37 -05:00
Fix model ID for high fidelity and update file protocol path handling for development mode
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user