mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-30 05:28:15 +03:00
Fixed DXVK installation and deletion
This commit is contained in:
parent
15ee001b68
commit
0045e0576a
1 changed files with 6 additions and 9 deletions
|
@ -143,14 +143,11 @@ export default class DXVK
|
|||
const version = typeof dxvk !== 'string' ?
|
||||
dxvk.version : dxvk;
|
||||
|
||||
Process.run(`rm -rf "${Process.addSlashes(await constants.paths.dxvksDir + '/dxvk-' + version)}"`)
|
||||
.then((process) => {
|
||||
process.finish(() => {
|
||||
debugThread.log('Deletion completed');
|
||||
await Neutralino.os.execCommand(`rm -rf "${Process.addSlashes(await constants.paths.dxvksDir)}/dxvk-${version}"`);
|
||||
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
debugThread.log('Deletion completed');
|
||||
|
||||
resolve();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -185,9 +182,9 @@ export default class DXVK
|
|||
* And then run it
|
||||
*/
|
||||
(): Promise<void> => new Promise(async (resolve) => {
|
||||
const alias = runner ? `alias winecfg=\\"${runnerDir}/${runner.files.winecfg}\\"\\n` : '';
|
||||
const alias = runner ? `alias winecfg="${runnerDir}/${runner.files.winecfg}"\\n` : '';
|
||||
|
||||
Process.run(`eval $"${alias ? alias : ''}./setup_dxvk.sh install"`, {
|
||||
Process.run(`eval $'${alias}./setup_dxvk.sh install'`, {
|
||||
cwd: dxvkDir,
|
||||
env: {
|
||||
WINE: runner ? `${runnerDir}/${runner.files.wine}` : 'wine',
|
||||
|
|
Loading…
Reference in a new issue