fix patch

This commit is contained in:
Maroxy 2021-10-23 13:09:35 +02:00
parent 7a07163b08
commit 8dadb08cd2

View file

@ -386,7 +386,8 @@ export class Genshinlib
let patcherProcess = exec(`yes yes | ${path.join(patchDir, 'patch.sh')}`, { let patcherProcess = exec(`yes yes | ${path.join(patchDir, 'patch.sh')}`, {
cwd: this.gameDir, cwd: this.gameDir,
env: { env: {
...process.env ...process.env,
WINEPREFIX: this.prefixDir
} }
}); });
@ -397,7 +398,8 @@ export class Genshinlib
let patcherAntiCrashProcess = exec(`yes | ${path.join(patchDir, 'patch_anti_logincrash.sh')}`, { let patcherAntiCrashProcess = exec(`yes | ${path.join(patchDir, 'patch_anti_logincrash.sh')}`, {
cwd: this.gameDir, cwd: this.gameDir,
env: { env: {
...process.env ...process.env,
WINEPREFIX: this.prefixDir
} }
}); });