From 6139c460bef90ec85bd4dfb0441211d7420de7d1 Mon Sep 17 00:00:00 2001 From: Maroxy Date: Fri, 31 Dec 2021 22:11:38 +0100 Subject: [PATCH] Fix DXVK not applying due to shell file looking for wine --- src/ts/core/DXVK.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ts/core/DXVK.ts b/src/ts/core/DXVK.ts index 0ca6694..e3f6e5f 100644 --- a/src/ts/core/DXVK.ts +++ b/src/ts/core/DXVK.ts @@ -171,6 +171,11 @@ export default class DXVK const pipeline = promisify({ callbacks: [ + /** + * Replace all wine entries and remove wineboot -u to make applying dxvk work + */ + () => Neutralino.os.execCommand(`sed -i 's/wine="wine"/wine="${runnerDir.replaceAll('/', '\\/')}\\/${runner!.files.wine.replace('64', '').replaceAll('/', '\\/')}"/g' ${dxvkDir}/setup_dxvk.sh && sed -i 's/wine64="wine64"/wine64="${runnerDir.replaceAll('/', '\\/')}\\/${runner!.files.wine.replaceAll('/', '\\/')}"/g' ${dxvkDir}/setup_dxvk.sh && sed -i 's/wineboot="wineboot"/wineboot="${runnerDir.replaceAll('/', '\\/')}\\/${runner!.files.wine.replace('64', 'boot').replaceAll('/', '\\/')}"/g' ${dxvkDir}/setup_dxvk.sh && sed -i '/$wineboot -u/d' ${dxvkDir}/setup_dxvk.sh`), + /** * Make the installation script executable */