Installer return-to-castle-wolfenstein-gog-iortcw-x64

This script is for reference only and can't be directly used to install the game in the Lutris client. To install the game, download the full script.

custom-name: Return to Castle Wolfenstein - GOG - iortcw
files:
- inno: https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-linux.tar.xz
- gogsetup: N/A:Select the Windows setup file downloaded from GOG
- iortcw: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Return%20to%20Castle%20Wolfenstein/iortcw_x64.7z
- confsp: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Return%20to%20Castle%20Wolfenstein/wolfconfig.cfg
- confmp: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Return%20to%20Castle%20Wolfenstein/wolfconfig_mp.cfg
- gamepad: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Return%20to%20Castle%20Wolfenstein/x360.cfg
game:
  exe: $GAMEDIR/iowolf.sh
installer:
- extract:
    dst: $CACHE/innoextract
    file: inno
- execute:
    args: --extract --gog $gogsetup --output-dir "$CACHE/"
    file: $CACHE/innoextract/innoextract
- merge:
    dst: $GAMEDIR/main
    src: $CACHE/app/Main
- merge:
    dst: $GAMEDIR/docs
    src: $CACHE/app/Docs
- extract:
    dst: $CACHE/
    file: iortcw
- merge:
    dst: $GAMEDIR/
    src: $CACHE/sp_build/release-linux-x86_64/
- merge:
    dst: $GAMEDIR/
    src: $CACHE/mp_build/release-linux-x86_64/
- copy:
    dst: $GAMEDIR/main/
    src: confsp
- copy:
    dst: $GAMEDIR/main/
    src: confmp
- copy:
    dst: $GAMEDIR/main/
    src: gamepad
- write_file:
    content: '#!/bin/bash

      ./iowolfsp.x86_64&

      '
    file: $GAMEDIR/iowolf.sh
- chmodx: $GAMEDIR/iowolf.sh
- write_file:
    content: 'set fs_homepath ./

      exec x360

      '
    file: $GAMEDIR/main/autoexec.cfg
{
  "custom-name": "Return to Castle Wolfenstein - GOG - iortcw",
  "files": [
    {
      "inno": "https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-linux.tar.xz"
    },
    {
      "gogsetup": "N/A:Select the Windows setup file downloaded from GOG"
    },
    {
      "iortcw": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Return%20to%20Castle%20Wolfenstein/iortcw_x64.7z"
    },
    {
      "confsp": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Return%20to%20Castle%20Wolfenstein/wolfconfig.cfg"
    },
    {
      "confmp": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Return%20to%20Castle%20Wolfenstein/wolfconfig_mp.cfg"
    },
    {
      "gamepad": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Return%20to%20Castle%20Wolfenstein/x360.cfg"
    }
  ],
  "game": {
    "exe": "$GAMEDIR/iowolf.sh"
  },
  "installer": [
    {
      "extract": {
        "dst": "$CACHE/innoextract",
        "file": "inno"
      }
    },
    {
      "execute": {
        "args": "--extract --gog $gogsetup --output-dir \"$CACHE/\"",
        "file": "$CACHE/innoextract/innoextract"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/main",
        "src": "$CACHE/app/Main"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/docs",
        "src": "$CACHE/app/Docs"
      }
    },
    {
      "extract": {
        "dst": "$CACHE/",
        "file": "iortcw"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/",
        "src": "$CACHE/sp_build/release-linux-x86_64/"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/",
        "src": "$CACHE/mp_build/release-linux-x86_64/"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/main/",
        "src": "confsp"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/main/",
        "src": "confmp"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/main/",
        "src": "gamepad"
      }
    },
    {
      "write_file": {
        "content": "#!/bin/bash\n./iowolfsp.x86_64&\n",
        "file": "$GAMEDIR/iowolf.sh"
      }
    },
    {
      "chmodx": "$GAMEDIR/iowolf.sh"
    },
    {
      "write_file": {
        "content": "set fs_homepath ./\nexec x360\n",
        "file": "$GAMEDIR/main/autoexec.cfg"
      }
    }
  ]
}
Back to game