files:
- game: N/A:Select a file with *.DAT extension
game:
game_id: gnap
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 "*.AVI" -o -iname "*.DAT" -o -iname "*.EXE"
-o -iname "*.MID" \) -exec cp {} "$dst" \;'
file: $CACHE/selectcopy.sh
- chmodx: $CACHE/selectcopy.sh
- execute:
args: $game $GAMEDIR
file: $CACHE/selectcopy.sh
description: null
game_slug: ufos
gogslug: ''
humblestoreid: ''
installer_slug: ufos-cdrom
name: U.F.O.s
notes: ''
runner: scummvm
script:
files:
- game: N/A:Select a file with *.DAT extension
game:
game_id: gnap
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 "*.AVI" -o -iname "*.DAT" -o -iname "*.EXE"
-o -iname "*.MID" \) -exec cp {} "$dst" \;'
file: $CACHE/selectcopy.sh
- chmodx: $CACHE/selectcopy.sh
- execute:
args: $game $GAMEDIR
file: $CACHE/selectcopy.sh
slug: ufos-cdrom
steamid: null
version: CDrom
year: 1997
{
"game_slug": "ufos",
"version": "CDrom",
"description": null,
"notes": "",
"name": "U.F.O.s",
"year": 1997,
"steamid": null,
"gogslug": "",
"humblestoreid": "",
"runner": "scummvm",
"slug": "ufos-cdrom",
"installer_slug": "ufos-cdrom",
"script": {
"files": [
{
"game": "N/A:Select a file with *.DAT extension"
}
],
"game": {
"game_id": "gnap",
"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 \"*.AVI\" -o -iname \"*.DAT\" -o -iname \"*.EXE\" -o -iname \"*.MID\" \\) -exec cp {} \"$dst\" \\;",
"file": "$CACHE/selectcopy.sh"
}
},
{
"chmodx": "$CACHE/selectcopy.sh"
},
{
"execute": {
"args": "$game $GAMEDIR",
"file": "$CACHE/selectcopy.sh"
}
}
]
}
}