Installer tomb-raider-ii-gog-tr2af-tr2main

custom-name: Tomb Raider 2 - GOG - TRAF
files:
- tr2af: https://github.com/Carlmundo/TombRaider2-AutomatedFix/releases/download/1.0/TR2AF_1.0.exe
- tr2main: https://github.com/Arsunt/TR2Main/releases/download/v0.8.2/TR2Main_v0.8.2.zip
- inno: http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz
- gog: N/A:Select the installer downloaded from GOG
game:
  arch: win64
  exe: drive_c/TR2/Tomb2.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating WINE prefix
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $CACHE
    file: inno
- execute:
    args: -d "$CACHE/" "$gog"
    file: $CACHE/innoextract
- move:
    dst: $GAMEDIR/drive_c/TR2
    src: $CACHE/app
- task:
    arch: win64
    key: InstallLocation
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam
      App 225300
    prefix: $GAMEDIR
    type: REG_SZ
    value: $GAMEDIR/drive_c/TR2
- task:
    arch: win64
    description: Installing TR2AF...
    executable: tr2af
    name: wineexec
    prefix: $GAMEDIR
- execute:
    command: cd "$GAMEDIR/drive_c/TR2/"; mv Tomb2.exe Tomb2.gog
- extract:
    dst: $GAMEDIR/drive_c/TR2/
    file: tr2main
- execute:
    command: cd $GAMEDIR/drive_c/TR2/gold; cp ../Tomb2.exe . ; cp ../TR2Main.dll .
      ; rm t2gold.exe
- task:
    arch: win64
    key: ddraw
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DllOverrides\
    prefix: $GAMEDIR
    type: REG_SZ
    value: native,builtin
- task:
    arch: win64
    key: winmm
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DllOverrides\
    prefix: $GAMEDIR
    type: REG_SZ
    value: native,builtin
- task:
    arch: win64
    key: csmt
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D\
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000000'
- task:
    app: d3dcompiler_47
    name: winetricks
    prefix: $GAMEDIR
description: '"Tomb Raider II" GOG edition with Tomb Raider 2 Automated Fix and TR2Main'
game_slug: tomb-raider-ii
gogslug: tomb_raider_123
humblestoreid: ''
installer_slug: tomb-raider-ii-gog-tr2af-tr2main
name: Tomb Raider II
notes: "Uses the following:\r\nTomb Raider 2: https://github.com/Carlmundo/TombRaider2-AutomatedFix\r\
  \nTR2Main: https://github.com/Arsunt/TR2Main\r\n\r\nWhen the installer for TR2AF\
  \ opens, go through it without changing any values."
runner: wine
script:
  custom-name: Tomb Raider 2 - GOG - TRAF
  files:
  - tr2af: https://github.com/Carlmundo/TombRaider2-AutomatedFix/releases/download/1.0/TR2AF_1.0.exe
  - tr2main: https://github.com/Arsunt/TR2Main/releases/download/v0.8.2/TR2Main_v0.8.2.zip
  - inno: http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz
  - gog: N/A:Select the installer downloaded from GOG
  game:
    arch: win64
    exe: drive_c/TR2/Tomb2.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      description: Creating WINE prefix
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      dst: $CACHE
      file: inno
  - execute:
      args: -d "$CACHE/" "$gog"
      file: $CACHE/innoextract
  - move:
      dst: $GAMEDIR/drive_c/TR2
      src: $CACHE/app
  - task:
      arch: win64
      key: InstallLocation
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam
        App 225300
      prefix: $GAMEDIR
      type: REG_SZ
      value: $GAMEDIR/drive_c/TR2
  - task:
      arch: win64
      description: Installing TR2AF...
      executable: tr2af
      name: wineexec
      prefix: $GAMEDIR
  - execute:
      command: cd "$GAMEDIR/drive_c/TR2/"; mv Tomb2.exe Tomb2.gog
  - extract:
      dst: $GAMEDIR/drive_c/TR2/
      file: tr2main
  - execute:
      command: cd $GAMEDIR/drive_c/TR2/gold; cp ../Tomb2.exe . ; cp ../TR2Main.dll
        . ; rm t2gold.exe
  - task:
      arch: win64
      key: ddraw
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Wine\DllOverrides\
      prefix: $GAMEDIR
      type: REG_SZ
      value: native,builtin
  - task:
      arch: win64
      key: winmm
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Wine\DllOverrides\
      prefix: $GAMEDIR
      type: REG_SZ
      value: native,builtin
  - task:
      arch: win64
      key: csmt
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Wine\Direct3D\
      prefix: $GAMEDIR
      type: REG_DWORD
      value: '00000000'
  - task:
      app: d3dcompiler_47
      name: winetricks
      prefix: $GAMEDIR
slug: tomb-raider-ii-gog-tr2af-tr2main
steamid: 225300
version: GOG + TR2AF + TR2Main
year: 1997
{
  "game_slug": "tomb-raider-ii",
  "version": "GOG + TR2AF + TR2Main",
  "description": "\"Tomb Raider II\" GOG edition with Tomb Raider 2 Automated Fix and TR2Main",
  "notes": "Uses the following:\r\nTomb Raider 2: https://github.com/Carlmundo/TombRaider2-AutomatedFix\r\nTR2Main: https://github.com/Arsunt/TR2Main\r\n\r\nWhen the installer for TR2AF opens, go through it without changing any values.",
  "name": "Tomb Raider II",
  "year": 1997,
  "steamid": 225300,
  "gogslug": "tomb_raider_123",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "tomb-raider-ii-gog-tr2af-tr2main",
  "installer_slug": "tomb-raider-ii-gog-tr2af-tr2main",
  "script": {
    "custom-name": "Tomb Raider 2 - GOG - TRAF",
    "files": [
      {
        "tr2af": "https://github.com/Carlmundo/TombRaider2-AutomatedFix/releases/download/1.0/TR2AF_1.0.exe"
      },
      {
        "tr2main": "https://github.com/Arsunt/TR2Main/releases/download/v0.8.2/TR2Main_v0.8.2.zip"
      },
      {
        "inno": "http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
      },
      {
        "gog": "N/A:Select the installer downloaded from GOG"
      }
    ],
    "game": {
      "arch": "win64",
      "exe": "drive_c/TR2/Tomb2.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "description": "Creating WINE prefix",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "inno"
        }
      },
      {
        "execute": {
          "args": "-d \"$CACHE/\" \"$gog\"",
          "file": "$CACHE/innoextract"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/TR2",
          "src": "$CACHE/app"
        }
      },
      {
        "task": {
          "arch": "win64",
          "key": "InstallLocation",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Steam App 225300",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "$GAMEDIR/drive_c/TR2"
        }
      },
      {
        "task": {
          "arch": "win64",
          "description": "Installing TR2AF...",
          "executable": "tr2af",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "cd \"$GAMEDIR/drive_c/TR2/\"; mv Tomb2.exe Tomb2.gog"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/TR2/",
          "file": "tr2main"
        }
      },
      {
        "execute": {
          "command": "cd $GAMEDIR/drive_c/TR2/gold; cp ../Tomb2.exe . ; cp ../TR2Main.dll . ; rm t2gold.exe"
        }
      },
      {
        "task": {
          "arch": "win64",
          "key": "ddraw",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "native,builtin"
        }
      },
      {
        "task": {
          "arch": "win64",
          "key": "winmm",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "native,builtin"
        }
      },
      {
        "task": {
          "arch": "win64",
          "key": "csmt",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D\\",
          "prefix": "$GAMEDIR",
          "type": "REG_DWORD",
          "value": "00000000"
        }
      },
      {
        "task": {
          "app": "d3dcompiler_47",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      }
    ]
  }
}
Back to game