Installer heart-of-china-ms-dos

files:
- game: N/A:Select the file HOC.EXE
game:
  main_file: $GAMEDIR/heart_of_china.conf
installer:
- execute:
    args: $GAMEDIR/HDD $GAMEDIR/HDD/china
    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/china
    file: $CACHE/bulkcopy.sh
- execute:
    args: -R 775  "$GAMEDIR"
    file: /bin/chmod
- write_file:
    content: '[sdl]

      sensitivity=20

      [autoexec]

      mount C "$GAMEDIR/HDD" -t dir

      C:

      cd china

      cls

      ECHO OFF

      goto launcher

      :launcher

      cls

      ECHO  -------------------------------------------

      ECHO            Curse of the Enchantia

      ECHO  -------------------------------------------

      ECHO   1) Played Game

      ECHO   2) Setup

      ECHO  -------------------------------------------

      ECHO   3) exit program

      ECHO  -------------------------------------------


      choice /c123 /s Which program do you want to run? [1-3]: /n

      if errorlevel 3 goto exit

      if errorlevel 2 goto setup

      if errorlevel 1 goto game


      :game

      cls

      HOC.EXE

      goto exit


      :setup

      cls

      install.com

      goto launcher


      :exit

      exit'
    file: $GAMEDIR/heart_of_china.conf
description: null
game_slug: heart-of-china
gogslug: heart_of_china
humblestoreid: ''
installer_slug: heart-of-china-ms-dos
name: Heart of China
notes: ''
runner: dosbox
script:
  files:
  - game: N/A:Select the file HOC.EXE
  game:
    main_file: $GAMEDIR/heart_of_china.conf
  installer:
  - execute:
      args: $GAMEDIR/HDD $GAMEDIR/HDD/china
      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/china
      file: $CACHE/bulkcopy.sh
  - execute:
      args: -R 775  "$GAMEDIR"
      file: /bin/chmod
  - write_file:
      content: '[sdl]

        sensitivity=20

        [autoexec]

        mount C "$GAMEDIR/HDD" -t dir

        C:

        cd china

        cls

        ECHO OFF

        goto launcher

        :launcher

        cls

        ECHO  -------------------------------------------

        ECHO            Curse of the Enchantia

        ECHO  -------------------------------------------

        ECHO   1) Played Game

        ECHO   2) Setup

        ECHO  -------------------------------------------

        ECHO   3) exit program

        ECHO  -------------------------------------------


        choice /c123 /s Which program do you want to run? [1-3]: /n

        if errorlevel 3 goto exit

        if errorlevel 2 goto setup

        if errorlevel 1 goto game


        :game

        cls

        HOC.EXE

        goto exit


        :setup

        cls

        install.com

        goto launcher


        :exit

        exit'
      file: $GAMEDIR/heart_of_china.conf
slug: heart-of-china-ms-dos
steamid: null
version: MS-DOS
year: 1990
{
  "game_slug": "heart-of-china",
  "version": "MS-DOS",
  "description": null,
  "notes": "",
  "name": "Heart of China",
  "year": 1990,
  "steamid": null,
  "gogslug": "heart_of_china",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "heart-of-china-ms-dos",
  "installer_slug": "heart-of-china-ms-dos",
  "script": {
    "files": [
      {
        "game": "N/A:Select the file HOC.EXE"
      }
    ],
    "game": {
      "main_file": "$GAMEDIR/heart_of_china.conf"
    },
    "installer": [
      {
        "execute": {
          "args": "$GAMEDIR/HDD $GAMEDIR/HDD/china",
          "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/china",
          "file": "$CACHE/bulkcopy.sh"
        }
      },
      {
        "execute": {
          "args": "-R 775  \"$GAMEDIR\"",
          "file": "/bin/chmod"
        }
      },
      {
        "write_file": {
          "content": "[sdl]\nsensitivity=20\n[autoexec]\nmount C \"$GAMEDIR/HDD\" -t dir\nC:\ncd china\ncls\nECHO OFF\ngoto launcher\n:launcher\ncls\nECHO  -------------------------------------------\nECHO            Curse of the Enchantia\nECHO  -------------------------------------------\nECHO   1) Played Game\nECHO   2) Setup\nECHO  -------------------------------------------\nECHO   3) exit program\nECHO  -------------------------------------------\n\nchoice /c123 /s Which program do you want to run? [1-3]: /n\nif errorlevel 3 goto exit\nif errorlevel 2 goto setup\nif errorlevel 1 goto game\n\n:game\ncls\nHOC.EXE\ngoto exit\n\n:setup\ncls\ninstall.com\ngoto launcher\n\n:exit\nexit",
          "file": "$GAMEDIR/heart_of_china.conf"
        }
      }
    ]
  }
}
Back to game