Installer albion-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.

files:
- game: N/A:Select Install.bat
game:
  main_file: $GAMEDIR/albion.conf
installer:
- execute:
    args: $GAMEDIR/HDD $GAMEDIR/CDD $GAMEDIR/CDD/DISK1
    file: mkdir
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

      src_path=$(echo "$1" | sed -r "s/(.+)\/.+/\1/")

      cp -avr "$src_path/."  "$dst"'
    file: $CACHE/bulkcopy.sh
- chmodx: $CACHE/bulkcopy.sh
- execute:
    args: $game $GAMEDIR/CDD/DISK1
    file: $CACHE/bulkcopy.sh
- write_file:
    content: '[sdl]

      sensitivity=10

      [autoexec]

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

      mount C "$GAMEDIR/HDD" -t dir

      D:

      install.bat

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

      sensitivity=10

      [autoexec]

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

      mount C "$GAMEDIR/HDD" -t dir

      c:

      cd ALBION

      ALBION

      exit'
    file: $GAMEDIR/albion.conf
- execute:
    args: -R 775  "$GAMEDIR"
    file: /bin/chmod
{
  "files": [
    {
      "game": "N/A:Select Install.bat"
    }
  ],
  "game": {
    "main_file": "$GAMEDIR/albion.conf"
  },
  "installer": [
    {
      "execute": {
        "args": "$GAMEDIR/HDD $GAMEDIR/CDD $GAMEDIR/CDD/DISK1",
        "file": "mkdir"
      }
    },
    {
      "write_file": {
        "content": "#!/bin/bash\nsrc=$1\ndst=$2\nsrc_path=$(echo \"$1\" | sed -r \"s/(.+)\\/.+/\\1/\")\ncp -avr \"$src_path/.\"  \"$dst\"",
        "file": "$CACHE/bulkcopy.sh"
      }
    },
    {
      "chmodx": "$CACHE/bulkcopy.sh"
    },
    {
      "execute": {
        "args": "$game $GAMEDIR/CDD/DISK1",
        "file": "$CACHE/bulkcopy.sh"
      }
    },
    {
      "write_file": {
        "content": "[sdl]\nsensitivity=10\n[autoexec]\nmount D \"$GAMEDIR/CDD/DISK1\" -t cdrom\nmount C \"$GAMEDIR/HDD\" -t dir\nD:\ninstall.bat\nexit",
        "file": "$GAMEDIR/albion-setup.conf"
      }
    },
    {
      "task": {
        "config_file": "$GAMEDIR/albion-setup.conf",
        "name": "dosexec",
        "working_dir": "$GAMEDIR/HDD"
      }
    },
    {
      "write_file": {
        "content": "[sdl]\nsensitivity=10\n[autoexec]\nmount D \"$GAMEDIR/CDD/DISK1\" -t cdrom\nmount C \"$GAMEDIR/HDD\" -t dir\nc:\ncd ALBION\nALBION\nexit",
        "file": "$GAMEDIR/albion.conf"
      }
    },
    {
      "execute": {
        "args": "-R 775  \"$GAMEDIR\"",
        "file": "/bin/chmod"
      }
    }
  ]
}
Back to game