Installer al-qadim-the-genies-curse-cdrom

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.

game:
  main_file: $GAMEDIR/Al-Qadim.conf
installer:
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

      cp -avr "$src/."  "$dst"'
    file: $CACHE/bulkcopy-alt.sh
- chmodx: $CACHE/bulkcopy-alt.sh
- execute:
    args: $GAMEDIR/HDD $GAMEDIR/CDD $GAMEDIR/CDD/DISC1
    file: mkdir
- insert-disc:
    description: Please insert disc
    requires: install.exe
- execute:
    args: $DISC "$GAMEDIR/CDD/DISC1"
    file: $CACHE/bulkcopy-alt.sh
- execute:
    args: -R 775  "$GAMEDIR/CDD/DISC1"
    file: /bin/chmod
- write_file:
    content: '[sdl]

      sensitivity=30

      [autoexec]

      mount C "$GAMEDIR/HDD" -t dir

      mount D "$GAMEDIR/CDD/DISC1" -t cdrom

      D:

      install.exe

      exit'
    file: $GAMEDIR/Al-Qadim_setup.conf
- task:
    config_file: $GAMEDIR/Al-Qadim_setup.conf
    name: dosexec
    working_dir: $GAMEDIR/HDD/
- write_file:
    content: '[sdl]

      sensitivity=30

      [autoexec]

      mount C "$GAMEDIR/HDD" -t dir

      mount D "$GAMEDIR/CDD/DISC1" -t cdrom

      C:

      cd genie

      genie

      exit'
    file: $GAMEDIR/Al-Qadim.conf
- execute:
    args: -R 775  "$GAMEDIR"
    file: /bin/chmod
{
  "game": {
    "main_file": "$GAMEDIR/Al-Qadim.conf"
  },
  "installer": [
    {
      "write_file": {
        "content": "#!/bin/bash\nsrc=$1\ndst=$2\ncp -avr \"$src/.\"  \"$dst\"",
        "file": "$CACHE/bulkcopy-alt.sh"
      }
    },
    {
      "chmodx": "$CACHE/bulkcopy-alt.sh"
    },
    {
      "execute": {
        "args": "$GAMEDIR/HDD $GAMEDIR/CDD $GAMEDIR/CDD/DISC1",
        "file": "mkdir"
      }
    },
    {
      "insert-disc": {
        "description": "Please insert disc",
        "requires": "install.exe"
      }
    },
    {
      "execute": {
        "args": "$DISC \"$GAMEDIR/CDD/DISC1\"",
        "file": "$CACHE/bulkcopy-alt.sh"
      }
    },
    {
      "execute": {
        "args": "-R 775  \"$GAMEDIR/CDD/DISC1\"",
        "file": "/bin/chmod"
      }
    },
    {
      "write_file": {
        "content": "[sdl]\nsensitivity=30\n[autoexec]\nmount C \"$GAMEDIR/HDD\" -t dir\nmount D \"$GAMEDIR/CDD/DISC1\" -t cdrom\nD:\ninstall.exe\nexit",
        "file": "$GAMEDIR/Al-Qadim_setup.conf"
      }
    },
    {
      "task": {
        "config_file": "$GAMEDIR/Al-Qadim_setup.conf",
        "name": "dosexec",
        "working_dir": "$GAMEDIR/HDD/"
      }
    },
    {
      "write_file": {
        "content": "[sdl]\nsensitivity=30\n[autoexec]\nmount C \"$GAMEDIR/HDD\" -t dir\nmount D \"$GAMEDIR/CDD/DISC1\" -t cdrom\nC:\ncd genie\ngenie\nexit",
        "file": "$GAMEDIR/Al-Qadim.conf"
      }
    },
    {
      "execute": {
        "args": "-R 775  \"$GAMEDIR\"",
        "file": "/bin/chmod"
      }
    }
  ]
}
Back to game