Installer teenagent-ms-dos

files:
- game: N/A:Select the file TEENAGENT.EXE
game:
  game_id: teenagent
  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 "*.DAT" -o -iname "*.RES"  \) -exec cp {}
      "$dst" \;'
    file: $CACHE/selectcopy.sh
- chmodx: $CACHE/selectcopy.sh
- execute:
    args: $game $GAMEDIR
    file: $CACHE/selectcopy.sh
- execute:
    args: -R 775  "$GAMEDIR"
    file: /bin/chmod
scummvm:
  fullscreen: true
description: null
game_slug: teenagent
gogslug: teenagent
humblestoreid: ''
installer_slug: teenagent-ms-dos
name: TeenAgent
notes: ''
runner: scummvm
script:
  files:
  - game: N/A:Select the file TEENAGENT.EXE
  game:
    game_id: teenagent
    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 "*.DAT" -o -iname "*.RES"  \) -exec cp
        {} "$dst" \;'
      file: $CACHE/selectcopy.sh
  - chmodx: $CACHE/selectcopy.sh
  - execute:
      args: $game $GAMEDIR
      file: $CACHE/selectcopy.sh
  - execute:
      args: -R 775  "$GAMEDIR"
      file: /bin/chmod
  scummvm:
    fullscreen: true
slug: teenagent-ms-dos
steamid: null
version: MS-DOS
year: 1995
{
  "game_slug": "teenagent",
  "version": "MS-DOS",
  "description": null,
  "notes": "",
  "name": "TeenAgent",
  "year": 1995,
  "steamid": null,
  "gogslug": "teenagent",
  "humblestoreid": "",
  "runner": "scummvm",
  "slug": "teenagent-ms-dos",
  "installer_slug": "teenagent-ms-dos",
  "script": {
    "files": [
      {
        "game": "N/A:Select the file TEENAGENT.EXE"
      }
    ],
    "game": {
      "game_id": "teenagent",
      "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 \"*.DAT\" -o -iname \"*.RES\"  \\) -exec cp {} \"$dst\" \\;",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "chmodx": "$CACHE/selectcopy.sh"
      },
      {
        "execute": {
          "args": "$game $GAMEDIR",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "execute": {
          "args": "-R 775  \"$GAMEDIR\"",
          "file": "/bin/chmod"
        }
      }
    ],
    "scummvm": {
      "fullscreen": true
    }
  }
}
Back to game