Installer command-and-conquer-generals-origin

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/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 vcrun2017 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
system:
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR/nv-shaders
  exclude_processes: QtWebEngineProcess.exe ActivationUI.exe OriginWebHelperService.exe
wine:
  overrides:
    nvapi,nvapi64: disabled
    xaudio2_7: native,builtin
description: Only sets up Origin and DXVK you'll need to download Command and Conquer:Generals
  Evolution manually.
game_slug: command-and-conquer-generals-evolution
gogslug: ''
humblestoreid: ''
installer_slug: command-and-conquer-generals-origin
name: 'Command And Conquer : Generals Evolution'
notes: "For Origin install notes see here: https://github.com/lutris/docs/blob/master/Origin.md\r\
  \n*This is a Red Alert 3 Mod. Do not use Uprising*\r\n\r\nInstall Origin.\r\nLoad\
  \ Origin and install Red Alert 3.\r\nLaunch Red Alert 3, enter a Skirmish game and\
  \ then immediately exit.\r\nInstall C&C:General Evolution\r\nApply 4 GB Patch\r\n\
  \r\n*If your Red Alert 3 is part of the Ultimate Collection download the C&C Ultimate\
  \ Launcher below, install it, then launch Red Alert 3. After selecting the original\
  \ Red Alert 3 you will see a window pop up. Click Game Browser, Mods, GenEvo, then\
  \ click Launch Game. If the old style launcher pops up instead, create a shortcut\
  \ to RA3.exe with the argument -ui and launch that instead*\r\n\r\nDownload C&C:Generals\
  \ Evolution here:\r\nhttps://www.moddb.com/mods/command-and-conquer-generals-evolution/downloads/generals-evolution-beta-03\r\
  \n\r\nC&C Ultimate Collection Launcher:\r\nhttps://www.moddb.com/downloads/cc-ultimate-collection-launchers-with-mod-support\r\
  \n\r\nRed Alert 3 4GB Patch:\r\nhttps://www.moddb.com/games/cc-red-alert-3/downloads/cc-4gb-auto-patcher-v100\r\
  \n\"Patches x86 executables in order to let them have 4GB (instead of only 2) of\
  \ virtual memory on x64 platforms.\""
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/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 vcrun2017 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
  system:
    env:
      DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
      __GL_SHADER_DISK_CACHE: 1
      __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR/nv-shaders
    exclude_processes: QtWebEngineProcess.exe ActivationUI.exe OriginWebHelperService.exe
  wine:
    overrides:
      nvapi,nvapi64: disabled
      xaudio2_7: native,builtin
slug: command-and-conquer-generals-origin
steamid: null
version: Origin
year: 2021
{
  "game_slug": "command-and-conquer-generals-evolution",
  "version": "Origin",
  "description": "Only sets up Origin and DXVK you'll need to download Command and Conquer:Generals Evolution manually.",
  "notes": "For Origin install notes see here: https://github.com/lutris/docs/blob/master/Origin.md\r\n*This is a Red Alert 3 Mod. Do not use Uprising*\r\n\r\nInstall Origin.\r\nLoad Origin and install Red Alert 3.\r\nLaunch Red Alert 3, enter a Skirmish game and then immediately exit.\r\nInstall C&C:General Evolution\r\nApply 4 GB Patch\r\n\r\n*If your Red Alert 3 is part of the Ultimate Collection download the C&C Ultimate Launcher below, install it, then launch Red Alert 3. After selecting the original Red Alert 3 you will see a window pop up. Click Game Browser, Mods, GenEvo, then click Launch Game. If the old style launcher pops up instead, create a shortcut to RA3.exe with the argument -ui and launch that instead*\r\n\r\nDownload C&C:Generals Evolution here:\r\nhttps://www.moddb.com/mods/command-and-conquer-generals-evolution/downloads/generals-evolution-beta-03\r\n\r\nC&C Ultimate Collection Launcher:\r\nhttps://www.moddb.com/downloads/cc-ultimate-collection-launchers-with-mod-support\r\n\r\nRed Alert 3 4GB Patch:\r\nhttps://www.moddb.com/games/cc-red-alert-3/downloads/cc-4gb-auto-patcher-v100\r\n\"Patches x86 executables in order to let them have 4GB (instead of only 2) of virtual memory on x64 platforms.\"",
  "name": "Command And Conquer : Generals Evolution",
  "year": 2021,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "command-and-conquer-generals-origin",
  "installer_slug": "command-and-conquer-generals-origin",
  "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/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 vcrun2017 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"
        }
      }
    ],
    "system": {
      "env": {
        "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
        "__GL_SHADER_DISK_CACHE": 1,
        "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR/nv-shaders"
      },
      "exclude_processes": "QtWebEngineProcess.exe ActivationUI.exe OriginWebHelperService.exe"
    },
    "wine": {
      "overrides": {
        "nvapi,nvapi64": "disabled",
        "xaudio2_7": "native,builtin"
      }
    }
  }
}
Back to game