Installer star-wars-battlefront-ii-2017-epic-games-store

files:
- epicsetup: https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi
game:
  arch: win64
  args: -opengl -SkipBuildPatchPrereq
  exe: drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating Wine prefix
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- execute:
    command: mkdir "$GAMEDIR/nv-shaders"
- write_file:
    content: dxgi.nvapiHack = False
    file: $GAMEDIR/dxvk.conf
- task:
    app: arial d3dcompiler_43 d3dcompiler_47 d3dx9
    arch: win64
    description: Installing dependencies for Origin
    name: winetricks
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    app: vcrun2019 corefonts win10
    arch: win64
    description: Installing dependencies for Epic Games Store
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win64
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 89 84 85
- task:
    arch: win64
    args: /desktop=EGS,$RESOLUTION msiexec /i "$epicsetup" /q
    description: Installing Epic Games Store...
    executable: $GAMEDIR/drive_c/windows/explorer.exe
    include_processes: explorer.exe
    name: wineexec
    prefix: $GAMEDIR
- task:
    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
    exclude_processes: QtWebEngineProcess.exe
wine:
  overrides:
    nvapi,nvapi64: disabled
description: An installer for the Epic Games Store version of the game.It will install
  the Epic Games Store. Origin will be installed from Epic itself, as the Epic Games
  Store version requires Origin.A good amount of manual work is required after the
  script finishes, including the actual installation of the game.
game_slug: star-wars-battlefront-ii-2017
gogslug: ''
humblestoreid: ''
installer_slug: star-wars-battlefront-ii-2017-epic-games-store
name: Star Wars Battlefront II (2017)
notes: "You need to perform the following tasks to finish the installation. Write\
  \ them down.\r\n\r\nAfter installation script is finished:\r\n1. Set Wine to Windows\
  \ 10:\r\nPress the WINE icon next to the \"PLAY\" button in Lutris.\r\nPress \"\
  Wine configuration\"\r\nSelect \"Windows 10\" in the drop down menu\r\nPress \"\
  Apply\" and \"OK\"\r\n\r\n4. Log into Epic Games Store:\r\nPress \"PLAY\" in Lutris\r\
  \nLog into Epic Games Store\r\n\r\n5. Install Battlefront II. If it's listed as\
  \ \"Unavailable\", just open and close the game menu on the Epic launcher.\r\nIt\
  \ will auto-start the Origin installer. Install with all default options.\r\nThe\
  \ Origin installer will auto run, and the Battlefront II installation options prompt\
  \ will open. Install with all default options.\r\n\r\n6. Profit! To start the game\
  \ (Do this every time you want to play Battlefront 2):\r\nPress \"LAUNCH\" in Lutris.\r\
  \nStart Battlefront 2 using the Epic Games Store."
runner: wine
script:
  files:
  - epicsetup: https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi
  game:
    arch: win64
    args: -opengl -SkipBuildPatchPrereq
    exe: drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      description: Creating Wine prefix
      install_gecko: false
      install_mono: false
      name: create_prefix
      prefix: $GAMEDIR
  - execute:
      command: mkdir "$GAMEDIR/nv-shaders"
  - write_file:
      content: dxgi.nvapiHack = False
      file: $GAMEDIR/dxvk.conf
  - task:
      app: arial d3dcompiler_43 d3dcompiler_47 d3dx9
      arch: win64
      description: Installing dependencies for Origin
      name: winetricks
      prefix: $GAMEDIR
  - task:
      name: winekill
      prefix: $GAMEDIR
  - task:
      app: vcrun2019 corefonts win10
      arch: win64
      description: Installing dependencies for Epic Games Store
      name: winetricks
      prefix: $GAMEDIR
  - task:
      arch: win64
      key: background
      name: set_regedit
      path: HKEY_CURRENT_USER\Control Panel\Colors\
      prefix: $GAMEDIR
      type: REG_SZ
      value: 89 84 85
  - task:
      arch: win64
      args: /desktop=EGS,$RESOLUTION msiexec /i "$epicsetup" /q
      description: Installing Epic Games Store...
      executable: $GAMEDIR/drive_c/windows/explorer.exe
      include_processes: explorer.exe
      name: wineexec
      prefix: $GAMEDIR
  - task:
      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
      exclude_processes: QtWebEngineProcess.exe
  wine:
    overrides:
      nvapi,nvapi64: disabled
slug: star-wars-battlefront-ii-2017-epic-games-store
steamid: null
version: Epic Games Store
year: 2017
{
  "game_slug": "star-wars-battlefront-ii-2017",
  "version": "Epic Games Store",
  "description": "An installer for the Epic Games Store version of the game.It will install the Epic Games Store. Origin will be installed from Epic itself, as the Epic Games Store version requires Origin.A good amount of manual work is required after the script finishes, including the actual installation of the game.",
  "notes": "You need to perform the following tasks to finish the installation. Write them down.\r\n\r\nAfter installation script is finished:\r\n1. Set Wine to Windows 10:\r\nPress the WINE icon next to the \"PLAY\" button in Lutris.\r\nPress \"Wine configuration\"\r\nSelect \"Windows 10\" in the drop down menu\r\nPress \"Apply\" and \"OK\"\r\n\r\n4. Log into Epic Games Store:\r\nPress \"PLAY\" in Lutris\r\nLog into Epic Games Store\r\n\r\n5. Install Battlefront II. If it's listed as \"Unavailable\", just open and close the game menu on the Epic launcher.\r\nIt will auto-start the Origin installer. Install with all default options.\r\nThe Origin installer will auto run, and the Battlefront II installation options prompt will open. Install with all default options.\r\n\r\n6. Profit! To start the game (Do this every time you want to play Battlefront 2):\r\nPress \"LAUNCH\" in Lutris.\r\nStart Battlefront 2 using the Epic Games Store.",
  "name": "Star Wars Battlefront II (2017)",
  "year": 2017,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "star-wars-battlefront-ii-2017-epic-games-store",
  "installer_slug": "star-wars-battlefront-ii-2017-epic-games-store",
  "script": {
    "files": [
      {
        "epicsetup": "https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi"
      }
    ],
    "game": {
      "arch": "win64",
      "args": "-opengl -SkipBuildPatchPrereq",
      "exe": "drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "description": "Creating Wine prefix",
          "install_gecko": false,
          "install_mono": false,
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "mkdir \"$GAMEDIR/nv-shaders\""
        }
      },
      {
        "write_file": {
          "content": "dxgi.nvapiHack = False",
          "file": "$GAMEDIR/dxvk.conf"
        }
      },
      {
        "task": {
          "app": "arial d3dcompiler_43 d3dcompiler_47 d3dx9",
          "arch": "win64",
          "description": "Installing dependencies for Origin",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "name": "winekill",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "vcrun2019 corefonts win10",
          "arch": "win64",
          "description": "Installing dependencies for Epic Games Store",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "arch": "win64",
          "key": "background",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "89 84 85"
        }
      },
      {
        "task": {
          "arch": "win64",
          "args": "/desktop=EGS,$RESOLUTION msiexec /i \"$epicsetup\" /q",
          "description": "Installing Epic Games Store...",
          "executable": "$GAMEDIR/drive_c/windows/explorer.exe",
          "include_processes": "explorer.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "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",
        "exclude_processes": "QtWebEngineProcess.exe"
      }
    },
    "wine": {
      "overrides": {
        "nvapi,nvapi64": "disabled"
      }
    }
  }
}
Back to game