Installer battlefield-1-ea-app

files:
- client: https://origin-a.akamaihd.net/EA-Desktop-Client-Download/installer-releases/EAappInstaller.exe
game:
  arch: win64
  exe: $GAMEDIR/drive_c/Program Files/Electronic Arts/EA Desktop/EA Desktop/EALauncher.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- execute:
    command: mkdir "$GAMEDIR/nv-shaders"
- input_menu:
    description: 'Applying DXVK workarounds. Please select your GPU:'
    id: GPU
    options:
    - Not needed for AMD. Ignore this.: AMD
    - ? 'dxgi.customVendorId = 10de

        dxgi.nvapiHack = False'
      : Nvidia
    preselect: Not needed for AMD. Ignore this.
- write_file:
    content: $INPUT_GPU
    file: $GAMEDIR/dxvk.conf
- task:
    app: arial d3dcompiler_43 d3dcompiler_47 d3dx9
    name: winetricks
    prefix: $GAMEDIR
- task:
    args: /silent
    description: Installing EA App...
    exclude_processes: EADesktop.exe EABackgroundService.exe EALocalHostSvc.exe QtWebEngineProcess.exe
      explorer.exe
    executable: client
    name: wineexec
    prefix: $GAMEDIR
    return_code: 768
- task:
    arch: win64
    name: winekill
    prefix: $GAMEDIR
system:
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    STAGING_SHARED_MEMORY: 0
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR/nv-shaders
wine:
  overrides:
    nvapi,nvapi64: disabled
    xaudio2_7: native,builtin
description: This script will install the EA app. Once the installation is complete,
  you'll need to manually download Battlefield 1 through the installed EA app.
game_slug: battlefield-1
gogslug: ''
humblestoreid: ''
installer_slug: battlefield-1-ea-app
name: Battlefield 1
notes: (It is recommended to install this game on a SSD if possible, this has been
  found to decrease stutters)
runner: wine
script:
  files:
  - client: https://origin-a.akamaihd.net/EA-Desktop-Client-Download/installer-releases/EAappInstaller.exe
  game:
    arch: win64
    exe: $GAMEDIR/drive_c/Program Files/Electronic Arts/EA Desktop/EA Desktop/EALauncher.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      description: Creating Wine prefix
      name: create_prefix
      prefix: $GAMEDIR
  - execute:
      command: mkdir "$GAMEDIR/nv-shaders"
  - input_menu:
      description: 'Applying DXVK workarounds. Please select your GPU:'
      id: GPU
      options:
      - Not needed for AMD. Ignore this.: AMD
      - ? 'dxgi.customVendorId = 10de

          dxgi.nvapiHack = False'
        : Nvidia
      preselect: Not needed for AMD. Ignore this.
  - write_file:
      content: $INPUT_GPU
      file: $GAMEDIR/dxvk.conf
  - task:
      app: arial d3dcompiler_43 d3dcompiler_47 d3dx9
      name: winetricks
      prefix: $GAMEDIR
  - task:
      args: /silent
      description: Installing EA App...
      exclude_processes: EADesktop.exe EABackgroundService.exe EALocalHostSvc.exe
        QtWebEngineProcess.exe explorer.exe
      executable: client
      name: wineexec
      prefix: $GAMEDIR
      return_code: 768
  - task:
      arch: win64
      name: winekill
      prefix: $GAMEDIR
  system:
    env:
      DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
      STAGING_SHARED_MEMORY: 0
      __GL_SHADER_DISK_CACHE: 1
      __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR/nv-shaders
  wine:
    overrides:
      nvapi,nvapi64: disabled
      xaudio2_7: native,builtin
slug: battlefield-1-ea-app
steamid: null
version: EA App
year: 2016
{
  "game_slug": "battlefield-1",
  "version": "EA App",
  "description": "This script will install the EA app. Once the installation is complete, you'll need to manually download Battlefield 1 through the installed EA app.",
  "notes": "(It is recommended to install this game on a SSD if possible, this has been found to decrease stutters)",
  "name": "Battlefield 1",
  "year": 2016,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "battlefield-1-ea-app",
  "installer_slug": "battlefield-1-ea-app",
  "script": {
    "files": [
      {
        "client": "https://origin-a.akamaihd.net/EA-Desktop-Client-Download/installer-releases/EAappInstaller.exe"
      }
    ],
    "game": {
      "arch": "win64",
      "exe": "$GAMEDIR/drive_c/Program Files/Electronic Arts/EA Desktop/EA Desktop/EALauncher.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "description": "Creating Wine prefix",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "mkdir \"$GAMEDIR/nv-shaders\""
        }
      },
      {
        "input_menu": {
          "description": "Applying DXVK workarounds. Please select your GPU:",
          "id": "GPU",
          "options": [
            {
              "Not needed for AMD. Ignore this.": "AMD"
            },
            {
              "dxgi.customVendorId = 10de\ndxgi.nvapiHack = False": "Nvidia"
            }
          ],
          "preselect": "Not needed for AMD. Ignore this."
        }
      },
      {
        "write_file": {
          "content": "$INPUT_GPU",
          "file": "$GAMEDIR/dxvk.conf"
        }
      },
      {
        "task": {
          "app": "arial d3dcompiler_43 d3dcompiler_47 d3dx9",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "args": "/silent",
          "description": "Installing EA App...",
          "exclude_processes": "EADesktop.exe EABackgroundService.exe EALocalHostSvc.exe QtWebEngineProcess.exe explorer.exe",
          "executable": "client",
          "name": "wineexec",
          "prefix": "$GAMEDIR",
          "return_code": 768
        }
      },
      {
        "task": {
          "arch": "win64",
          "name": "winekill",
          "prefix": "$GAMEDIR"
        }
      }
    ],
    "system": {
      "env": {
        "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
        "STAGING_SHARED_MEMORY": 0,
        "__GL_SHADER_DISK_CACHE": 1,
        "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR/nv-shaders"
      }
    },
    "wine": {
      "overrides": {
        "nvapi,nvapi64": "disabled",
        "xaudio2_7": "native,builtin"
      }
    }
  }
}
Back to game