Installer albion-cdrom

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
description: null
game_slug: albion
gogslug: albion
humblestoreid: ''
installer_slug: albion-cdrom
name: Albion
notes: ''
runner: dosbox
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
slug: albion-cdrom
steamid: null
version: CDRom
year: 1995
{
  "game_slug": "albion",
  "version": "CDRom",
  "description": null,
  "notes": "",
  "name": "Albion",
  "year": 1995,
  "steamid": null,
  "gogslug": "albion",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "albion-cdrom",
  "installer_slug": "albion-cdrom",
  "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\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