Installer elvira-mistress-of-the-dark-ms-dos

files:
- game: N/A:Select the file Setup.exe
game:
  game_id: elvira1
  path: $GAMEDIR
installer:
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

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

      find "$src_path" -type f \( -iname "*.MUS" -o -iname "*.SND" -o -iname "*.VGA"
      -o -iname "GAMEPC" -o -iname "ICON.DAT" -o -iname "INSTR.DAT" -o -iname "START"
      -o -iname "TABLES*" -o -iname "TBLLIST" \) -exec cp {} "$dst" \;'
    file: $CACHE/selectcopy.sh
- chmodx: $CACHE/selectcopy.sh
- execute:
    args: $game $GAMEDIR
    file: $CACHE/selectcopy.sh
description: null
game_slug: elvira-mistress-of-the-dark
gogslug: elviras_horror_bundle
humblestoreid: ''
installer_slug: elvira-mistress-of-the-dark-ms-dos
name: 'Elvira: Mistress of the Dark'
notes: ''
runner: scummvm
script:
  files:
  - game: N/A:Select the file Setup.exe
  game:
    game_id: elvira1
    path: $GAMEDIR
  installer:
  - write_file:
      content: '#!/bin/bash

        src=$1

        dst=$2

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

        find "$src_path" -type f \( -iname "*.MUS" -o -iname "*.SND" -o -iname "*.VGA"
        -o -iname "GAMEPC" -o -iname "ICON.DAT" -o -iname "INSTR.DAT" -o -iname "START"
        -o -iname "TABLES*" -o -iname "TBLLIST" \) -exec cp {} "$dst" \;'
      file: $CACHE/selectcopy.sh
  - chmodx: $CACHE/selectcopy.sh
  - execute:
      args: $game $GAMEDIR
      file: $CACHE/selectcopy.sh
slug: elvira-mistress-of-the-dark-ms-dos
steamid: null
version: MS-DOS
year: 1990
{
  "game_slug": "elvira-mistress-of-the-dark",
  "version": "MS-DOS",
  "description": null,
  "notes": "",
  "name": "Elvira: Mistress of the Dark",
  "year": 1990,
  "steamid": null,
  "gogslug": "elviras_horror_bundle",
  "humblestoreid": "",
  "runner": "scummvm",
  "slug": "elvira-mistress-of-the-dark-ms-dos",
  "installer_slug": "elvira-mistress-of-the-dark-ms-dos",
  "script": {
    "files": [
      {
        "game": "N/A:Select the file Setup.exe"
      }
    ],
    "game": {
      "game_id": "elvira1",
      "path": "$GAMEDIR"
    },
    "installer": [
      {
        "write_file": {
          "content": "#!/bin/bash\nsrc=$1\ndst=$2\nsrc_path=$(echo \"$1\" | sed -r \"s/(.+)\\/.+/\\1/\")\nfind \"$src_path\" -type f \\( -iname \"*.MUS\" -o -iname \"*.SND\" -o -iname \"*.VGA\" -o -iname \"GAMEPC\" -o -iname \"ICON.DAT\" -o -iname \"INSTR.DAT\" -o -iname \"START\" -o -iname \"TABLES*\" -o -iname \"TBLLIST\" \\) -exec cp {} \"$dst\" \\;",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "chmodx": "$CACHE/selectcopy.sh"
      },
      {
        "execute": {
          "args": "$game $GAMEDIR",
          "file": "$CACHE/selectcopy.sh"
        }
      }
    ]
  }
}
Back to game