Installer cutthroats-infocom-treasures-ii-1
This script is for reference only and can't be directly used to install the game in the Lutris client. To install the game, download the full script.
game: game_id: cutthroats 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 "cutthroa.DAT" \) -exec cp {} "$dst" \;' file: $CACHE/selectcopy.sh - chmodx: $CACHE/selectcopy.sh - insert-disc: description: Please insert Infocom Treasures II disc requires: DOS - execute: args: $DISC "$GAMEDIR" file: $CACHE/selectcopy.sh - execute: args: -R 775 "$GAMEDIR" file: /bin/chmod
{ "game": { "game_id": "cutthroats", "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 \"cutthroa.DAT\" \\) -exec cp {} \"$dst\" \\;", "file": "$CACHE/selectcopy.sh" } }, { "chmodx": "$CACHE/selectcopy.sh" }, { "insert-disc": { "description": "Please insert Infocom Treasures II disc", "requires": "DOS" } }, { "execute": { "args": "$DISC \"$GAMEDIR\"", "file": "$CACHE/selectcopy.sh" } }, { "execute": { "args": "-R 775 \"$GAMEDIR\"", "file": "/bin/chmod" } } ] }