Installer anthem-origin-w-dxvk

files:
- client: https://origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginThinSetup.exe
- updater: https://raw.githubusercontent.com/DrDoctor13/wine-origin-updater/master/updateorigin.sh
game:
  arch: win64
  exe: drive_c/Program Files (x86)/Origin/Origin.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- execute:
    command: mkdir "$GAMEDIR/anthem-nv-shaders"
- input_menu:
    description: 'Setting DXVK workarounds please choose your GPU:'
    id: GPU
    options:
    - ? '#Not needed for AMD. Ignore this.

        #d3d11.zeroInitWorkgroupMemory = False'
      : AMD
    - ? 'Fixes fps issues on menus.

        d3d11.zeroInitWorkgroupMemory = True'
      : Nvidia
    preselect: '#Not needed for AMD. Ignore this.

      #d3d11.zeroInitWorkgroupMemory = False'
- write_file:
    content: $INPUT_GPU
    file: $GAMEDIR/dxvk.conf
- task:
    app: nocrashdialog vcrun2012 vcrun2013 vcrun2015 win7
    arch: win64
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win64
    args: /silent
    description: Installing Origin... Login window will pop-up and close.
    exclude_processes: Origin.exe OriginClientService.exe OriginWebHelperService.exe
      QtWebEngineProcess.exe
    executable: client
    name: wineexec
    prefix: $GAMEDIR
- task:
    arch: win64
    name: winekill
    prefix: $GAMEDIR
- chmodx: updater
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Origin
    src: updater
- input_menu:
    description: Display DXVK fps, frametimes, and allocated memory for Anthem?
    id: HUD
    options:
    - fps,frametimes,memory: 'Yes'
    - '0': 'No'
    preselect: '0'
system:
  disable_runtime: false
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    DXVK_HUD: $INPUT_HUD
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR/anthem-nv-shaders
wine:
  overrides:
    nvapi,nvapi64: disabled
    xaudio2_7: native,builtin
description: Only sets up Origin and DXVK you'll need to download Anthem manually.
game_slug: anthem
gogslug: ''
humblestoreid: ''
installer_slug: anthem-origin-w-dxvk
name: Anthem
notes: 'Please read before installing: <a href="https://github.com/lutris/lutris/wiki/Game:-Origin">https://github.com/lutris/lutris/wiki/Game:-Origin</a>'
runner: wine
script:
  files:
  - client: https://origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginThinSetup.exe
  - updater: https://raw.githubusercontent.com/DrDoctor13/wine-origin-updater/master/updateorigin.sh
  game:
    arch: win64
    exe: drive_c/Program Files (x86)/Origin/Origin.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      description: Creating Wine prefix
      name: create_prefix
      prefix: $GAMEDIR
  - execute:
      command: mkdir "$GAMEDIR/anthem-nv-shaders"
  - input_menu:
      description: 'Setting DXVK workarounds please choose your GPU:'
      id: GPU
      options:
      - ? '#Not needed for AMD. Ignore this.

          #d3d11.zeroInitWorkgroupMemory = False'
        : AMD
      - ? 'Fixes fps issues on menus.

          d3d11.zeroInitWorkgroupMemory = True'
        : Nvidia
      preselect: '#Not needed for AMD. Ignore this.

        #d3d11.zeroInitWorkgroupMemory = False'
  - write_file:
      content: $INPUT_GPU
      file: $GAMEDIR/dxvk.conf
  - task:
      app: nocrashdialog vcrun2012 vcrun2013 vcrun2015 win7
      arch: win64
      name: winetricks
      prefix: $GAMEDIR
  - task:
      arch: win64
      args: /silent
      description: Installing Origin... Login window will pop-up and close.
      exclude_processes: Origin.exe OriginClientService.exe OriginWebHelperService.exe
        QtWebEngineProcess.exe
      executable: client
      name: wineexec
      prefix: $GAMEDIR
  - task:
      arch: win64
      name: winekill
      prefix: $GAMEDIR
  - chmodx: updater
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Origin
      src: updater
  - input_menu:
      description: Display DXVK fps, frametimes, and allocated memory for Anthem?
      id: HUD
      options:
      - fps,frametimes,memory: 'Yes'
      - '0': 'No'
      preselect: '0'
  system:
    disable_runtime: false
    env:
      DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
      DXVK_HUD: $INPUT_HUD
      __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR/anthem-nv-shaders
  wine:
    overrides:
      nvapi,nvapi64: disabled
      xaudio2_7: native,builtin
slug: anthem-origin-w-dxvk
steamid: null
version: Origin w/ DXVK
year: 2019
{
  "game_slug": "anthem",
  "version": "Origin w/ DXVK",
  "description": "Only sets up Origin and DXVK you'll need to download Anthem manually.",
  "notes": "Please read before installing: <a href=\"https://github.com/lutris/lutris/wiki/Game:-Origin\">https://github.com/lutris/lutris/wiki/Game:-Origin</a>",
  "name": "Anthem",
  "year": 2019,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "anthem-origin-w-dxvk",
  "installer_slug": "anthem-origin-w-dxvk",
  "script": {
    "files": [
      {
        "client": "https://origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginThinSetup.exe"
      },
      {
        "updater": "https://raw.githubusercontent.com/DrDoctor13/wine-origin-updater/master/updateorigin.sh"
      }
    ],
    "game": {
      "arch": "win64",
      "exe": "drive_c/Program Files (x86)/Origin/Origin.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "description": "Creating Wine prefix",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "mkdir \"$GAMEDIR/anthem-nv-shaders\""
        }
      },
      {
        "input_menu": {
          "description": "Setting DXVK workarounds please choose your GPU:",
          "id": "GPU",
          "options": [
            {
              "#Not needed for AMD. Ignore this.\n#d3d11.zeroInitWorkgroupMemory = False": "AMD"
            },
            {
              "Fixes fps issues on menus.\nd3d11.zeroInitWorkgroupMemory = True": "Nvidia"
            }
          ],
          "preselect": "#Not needed for AMD. Ignore this.\n#d3d11.zeroInitWorkgroupMemory = False"
        }
      },
      {
        "write_file": {
          "content": "$INPUT_GPU",
          "file": "$GAMEDIR/dxvk.conf"
        }
      },
      {
        "task": {
          "app": "nocrashdialog vcrun2012 vcrun2013 vcrun2015 win7",
          "arch": "win64",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "arch": "win64",
          "args": "/silent",
          "description": "Installing Origin... Login window will pop-up and close.",
          "exclude_processes": "Origin.exe OriginClientService.exe OriginWebHelperService.exe QtWebEngineProcess.exe",
          "executable": "client",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "arch": "win64",
          "name": "winekill",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "chmodx": "updater"
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Origin",
          "src": "updater"
        }
      },
      {
        "input_menu": {
          "description": "Display DXVK fps, frametimes, and allocated memory for Anthem?",
          "id": "HUD",
          "options": [
            {
              "fps,frametimes,memory": "Yes"
            },
            {
              "0": "No"
            }
          ],
          "preselect": "0"
        }
      }
    ],
    "system": {
      "disable_runtime": false,
      "env": {
        "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
        "DXVK_HUD": "$INPUT_HUD",
        "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR/anthem-nv-shaders"
      }
    },
    "wine": {
      "overrides": {
        "nvapi,nvapi64": "disabled",
        "xaudio2_7": "native,builtin"
      }
    }
  }
}
Back to game