Installer broken-sword-ii-the-smoking-m-gog-original-game

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:
  game_id: sword2
  path: $GAMEDIR
installer:
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

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

      src=$1

      find "$src" -maxdepth 1 -type d \( -iname scummvm -o -iname save -o -iname extras
      \) -exec rm -r {}  \;

      find "$src" -maxdepth 1 -type f \( -iname "*.dll" -o -iname "*.ico" -o -iname
      "*.ini" \) -exec rm {}  \;'
    file: $CACHE/remove.sh
- chmodx: $CACHE/remove.sh
- extract:
    dst: $CACHE
    file: $inno
- execute:
    args: -I app -d "$CACHE" "$game"
    file: $CACHE/innoextract
- merge:
    dst: $GAMEDIR
    src: $CACHE/app
- execute:
    args: $GAMEDIR/Extras  $GAMEDIR
    file: $CACHE/selectcopy.sh
- execute:
    args: $GAMEDIR
    file: $CACHE/remove.sh
scummvm:
  fullscreen: true
description: The script installs the original Broken Sword game files from the GOG
  v2 installers
game_slug: broken-sword-2-the-smoking-mirror
gogslug: ''
humblestoreid: brokensword2
installer_slug: broken-sword-ii-the-smoking-m-gog-original-game
name: 'Broken Sword II: The Smoking Mirror'
notes: ''
runner: scummvm
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:
    game_id: sword2
    path: $GAMEDIR
  installer:
  - write_file:
      content: '#!/bin/bash

        src=$1

        dst=$2

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

        src=$1

        find "$src" -maxdepth 1 -type d \( -iname scummvm -o -iname save -o -iname
        extras \) -exec rm -r {}  \;

        find "$src" -maxdepth 1 -type f \( -iname "*.dll" -o -iname "*.ico" -o -iname
        "*.ini" \) -exec rm {}  \;'
      file: $CACHE/remove.sh
  - chmodx: $CACHE/remove.sh
  - extract:
      dst: $CACHE
      file: $inno
  - execute:
      args: -I app -d "$CACHE" "$game"
      file: $CACHE/innoextract
  - merge:
      dst: $GAMEDIR
      src: $CACHE/app
  - execute:
      args: $GAMEDIR/Extras  $GAMEDIR
      file: $CACHE/selectcopy.sh
  - execute:
      args: $GAMEDIR
      file: $CACHE/remove.sh
  scummvm:
    fullscreen: true
slug: broken-sword-ii-the-smoking-m-gog-original-game
steamid: null
version: GOG Original Game
year: 1997
{
  "game_slug": "broken-sword-2-the-smoking-mirror",
  "version": "GOG Original Game",
  "description": "The script installs the original Broken Sword game files from the GOG v2 installers",
  "notes": "",
  "name": "Broken Sword II: The Smoking Mirror",
  "year": 1997,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "brokensword2",
  "runner": "scummvm",
  "slug": "broken-sword-ii-the-smoking-m-gog-original-game",
  "installer_slug": "broken-sword-ii-the-smoking-m-gog-original-game",
  "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": {
      "game_id": "sword2",
      "path": "$GAMEDIR"
    },
    "installer": [
      {
        "write_file": {
          "content": "#!/bin/bash\nsrc=$1\ndst=$2\nfind \"$src\" -maxdepth 1 -type f \\( -iname \"*.dxa\" -o -iname \"*.fla\" \\) -exec cp {} \"$dst\" \\;",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "chmodx": "$CACHE/selectcopy.sh"
      },
      {
        "write_file": {
          "content": "#!/bin/bash\nsrc=$1\nfind \"$src\" -maxdepth 1 -type d \\( -iname scummvm -o -iname save -o -iname extras \\) -exec rm -r {}  \\;\nfind \"$src\" -maxdepth 1 -type f \\( -iname \"*.dll\" -o -iname \"*.ico\" -o -iname \"*.ini\" \\) -exec rm {}  \\;",
          "file": "$CACHE/remove.sh"
        }
      },
      {
        "chmodx": "$CACHE/remove.sh"
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "$inno"
        }
      },
      {
        "execute": {
          "args": "-I app -d \"$CACHE\" \"$game\"",
          "file": "$CACHE/innoextract"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/app"
        }
      },
      {
        "execute": {
          "args": "$GAMEDIR/Extras  $GAMEDIR",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "execute": {
          "args": "$GAMEDIR",
          "file": "$CACHE/remove.sh"
        }
      }
    ],
    "scummvm": {
      "fullscreen": true
    }
  }
}
Back to game