Installer zork-i-msdos

files:
- game: N/A:Select the file Zork1.BAT
game:
  main_file: $GAMEDIR/zork1.conf
installer:
- execute:
    args: $GAMEDIR/HDD $GAMEDIR/HDD/zork1
    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/HDD/zork1
    file: $CACHE/bulkcopy.sh
- write_file:
    content: '[autoexec]

      mount C "$GAMEDIR/HDD" -t dir

      C:

      cd zork1

      zork1

      exit'
    file: $GAMEDIR/zork1.conf
description: null
game_slug: zork-i
gogslug: ''
humblestoreid: ''
installer_slug: zork-i-msdos
name: Zork I
notes: ''
runner: dosbox
script:
  files:
  - game: N/A:Select the file Zork1.BAT
  game:
    main_file: $GAMEDIR/zork1.conf
  installer:
  - execute:
      args: $GAMEDIR/HDD $GAMEDIR/HDD/zork1
      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/HDD/zork1
      file: $CACHE/bulkcopy.sh
  - write_file:
      content: '[autoexec]

        mount C "$GAMEDIR/HDD" -t dir

        C:

        cd zork1

        zork1

        exit'
      file: $GAMEDIR/zork1.conf
slug: zork-i-msdos
steamid: null
version: MSDOS
year: 1980
{
  "game_slug": "zork-i",
  "version": "MSDOS",
  "description": null,
  "notes": "",
  "name": "Zork I",
  "year": 1980,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "zork-i-msdos",
  "installer_slug": "zork-i-msdos",
  "script": {
    "files": [
      {
        "game": "N/A:Select the file Zork1.BAT"
      }
    ],
    "game": {
      "main_file": "$GAMEDIR/zork1.conf"
    },
    "installer": [
      {
        "execute": {
          "args": "$GAMEDIR/HDD $GAMEDIR/HDD/zork1",
          "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/HDD/zork1",
          "file": "$CACHE/bulkcopy.sh"
        }
      },
      {
        "write_file": {
          "content": "[autoexec]\nmount C \"$GAMEDIR/HDD\" -t dir\nC:\ncd zork1\nzork1\nexit",
          "file": "$GAMEDIR/zork1.conf"
        }
      }
    ]
  }
}
Back to game