Installer cutthroats-infocom-treasures-ii

game:
  main_file: $GAMEDIR/cutthroat.conf
installer:
- execute:
    args: $GAMEDIR/HDD
    file: mkdir
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

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

      find "$src_path" -type d \( -iname "cutthroa"  \) -exec cp -r {} "$dst" \;'
    file: $CACHE/selectcopy.sh
- chmodx: $CACHE/selectcopy.sh
- insert-disc:
    description: Please insert Lost Treasures of Infocom II CD
    requires: DOS
- execute:
    args: $DISC $GAMEDIR/HDD
    file: $CACHE/selectcopy.sh
- execute:
    args: -R 775  "$GAMEDIR"
    file: /bin/chmod
- write_file:
    content: '[autoexec]

      mount C "$GAMEDIR/HDD" -t dir

      C:

      cd cutthroa

      cutthroa

      exit'
    file: $GAMEDIR/cutthroat.conf
description: null
game_slug: cutthroats
gogslug: ''
humblestoreid: ''
installer_slug: cutthroats-infocom-treasures-ii
name: Cutthroats
notes: ''
runner: dosbox
script:
  game:
    main_file: $GAMEDIR/cutthroat.conf
  installer:
  - execute:
      args: $GAMEDIR/HDD
      file: mkdir
  - write_file:
      content: '#!/bin/bash

        src=$1

        dst=$2

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

        find "$src_path" -type d \( -iname "cutthroa"  \) -exec cp -r {} "$dst" \;'
      file: $CACHE/selectcopy.sh
  - chmodx: $CACHE/selectcopy.sh
  - insert-disc:
      description: Please insert Lost Treasures of Infocom II CD
      requires: DOS
  - execute:
      args: $DISC $GAMEDIR/HDD
      file: $CACHE/selectcopy.sh
  - execute:
      args: -R 775  "$GAMEDIR"
      file: /bin/chmod
  - write_file:
      content: '[autoexec]

        mount C "$GAMEDIR/HDD" -t dir

        C:

        cd cutthroa

        cutthroa

        exit'
      file: $GAMEDIR/cutthroat.conf
slug: cutthroats-infocom-treasures-ii
steamid: null
version: Infocom Treasures II CD
year: 1984
{
  "game_slug": "cutthroats",
  "version": "Infocom Treasures II CD",
  "description": null,
  "notes": "",
  "name": "Cutthroats",
  "year": 1984,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "cutthroats-infocom-treasures-ii",
  "installer_slug": "cutthroats-infocom-treasures-ii",
  "script": {
    "game": {
      "main_file": "$GAMEDIR/cutthroat.conf"
    },
    "installer": [
      {
        "execute": {
          "args": "$GAMEDIR/HDD",
          "file": "mkdir"
        }
      },
      {
        "write_file": {
          "content": "#!/bin/bash\nsrc=$1\ndst=$2\nsrc_path=$(echo \"$1\" | sed -r \"s/(.+)\\/.+/\\1/\")\nfind \"$src_path\" -type d \\( -iname \"cutthroa\"  \\) -exec cp -r {} \"$dst\" \\;",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "chmodx": "$CACHE/selectcopy.sh"
      },
      {
        "insert-disc": {
          "description": "Please insert Lost Treasures of Infocom II CD",
          "requires": "DOS"
        }
      },
      {
        "execute": {
          "args": "$DISC $GAMEDIR/HDD",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "execute": {
          "args": "-R 775  \"$GAMEDIR\"",
          "file": "/bin/chmod"
        }
      },
      {
        "write_file": {
          "content": "[autoexec]\nmount C \"$GAMEDIR/HDD\" -t dir\nC:\ncd cutthroa\ncutthroa\nexit",
          "file": "$GAMEDIR/cutthroat.conf"
        }
      }
    ]
  }
}
Back to game