Installer zork-zero-ms-dos

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

      sensitivity=20

      [autoexec]

      mount C "$GAMEDIR/HDD" -t dir

      C:

      cd zorkzero

      zorkzero.exe

      exit'
    file: $GAMEDIR/ZorkZero.conf
description: null
game_slug: zork-zero
gogslug: ''
humblestoreid: ''
installer_slug: zork-zero-ms-dos
name: Zork Zero
notes: ''
runner: dosbox
script:
  files:
  - game: N/A:Select the file ZorkZero.EXE
  game:
    main_file: $GAMEDIR/ZorkZero.conf
  installer:
  - execute:
      args: $GAMEDIR/HDD  $GAMEDIR/HDD/zorkzero
      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/zorkzero
      file: $CACHE/bulkcopy.sh
  - write_file:
      content: '[sdl]

        sensitivity=20

        [autoexec]

        mount C "$GAMEDIR/HDD" -t dir

        C:

        cd zorkzero

        zorkzero.exe

        exit'
      file: $GAMEDIR/ZorkZero.conf
slug: zork-zero-ms-dos
steamid: null
version: MS-DOS
year: 1988
{
  "game_slug": "zork-zero",
  "version": "MS-DOS",
  "description": null,
  "notes": "",
  "name": "Zork Zero",
  "year": 1988,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "zork-zero-ms-dos",
  "installer_slug": "zork-zero-ms-dos",
  "script": {
    "files": [
      {
        "game": "N/A:Select the file ZorkZero.EXE"
      }
    ],
    "game": {
      "main_file": "$GAMEDIR/ZorkZero.conf"
    },
    "installer": [
      {
        "execute": {
          "args": "$GAMEDIR/HDD  $GAMEDIR/HDD/zorkzero",
          "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/zorkzero",
          "file": "$CACHE/bulkcopy.sh"
        }
      },
      {
        "write_file": {
          "content": "[sdl]\nsensitivity=20\n[autoexec]\nmount C \"$GAMEDIR/HDD\" -t dir\nC:\ncd zorkzero\nzorkzero.exe\nexit",
          "file": "$GAMEDIR/ZorkZero.conf"
        }
      }
    ]
  }
}
Back to game