Installer worms-united-gog

files:
- game: N/A:Select GOG installer
- inno: https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz
game:
  main_file: $GAMEDIR/worms.conf
installer:
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

      find "$src" -maxdepth 1  -type d \( -iname "batch" -o -name "BIN" -o -iname
      "DATA" -o -name "DOCS" -o -iname "EXTRAS"  \) -exec cp {} -r "$dst" \;

      find "$src/__support/save" -maxdepth 1  -type f \( -iname "Worms.CFG" \) -exec
      cp {} "$dst" \;

      find "$src" -maxdepth 1  -type f \( -iname "*.exe" -o -iname "*.bat" \) -exec
      cp {} "$dst" \;'
    file: $CACHE/selectcopy.sh
- chmodx: $CACHE/selectcopy.sh
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

      find "$src" -maxdepth 1  -type f \( -iname "*.dat" -o -iname "*.gog" -o -iname
      "*.ogg"  \) -exec cp {} "$dst" \;'
    file: $CACHE/selectcopy2.sh
- chmodx: $CACHE/selectcopy2.sh
- extract:
    dst: $CACHE
    file: $inno
- execute:
    args: -d "$CACHE" "$game"
    file: $CACHE/innoextract
- execute:
    args: $GAMEDIR/worms  $GAMEDIR/CDD
    file: mkdir
- copy:
    dst: $GAMEDIR
    src: $CACHE/manual.pdf
- execute:
    args: $CACHE $GAMEDIR/worms
    file: $CACHE/selectcopy.sh
- execute:
    args: $CACHE $GAMEDIR/CDD
    file: $CACHE/selectcopy2.sh
- write_file:
    content: '[cpu]

      cputype=486_slow

      cycles=15000

      [sdl]

      sensitivity=30

      fullresolution=desktop

      windowresolution=original

      fullscreen=true

      output=opengl

      capture_mouse = onstart middlerelease

      [render]

      aspect=true

      scaler=normal2x

      [autoexec]

      mount C "$GAMEDIR/worms" -t dir

      imgmount D "$GAMEDIR/CDD/WORMS.DAT" -t iso

      C:

      call worms

      exit'
    file: $GAMEDIR/worms.conf
description: '- Tested GOG installer version: setup_worms_united_1.0_(28045).exe'
game_slug: worms-united
gogslug: worms_united
humblestoreid: ''
installer_slug: worms-united-gog
name: Worms United
notes: ''
runner: dosbox
script:
  files:
  - game: N/A:Select GOG installer
  - inno: https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz
  game:
    main_file: $GAMEDIR/worms.conf
  installer:
  - write_file:
      content: '#!/bin/bash

        src=$1

        dst=$2

        find "$src" -maxdepth 1  -type d \( -iname "batch" -o -name "BIN" -o -iname
        "DATA" -o -name "DOCS" -o -iname "EXTRAS"  \) -exec cp {} -r "$dst" \;

        find "$src/__support/save" -maxdepth 1  -type f \( -iname "Worms.CFG" \) -exec
        cp {} "$dst" \;

        find "$src" -maxdepth 1  -type f \( -iname "*.exe" -o -iname "*.bat" \) -exec
        cp {} "$dst" \;'
      file: $CACHE/selectcopy.sh
  - chmodx: $CACHE/selectcopy.sh
  - write_file:
      content: '#!/bin/bash

        src=$1

        dst=$2

        find "$src" -maxdepth 1  -type f \( -iname "*.dat" -o -iname "*.gog" -o -iname
        "*.ogg"  \) -exec cp {} "$dst" \;'
      file: $CACHE/selectcopy2.sh
  - chmodx: $CACHE/selectcopy2.sh
  - extract:
      dst: $CACHE
      file: $inno
  - execute:
      args: -d "$CACHE" "$game"
      file: $CACHE/innoextract
  - execute:
      args: $GAMEDIR/worms  $GAMEDIR/CDD
      file: mkdir
  - copy:
      dst: $GAMEDIR
      src: $CACHE/manual.pdf
  - execute:
      args: $CACHE $GAMEDIR/worms
      file: $CACHE/selectcopy.sh
  - execute:
      args: $CACHE $GAMEDIR/CDD
      file: $CACHE/selectcopy2.sh
  - write_file:
      content: '[cpu]

        cputype=486_slow

        cycles=15000

        [sdl]

        sensitivity=30

        fullresolution=desktop

        windowresolution=original

        fullscreen=true

        output=opengl

        capture_mouse = onstart middlerelease

        [render]

        aspect=true

        scaler=normal2x

        [autoexec]

        mount C "$GAMEDIR/worms" -t dir

        imgmount D "$GAMEDIR/CDD/WORMS.DAT" -t iso

        C:

        call worms

        exit'
      file: $GAMEDIR/worms.conf
slug: worms-united-gog
steamid: null
version: GOG
year: 1996
{
  "game_slug": "worms-united",
  "version": "GOG",
  "description": "- Tested GOG installer version: setup_worms_united_1.0_(28045).exe",
  "notes": "",
  "name": "Worms United",
  "year": 1996,
  "steamid": null,
  "gogslug": "worms_united",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "worms-united-gog",
  "installer_slug": "worms-united-gog",
  "script": {
    "files": [
      {
        "game": "N/A:Select GOG installer"
      },
      {
        "inno": "https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
      }
    ],
    "game": {
      "main_file": "$GAMEDIR/worms.conf"
    },
    "installer": [
      {
        "write_file": {
          "content": "#!/bin/bash\nsrc=$1\ndst=$2\nfind \"$src\" -maxdepth 1  -type d \\( -iname \"batch\" -o -name \"BIN\" -o -iname \"DATA\" -o -name \"DOCS\" -o -iname \"EXTRAS\"  \\) -exec cp {} -r \"$dst\" \\;\nfind \"$src/__support/save\" -maxdepth 1  -type f \\( -iname \"Worms.CFG\" \\) -exec cp {} \"$dst\" \\;\nfind \"$src\" -maxdepth 1  -type f \\( -iname \"*.exe\" -o -iname \"*.bat\" \\) -exec cp {} \"$dst\" \\;",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "chmodx": "$CACHE/selectcopy.sh"
      },
      {
        "write_file": {
          "content": "#!/bin/bash\nsrc=$1\ndst=$2\nfind \"$src\" -maxdepth 1  -type f \\( -iname \"*.dat\" -o -iname \"*.gog\" -o -iname \"*.ogg\"  \\) -exec cp {} \"$dst\" \\;",
          "file": "$CACHE/selectcopy2.sh"
        }
      },
      {
        "chmodx": "$CACHE/selectcopy2.sh"
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "$inno"
        }
      },
      {
        "execute": {
          "args": "-d \"$CACHE\" \"$game\"",
          "file": "$CACHE/innoextract"
        }
      },
      {
        "execute": {
          "args": "$GAMEDIR/worms  $GAMEDIR/CDD",
          "file": "mkdir"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/manual.pdf"
        }
      },
      {
        "execute": {
          "args": "$CACHE $GAMEDIR/worms",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "execute": {
          "args": "$CACHE $GAMEDIR/CDD",
          "file": "$CACHE/selectcopy2.sh"
        }
      },
      {
        "write_file": {
          "content": "[cpu]\ncputype=486_slow\ncycles=15000\n[sdl]\nsensitivity=30\nfullresolution=desktop\nwindowresolution=original\nfullscreen=true\noutput=opengl\ncapture_mouse = onstart middlerelease\n[render]\naspect=true\nscaler=normal2x\n[autoexec]\nmount C \"$GAMEDIR/worms\" -t dir\nimgmount D \"$GAMEDIR/CDD/WORMS.DAT\" -t iso\nC:\ncall worms\nexit",
          "file": "$GAMEDIR/worms.conf"
        }
      }
    ]
  }
}
Back to game