files:
- game: N/A:Select the file Veil.com
game:
  main_file: $GAMEDIR/Veil.conf
installer:
- execute:
    args: $GAMEDIR/HDD  $GAMEDIR/HDD/Veil
    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/Veil
    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 Veil
      cls
      ECHO OFF
      goto launcher
      :launcher
      cls
      ECHO  -------------------------------------------
      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
      Veil
      goto exit
      :setup
      cls
      setup.com
      goto launcher
      :exit
      exit
      exit'
    file: $GAMEDIR/Veil.conf
       
      
        description: null
game_slug: veil-of-darkness
gogslug: ssi_classics
humblestoreid: ''
installer_slug: veil-of-darkness-ms-dos
name: Veil of Darkness
notes: ''
runner: dosbox
script:
  files:
  - game: N/A:Select the file Veil.com
  game:
    main_file: $GAMEDIR/Veil.conf
  installer:
  - execute:
      args: $GAMEDIR/HDD  $GAMEDIR/HDD/Veil
      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/Veil
      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 Veil
        cls
        ECHO OFF
        goto launcher
        :launcher
        cls
        ECHO  -------------------------------------------
        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
        Veil
        goto exit
        :setup
        cls
        setup.com
        goto launcher
        :exit
        exit
        exit'
      file: $GAMEDIR/Veil.conf
slug: veil-of-darkness-ms-dos
steamid: 2414320
version: MS-DOS
year: 1993
       
      
        {
  "game_slug": "veil-of-darkness",
  "version": "MS-DOS",
  "description": null,
  "notes": "",
  "name": "Veil of Darkness",
  "year": 1993,
  "steamid": 2414320,
  "gogslug": "ssi_classics",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "veil-of-darkness-ms-dos",
  "installer_slug": "veil-of-darkness-ms-dos",
  "script": {
    "files": [
      {
        "game": "N/A:Select the file Veil.com"
      }
    ],
    "game": {
      "main_file": "$GAMEDIR/Veil.conf"
    },
    "installer": [
      {
        "execute": {
          "args": "$GAMEDIR/HDD  $GAMEDIR/HDD/Veil",
          "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/Veil",
          "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 Veil\ncls\nECHO OFF\ngoto launcher\n:launcher\ncls\nECHO  -------------------------------------------\n\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\nVeil\ngoto exit\n\n:setup\ncls\nsetup.com\ngoto launcher\n\n:exit\nexit\nexit",
          "file": "$GAMEDIR/Veil.conf"
        }
      }
    ]
  }
}