Installer 3-skulls-of-the-toltecs-ms-dos

files:
- game: N/A:Select the file SAMPLE.AD
game:
  game_id: Toltecs
  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 \( -name "SAMPLE.AD" -o -name "SAMPLE.OPL" -o -name
      "WESTERN" \) -exec cp {} "$dst" \;'
    file: $CACHE/selectcopy.sh
- chmodx: $CACHE/selectcopy.sh
- execute:
    args: $game $GAMEDIR
    file: $CACHE/selectcopy.sh
description: null
game_slug: 3-skulls-of-the-toltecs
gogslug: ''
humblestoreid: ''
installer_slug: 3-skulls-of-the-toltecs-ms-dos
name: 3 Skulls of the Toltecs
notes: ''
runner: scummvm
script:
  files:
  - game: N/A:Select the file SAMPLE.AD
  game:
    game_id: Toltecs
    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 \( -name "SAMPLE.AD" -o -name "SAMPLE.OPL" -o -name
        "WESTERN" \) -exec cp {} "$dst" \;'
      file: $CACHE/selectcopy.sh
  - chmodx: $CACHE/selectcopy.sh
  - execute:
      args: $game $GAMEDIR
      file: $CACHE/selectcopy.sh
slug: 3-skulls-of-the-toltecs-ms-dos
steamid: null
version: MS-DOS
year: 1996
{
  "game_slug": "3-skulls-of-the-toltecs",
  "version": "MS-DOS",
  "description": null,
  "notes": "",
  "name": "3 Skulls of the Toltecs",
  "year": 1996,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "scummvm",
  "slug": "3-skulls-of-the-toltecs-ms-dos",
  "installer_slug": "3-skulls-of-the-toltecs-ms-dos",
  "script": {
    "files": [
      {
        "game": "N/A:Select the file SAMPLE.AD"
      }
    ],
    "game": {
      "game_id": "Toltecs",
      "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 \\( -name \"SAMPLE.AD\" -o -name \"SAMPLE.OPL\" -o -name \"WESTERN\" \\) -exec cp {} \"$dst\" \\;",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "chmodx": "$CACHE/selectcopy.sh"
      },
      {
        "execute": {
          "args": "$game $GAMEDIR",
          "file": "$CACHE/selectcopy.sh"
        }
      }
    ]
  }
}
Back to game