Installer rayman-2-the-great-escape-gog-on-arm

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: Rayman 2 - GOG on Arm
files:
- inno: http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz
- dx: https://get.station307.com/FuZjpskvXGf/rayman2fix.tar.gz
- gog: N/A:Select the GOG setup exe
game:
  arch: win32
  exe: drive_c/GOG Games/Rayman 2/Rayman2.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win32
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $CACHE
    file: inno
- execute:
    args: -d "$CACHE" "$gog"
    file: $CACHE/innoextract
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Rayman 2
    src: $CACHE/app
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Rayman 2/
    src: $GAMEDIR/drive_c/GOG Games/Rayman 2/__support/app
- input_menu:
    description: 'Please choose your screen ratio:'
    id: RATIO
    options:
    - 16x9: 16/9
    - 16x10: 16/10
    preselect: 16x9
- execute:
    command: cd "$GAMEDIR/drive_c/GOG Games/Rayman 2/"; sed -i "s/16/32/g" ubi.ini;
      cd "$CACHE"; wget "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Rayman%202/ws/Rayman2_$INPUT_RATIO.zip";
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Rayman 2/
    src: $CACHE/Rayman2_$INPUT_RATIO.zip
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Rayman 2/DLL/
    src: dx
- task:
    arch: win32
    key: EAXEnabled
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DirectSound\
    prefix: $GAMEDIR
    type: REG_SZ
    value: Y
- task:
    arch: win32
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- execute:
    command: cd "$GAMEDIR/drive_c/GOG Games/Rayman 2/"; rm -f -r __support 3DfxSpl*
      goggame* GXSetup.exe webcache.zip Offset* ;
wine:
  Desktop: true
{
  "custom-name": "Rayman 2 - GOG on Arm",
  "files": [
    {
      "inno": "http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
    },
    {
      "dx": "https://get.station307.com/FuZjpskvXGf/rayman2fix.tar.gz"
    },
    {
      "gog": "N/A:Select the GOG setup exe"
    }
  ],
  "game": {
    "arch": "win32",
    "exe": "drive_c/GOG Games/Rayman 2/Rayman2.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win32",
        "install_gecko": false,
        "install_mono": false,
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "dst": "$CACHE",
        "file": "inno"
      }
    },
    {
      "execute": {
        "args": "-d \"$CACHE\" \"$gog\"",
        "file": "$CACHE/innoextract"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Rayman 2",
        "src": "$CACHE/app"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Rayman 2/",
        "src": "$GAMEDIR/drive_c/GOG Games/Rayman 2/__support/app"
      }
    },
    {
      "input_menu": {
        "description": "Please choose your screen ratio:",
        "id": "RATIO",
        "options": [
          {
            "16x9": "16/9"
          },
          {
            "16x10": "16/10"
          }
        ],
        "preselect": "16x9"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c/GOG Games/Rayman 2/\"; sed -i \"s/16/32/g\" ubi.ini; cd \"$CACHE\"; wget \"https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Rayman%202/ws/Rayman2_$INPUT_RATIO.zip\";"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Rayman 2/",
        "src": "$CACHE/Rayman2_$INPUT_RATIO.zip"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Rayman 2/DLL/",
        "src": "dx"
      }
    },
    {
      "task": {
        "arch": "win32",
        "key": "EAXEnabled",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DirectSound\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "Y"
      }
    },
    {
      "task": {
        "arch": "win32",
        "key": "background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 0 0"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c/GOG Games/Rayman 2/\"; rm -f -r __support 3DfxSpl* goggame* GXSetup.exe webcache.zip Offset* ;"
      }
    }
  ],
  "wine": {
    "Desktop": true
  }
}
Back to game