Update app store build and binaries

This commit is contained in:
Nayam Amarshe
2023-10-14 06:30:49 +05:30
parent c3b124cba1
commit ab070b0563
17 changed files with 98 additions and 12 deletions

View File

@@ -40,7 +40,7 @@ app.on("ready", async () => {
autoUpdater.checkForUpdates();
}
log.info("🚀 UPSCAYL EXEC PATH: ", execPath("realesrgan"));
log.info("🚀 UPSCAYL EXEC PATH: ", execPath("bin"));
log.info("🚀 MODELS PATH: ", modelsPath);
});

View File

@@ -15,8 +15,7 @@ const binariesPath = isDev
? join(appRootDir, "resources", getPlatform()!, "bin")
: join(dirname(appRootDir), "bin");
const execPath = (execName) =>
resolve(join(binariesPath, `./upscayl-${execName}`));
const execPath = (execName) => resolve(join(binariesPath, `./upscayl-bin`));
const modelsPath = isDev
? resolve(join(appRootDir, "resources", "models"))

View File

@@ -8,7 +8,7 @@ export const spawnUpscayl = (
) => {
logit("📢 Upscayl Command: ", command);
const spawnedProcess = spawn(execPath(binaryName), command, {
const spawnedProcess = spawn(execPath("bin"), command, {
cwd: undefined,
detached: false,
});