Fix DXVK not applying due to shell file looking for wine

This commit is contained in:
Maroxy 2021-12-31 22:11:38 +01:00
parent 5a00b95d20
commit 6139c460be
No known key found for this signature in database
GPG key ID: F4B27EADB21E3021

View file

@ -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
*/