Installer geforce-now-legacy

This script is for reference only and can't be directly used to install the game in the Lutris client. To install the game, download the full script.

files:
- setup: https://download.nvidia.com/gfnpc/GeForceNOW-release.exe
game:
  arch: win64
  exe: drive_c/users/$USER/Local Settings/Application Data/NVIDIA Corporation/GeForceNOW/CEF/GeForceNOW.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- task:
    arch: win64
    description: Installing GeForce Now
    exclude_processes: GeForceNOW.exe GeForceNOWReliabilityMonitor.exe GeForceNOWStreamer.exe
      GeForceNOWContainer.exe
    executable: setup
    name: wineexec
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    app: mf
    arch: win64
    description: Installing needed libraries
    name: winetricks
    prefix: $GAMEDIR
- task:
    description: Enabling Wine VAAPI GPU acceleration support
    key: backend
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DXVA2
    type: REG_SZ
    value: va
- execute:
    args: sed -i -e 's/nv-gpu-accel=true/nv-gpu-accel=false/' -e 's/dx11/dx9/' -e
      's/nv-sdl-iohid-config=false/nv-sdl-iohid-config=true/' -e 's/nv-sdl-hidpi=false/nv-sdl-hidpi=true/'
      "$GAMEDIR/drive_c/users/$USER/Local Settings/Application Data//NVIDIA Corporation/GeForceNOW/CEF/GeForceNOW.json"
      "$GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/NVIDIA Corporation/GeForceNOW/CEF/GeForceNOWStreamer.json"
    description: Editing configuration files
    file: /usr/bin/env
- write_file:
    content: '#!/bin/sh

      sed -i -e "s/nv-gpu-accel=true/nv-gpu-accel=false/" -e "s/dx11/dx9/" -e "s/nv-sdl-iohid-config=false/nv-sdl-iohid-config=true/"
      -e "s/nv-sdl-hidpi=false/nv-sdl-hidpi=true/" "$GAMEDIR/drive_c/users/$USER/Local
      Settings/Application Data/NVIDIA Corporation/GeForceNOW/CEF/GeForceNOW.json"
      "$GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/NVIDIA Corporation/GeForceNOW/CEF/GeForceNOWStreamer.json"'
    file: $GAMEDIR/configupdater.sh
- chmodx: $GAMEDIR/configupdater.sh
- execute:
    file: $GAMEDIR/configupdater.sh
system:
  manual_command: $GAMEDIR/configupdater.sh
  prelaunch_command: $GAMEDIR/configupdater.sh
  prelaunch_wait: true
wine:
  dxvk: false
  version: lutris-gfn-6-x86_64
{
  "files": [
    {
      "setup": "https://download.nvidia.com/gfnpc/GeForceNOW-release.exe"
    }
  ],
  "game": {
    "arch": "win64",
    "exe": "drive_c/users/$USER/Local Settings/Application Data/NVIDIA Corporation/GeForceNOW/CEF/GeForceNOW.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win64",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Installing GeForce Now",
        "exclude_processes": "GeForceNOW.exe GeForceNOWReliabilityMonitor.exe GeForceNOWStreamer.exe GeForceNOWContainer.exe",
        "executable": "setup",
        "name": "wineexec"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "mf",
        "arch": "win64",
        "description": "Installing needed libraries",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "description": "Enabling Wine VAAPI GPU acceleration support",
        "key": "backend",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DXVA2",
        "type": "REG_SZ",
        "value": "va"
      }
    },
    {
      "execute": {
        "args": "sed -i -e 's/nv-gpu-accel=true/nv-gpu-accel=false/' -e 's/dx11/dx9/' -e 's/nv-sdl-iohid-config=false/nv-sdl-iohid-config=true/' -e 's/nv-sdl-hidpi=false/nv-sdl-hidpi=true/' \"$GAMEDIR/drive_c/users/$USER/Local Settings/Application Data//NVIDIA Corporation/GeForceNOW/CEF/GeForceNOW.json\" \"$GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/NVIDIA Corporation/GeForceNOW/CEF/GeForceNOWStreamer.json\"",
        "description": "Editing configuration files",
        "file": "/usr/bin/env"
      }
    },
    {
      "write_file": {
        "content": "#!/bin/sh\nsed -i -e \"s/nv-gpu-accel=true/nv-gpu-accel=false/\" -e \"s/dx11/dx9/\" -e \"s/nv-sdl-iohid-config=false/nv-sdl-iohid-config=true/\" -e \"s/nv-sdl-hidpi=false/nv-sdl-hidpi=true/\" \"$GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/NVIDIA Corporation/GeForceNOW/CEF/GeForceNOW.json\" \"$GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/NVIDIA Corporation/GeForceNOW/CEF/GeForceNOWStreamer.json\"",
        "file": "$GAMEDIR/configupdater.sh"
      }
    },
    {
      "chmodx": "$GAMEDIR/configupdater.sh"
    },
    {
      "execute": {
        "file": "$GAMEDIR/configupdater.sh"
      }
    }
  ],
  "system": {
    "manual_command": "$GAMEDIR/configupdater.sh",
    "prelaunch_command": "$GAMEDIR/configupdater.sh",
    "prelaunch_wait": true
  },
  "wine": {
    "dxvk": false,
    "version": "lutris-gfn-6-x86_64"
  }
}
Back to game