This commit is contained in:
fanxb 2024-01-03 22:26:24 +08:00
parent 8c6416ec87
commit 55af6bd54e
2 changed files with 1708 additions and 2 deletions

View File

@ -66,8 +66,9 @@ async function startBackend() {
}
let userHome = process.env.HOME || process.env.USERPROFILE;
let dataPath = path.join(userHome, "openRenamer");
let exist = fs.existsSync("./openRenamerBackend");
const childProcess = spawn('node', [exist ? './' : '../' + 'openRenamerBackend/dist/index.js'], {
log.info("start check folder exist", __dirname, __filename)
let exist = fs.existsSync("openRenamerBackend");
const childProcess = spawn('node', [(exist ? '' : '../') + 'openRenamerBackend/dist/index.js'], {
env: {
"PORT": port,
"DATA_PATH": dataPath

1705
electron/yarn.lock Normal file

File diff suppressed because it is too large Load Diff