Installer deadline-dos

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

      mount C "$GAMEDIR/HDD" -t dir

      C:

      cd deadline

      deadline

      exit'
    file: $GAMEDIR/deadline.conf
description: null
game_slug: deadline
gogslug: ''
humblestoreid: ''
installer_slug: deadline-dos
name: Deadline
notes: ''
runner: dosbox
script:
  files:
  - game: N/A:Select the Bat or EXE file
  game:
    main_file: $GAMEDIR/deadline.conf
  installer:
  - execute:
      args: $GAMEDIR/HDD $GAMEDIR/HDD/deadline
      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/deadline
      file: $CACHE/bulkcopy.sh
  - write_file:
      content: '[autoexec]

        mount C "$GAMEDIR/HDD" -t dir

        C:

        cd deadline

        deadline

        exit'
      file: $GAMEDIR/deadline.conf
slug: deadline-dos
steamid: null
version: DOS
year: 1986
{
  "game_slug": "deadline",
  "version": "DOS",
  "description": null,
  "notes": "",
  "name": "Deadline",
  "year": 1986,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "deadline-dos",
  "installer_slug": "deadline-dos",
  "script": {
    "files": [
      {
        "game": "N/A:Select the Bat or EXE file"
      }
    ],
    "game": {
      "main_file": "$GAMEDIR/deadline.conf"
    },
    "installer": [
      {
        "execute": {
          "args": "$GAMEDIR/HDD $GAMEDIR/HDD/deadline",
          "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/deadline",
          "file": "$CACHE/bulkcopy.sh"
        }
      },
      {
        "write_file": {
          "content": "[autoexec]\nmount C \"$GAMEDIR/HDD\" -t dir\nC:\ncd deadline\ndeadline\nexit",
          "file": "$GAMEDIR/deadline.conf"
        }
      }
    ]
  }
}
Back to game