mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-30 18:24:27 +01:00
17 lines
615 B
JavaScript
17 lines
615 B
JavaScript
const { join, dirname } = require("path");
|
|
const path = require("path");
|
|
const { getPlatform } = require("./getPlatform");
|
|
const appRootDir = require("app-root-dir");
|
|
const isDev = require("electron-is-dev");
|
|
|
|
const binariesPath = isDev
|
|
? join(appRootDir.get(), "resources", getPlatform(), "bin")
|
|
: join(dirname(appRootDir.get()), "..", "Resources", "bin");
|
|
|
|
const execPath = path.resolve(path.join(binariesPath, "./upscayl"));
|
|
const modelsPath = isDev
|
|
? path.resolve(path.join(binariesPath, "../../models"))
|
|
: path.resolve(path.join(binariesPath, "../models"))
|
|
|
|
module.exports = { execPath, modelsPath };
|