Installer heroes-of-might-and-magic-ii-gog

files:
- gogsetup: N/A:Please select the GOG installer
game:
  config_file: $GAMEDIR/dosbox_conf/dosboxhomm2.conf
  main_file: $GAMEDIR/dosbox_conf/dosboxhomm2_single.conf
installer:
- extract:
    dst: $CACHE
    format: gog
    src: gogsetup
- merge:
    dst: $GAMEDIR/DATA
    src: $CACHE/DATA
- merge:
    dst: $GAMEDIR/GAMES
    src: $CACHE/GAMES
- merge:
    dst: $GAMEDIR/HELP
    src: $CACHE/HELP
- merge:
    dst: $GAMEDIR/Journals
    src: $CACHE/Journals
- merge:
    dst: $GAMEDIR/MAPS
    src: $CACHE/MAPS
- merge:
    dst: $GAMEDIR/MUSIC
    src: $CACHE/MUSIC
- merge:
    dst: $GAMEDIR/SOUND
    src: $CACHE/SOUND
- merge:
    dst: $GAMEDIR/dosbox_conf
    src: $CACHE/__support/app
- merge:
    dst: $GAMEDIR
    src: $CACHE/EDITOR2.EXE
- merge:
    dst: $GAMEDIR
    src: $CACHE/H2CAMP.TXT
- merge:
    dst: $GAMEDIR
    src: $CACHE/HEROES2.CFG
- merge:
    dst: $GAMEDIR
    src: $CACHE/HEROES2.EXE
- merge:
    dst: $GAMEDIR
    src: $CACHE/homm2.gog
- merge:
    dst: $GAMEDIR
    src: $CACHE/homm2.ins
- merge:
    dst: $GAMEDIR
    src: $CACHE/INSTALL.EXE
- merge:
    dst: $GAMEDIR
    src: $CACHE/manual.pdf
- merge:
    dst: $GAMEDIR
    src: $CACHE/netbios.exe
- merge:
    dst: $GAMEDIR
    src: $CACHE/POLCAMP.TXT
- merge:
    dst: $GAMEDIR
    src: $CACHE/README.TXT
- merge:
    dst: $GAMEDIR
    src: $CACHE/WING.32
- execute:
    command: cd "$GAMEDIR" ; sed -i 's=\.\.\\=../=g' dosbox_conf/dosboxhomm2_client.conf
      ; sed -i 's=\.\.\\=../=g' dosbox_conf/dosboxhomm2_server.conf ; sed -i 's=\.\.\\=../=g'
      dosbox_conf/dosboxhomm2_single.conf ; sed -i 's/fullresolution=original/fullresolution=desktop/'
      dosbox_conf/dosboxhomm2.conf ;
description: ''
game_slug: heroes-of-might-and-magic-ii
gogslug: heroes_of_might_and_magic_2_gold_edition
humblestoreid: ''
installer_slug: heroes-of-might-and-magic-ii-gog
name: Heroes of Might and Magic II
notes: ''
runner: dosbox
script:
  files:
  - gogsetup: N/A:Please select the GOG installer
  game:
    config_file: $GAMEDIR/dosbox_conf/dosboxhomm2.conf
    main_file: $GAMEDIR/dosbox_conf/dosboxhomm2_single.conf
  installer:
  - extract:
      dst: $CACHE
      format: gog
      src: gogsetup
  - merge:
      dst: $GAMEDIR/DATA
      src: $CACHE/DATA
  - merge:
      dst: $GAMEDIR/GAMES
      src: $CACHE/GAMES
  - merge:
      dst: $GAMEDIR/HELP
      src: $CACHE/HELP
  - merge:
      dst: $GAMEDIR/Journals
      src: $CACHE/Journals
  - merge:
      dst: $GAMEDIR/MAPS
      src: $CACHE/MAPS
  - merge:
      dst: $GAMEDIR/MUSIC
      src: $CACHE/MUSIC
  - merge:
      dst: $GAMEDIR/SOUND
      src: $CACHE/SOUND
  - merge:
      dst: $GAMEDIR/dosbox_conf
      src: $CACHE/__support/app
  - merge:
      dst: $GAMEDIR
      src: $CACHE/EDITOR2.EXE
  - merge:
      dst: $GAMEDIR
      src: $CACHE/H2CAMP.TXT
  - merge:
      dst: $GAMEDIR
      src: $CACHE/HEROES2.CFG
  - merge:
      dst: $GAMEDIR
      src: $CACHE/HEROES2.EXE
  - merge:
      dst: $GAMEDIR
      src: $CACHE/homm2.gog
  - merge:
      dst: $GAMEDIR
      src: $CACHE/homm2.ins
  - merge:
      dst: $GAMEDIR
      src: $CACHE/INSTALL.EXE
  - merge:
      dst: $GAMEDIR
      src: $CACHE/manual.pdf
  - merge:
      dst: $GAMEDIR
      src: $CACHE/netbios.exe
  - merge:
      dst: $GAMEDIR
      src: $CACHE/POLCAMP.TXT
  - merge:
      dst: $GAMEDIR
      src: $CACHE/README.TXT
  - merge:
      dst: $GAMEDIR
      src: $CACHE/WING.32
  - execute:
      command: cd "$GAMEDIR" ; sed -i 's=\.\.\\=../=g' dosbox_conf/dosboxhomm2_client.conf
        ; sed -i 's=\.\.\\=../=g' dosbox_conf/dosboxhomm2_server.conf ; sed -i 's=\.\.\\=../=g'
        dosbox_conf/dosboxhomm2_single.conf ; sed -i 's/fullresolution=original/fullresolution=desktop/'
        dosbox_conf/dosboxhomm2.conf ;
slug: heroes-of-might-and-magic-ii-gog
steamid: null
version: GOG
year: 1996
{
  "game_slug": "heroes-of-might-and-magic-ii",
  "version": "GOG",
  "description": "",
  "notes": "",
  "name": "Heroes of Might and Magic II",
  "year": 1996,
  "steamid": null,
  "gogslug": "heroes_of_might_and_magic_2_gold_edition",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "heroes-of-might-and-magic-ii-gog",
  "installer_slug": "heroes-of-might-and-magic-ii-gog",
  "script": {
    "files": [
      {
        "gogsetup": "N/A:Please select the GOG installer"
      }
    ],
    "game": {
      "config_file": "$GAMEDIR/dosbox_conf/dosboxhomm2.conf",
      "main_file": "$GAMEDIR/dosbox_conf/dosboxhomm2_single.conf"
    },
    "installer": [
      {
        "extract": {
          "dst": "$CACHE",
          "format": "gog",
          "src": "gogsetup"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/DATA",
          "src": "$CACHE/DATA"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/GAMES",
          "src": "$CACHE/GAMES"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/HELP",
          "src": "$CACHE/HELP"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/Journals",
          "src": "$CACHE/Journals"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/MAPS",
          "src": "$CACHE/MAPS"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/MUSIC",
          "src": "$CACHE/MUSIC"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/SOUND",
          "src": "$CACHE/SOUND"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/dosbox_conf",
          "src": "$CACHE/__support/app"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/EDITOR2.EXE"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/H2CAMP.TXT"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/HEROES2.CFG"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/HEROES2.EXE"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/homm2.gog"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/homm2.ins"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/INSTALL.EXE"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/manual.pdf"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/netbios.exe"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/POLCAMP.TXT"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/README.TXT"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/WING.32"
        }
      },
      {
        "execute": {
          "command": "cd \"$GAMEDIR\" ; sed -i 's=\\.\\.\\\\=../=g' dosbox_conf/dosboxhomm2_client.conf ; sed -i 's=\\.\\.\\\\=../=g' dosbox_conf/dosboxhomm2_server.conf ; sed -i 's=\\.\\.\\\\=../=g' dosbox_conf/dosboxhomm2_single.conf ; sed -i 's/fullresolution=original/fullresolution=desktop/' dosbox_conf/dosboxhomm2.conf ;"
        }
      }
    ]
  }
}
Back to game