Installer crime-city-ms-dos

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

      sensitivity=10

      [autoexec]

      mount C "$GAMEDIR/HDD" -t dir

      C:

      cd city

      city.bat

      exit'
    file: $GAMEDIR/crime-city.conf
description: null
game_slug: crime-city
gogslug: ''
humblestoreid: ''
installer_slug: crime-city-ms-dos
name: Crime City
notes: ''
runner: dosbox
script:
  files:
  - game: N/A:Select the file CITY.BAT
  game:
    main_file: $GAMEDIR/crime-city.conf
  installer:
  - execute:
      args: $GAMEDIR/HDD $GAMEDIR/HDD/city
      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/city
      file: $CACHE/bulkcopy.sh
  - write_file:
      content: '[sdl]

        sensitivity=10

        [autoexec]

        mount C "$GAMEDIR/HDD" -t dir

        C:

        cd city

        city.bat

        exit'
      file: $GAMEDIR/crime-city.conf
slug: crime-city-ms-dos
steamid: null
version: MS-DOS
year: 1993
{
  "game_slug": "crime-city",
  "version": "MS-DOS",
  "description": null,
  "notes": "",
  "name": "Crime City",
  "year": 1993,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "crime-city-ms-dos",
  "installer_slug": "crime-city-ms-dos",
  "script": {
    "files": [
      {
        "game": "N/A:Select the file CITY.BAT"
      }
    ],
    "game": {
      "main_file": "$GAMEDIR/crime-city.conf"
    },
    "installer": [
      {
        "execute": {
          "args": "$GAMEDIR/HDD $GAMEDIR/HDD/city",
          "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/city",
          "file": "$CACHE/bulkcopy.sh"
        }
      },
      {
        "write_file": {
          "content": "[sdl]\nsensitivity=10\n[autoexec]\nmount C \"$GAMEDIR/HDD\" -t dir\nC:\ncd city\ncity.bat\nexit",
          "file": "$GAMEDIR/crime-city.conf"
        }
      }
    ]
  }
}
Back to game