Installer quake-cdrom-darkplaces

files:
- darkplaces-engine: http://icculus.org/twilight/darkplaces/files/darkplacesengine20140513.zip
- game: N/A:Select a file with *.PAK extension
game:
  exe: darkplaces-linux-x86_64-glx
installer:
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

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

      find "$src_path" -type f \( -iname "*.PAK"  \) -exec cp {} "$dst" \;'
    file: $CACHE/selectcopy.sh
- chmodx: $CACHE/selectcopy.sh
- execute:
    args: $GAMEDIR/id1
    file: mkdir
- extract:
    dst: $GAMEDIR
    file: darkplaces-engine
- chmodx: $GAMEDIR/darkplaces-linux-x86_64-glx
- execute:
    args: $game/ $GAMEDIR/id1
    file: $CACHE/selectcopy.sh
description: null
game_slug: quake
gogslug: quake_the_offering
humblestoreid: ''
installer_slug: quake-cdrom-darkplaces
name: Quake
notes: ''
runner: linux
script:
  files:
  - darkplaces-engine: http://icculus.org/twilight/darkplaces/files/darkplacesengine20140513.zip
  - game: N/A:Select a file with *.PAK extension
  game:
    exe: darkplaces-linux-x86_64-glx
  installer:
  - write_file:
      content: '#!/bin/bash

        src=$1

        dst=$2

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

        find "$src_path" -type f \( -iname "*.PAK"  \) -exec cp {} "$dst" \;'
      file: $CACHE/selectcopy.sh
  - chmodx: $CACHE/selectcopy.sh
  - execute:
      args: $GAMEDIR/id1
      file: mkdir
  - extract:
      dst: $GAMEDIR
      file: darkplaces-engine
  - chmodx: $GAMEDIR/darkplaces-linux-x86_64-glx
  - execute:
      args: $game/ $GAMEDIR/id1
      file: $CACHE/selectcopy.sh
slug: quake-cdrom-darkplaces
steamid: 2310
version: CDROM + Darkplaces
year: 1996
{
  "game_slug": "quake",
  "version": "CDROM + Darkplaces",
  "description": null,
  "notes": "",
  "name": "Quake",
  "year": 1996,
  "steamid": 2310,
  "gogslug": "quake_the_offering",
  "humblestoreid": "",
  "runner": "linux",
  "slug": "quake-cdrom-darkplaces",
  "installer_slug": "quake-cdrom-darkplaces",
  "script": {
    "files": [
      {
        "darkplaces-engine": "http://icculus.org/twilight/darkplaces/files/darkplacesengine20140513.zip"
      },
      {
        "game": "N/A:Select a file with *.PAK extension"
      }
    ],
    "game": {
      "exe": "darkplaces-linux-x86_64-glx"
    },
    "installer": [
      {
        "write_file": {
          "content": "#!/bin/bash\nsrc=$1\ndst=$2\nsrc_path=$(echo \"$1\" | sed -r \"s/(.+)\\/.+/\\1/\")\nfind \"$src_path\" -type f \\( -iname \"*.PAK\"  \\) -exec cp {} \"$dst\" \\;",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "chmodx": "$CACHE/selectcopy.sh"
      },
      {
        "execute": {
          "args": "$GAMEDIR/id1",
          "file": "mkdir"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR",
          "file": "darkplaces-engine"
        }
      },
      {
        "chmodx": "$GAMEDIR/darkplaces-linux-x86_64-glx"
      },
      {
        "execute": {
          "args": "$game/ $GAMEDIR/id1",
          "file": "$CACHE/selectcopy.sh"
        }
      }
    ]
  }
}
Back to game