Installer starcraft-brood-war-battle-chest-2-cd

files:
- patch1161: https://web.archive.org/web/20140908015808/http://ftp.blizzard.com/pub/starcraft/patches/PC/SC-1161.exe
- cncddraw: https://github.com/FunkyFr3sh/cnc-ddraw/releases/download/v4.6.0.0/cnc-ddraw.zip
game:
  arch: win32
  exe: $GAMEDIR/$gamepath/StarCraft.exe
  prefix: $GAMEDIR
installer:
- write_file:
    content: '#!/bin/bash

      file="$1"; hash="$2"; echo "[INFO] Verifying $(basename "$file") sha256 checksum...";
      if [ $(sha256sum "$file" | cut -c 1-64) = "$hash" ]; then echo "[INFO] ...checksum
      OK!"; else echo "[ERROR] ...checksum FAILED!"; exit 1; fi

      '
    file: $CACHE/checkhash.sh
- execute:
    args: +x $CACHE/checkhash.sh
    file: chmod
- execute:
    args: cncddraw $cncddraw_sha256
    file: $CACHE/checkhash.sh
- insert-disc:
    requires: ../SCDisc1/Installer Tome.mpq
- insert-disc:
    requires: ../SCDisc2/Installer Tome 2.mpq
- task:
    arch: win32
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: win98
    arch: win32
    description: Setting Windows version to 98
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win32
    executable: $DISC/../SCDisc1/StarCraft (Windows).exe
    name: wineexec
    prefix: $GAMEDIR
- task:
    arch: win32
    executable: patch1161
    name: wineexec
    prefix: $GAMEDIR
- extract:
    dst: $GAMEDIR/$gamepath
    src: cncddraw
require-binaries: sha256sum
variables:
  cncddraw_sha256: 1633d30bc80ecae60db97e881a4c804911e300dcb280d58ea8b8ddda2e1dd1ac
  gamepath: drive_c/Program Files/StarCraft
wine:
  overrides:
    ddraw.dll: n
description: 'Installs both StarCraft and StartCraft: Brood War. Patches to 1.16.1.'
game_slug: starcraft-brood-war
gogslug: ''
humblestoreid: ''
installer_slug: starcraft-brood-war-battle-chest-2-cd
name: 'Starcraft: Brood War'
notes: "This edition requires a 26-character CD-key.\r\n\r\n1. Rip/Mount both CDs\
  \ into two separate directories.\r\n2. Proceed with the installation and manually\
  \ point Lutris to each CD when prompted.\r\n3. Proceed with the normal Windows installation.\
  \ \r\n4. Exit the game to complete the installation.\r\n\r\nConsider disabling the\
  \ Lutris runtime to enable gamescope and run the game with integer scaling and nearest\
  \ neighbor filtering."
runner: wine
script:
  files:
  - patch1161: https://web.archive.org/web/20140908015808/http://ftp.blizzard.com/pub/starcraft/patches/PC/SC-1161.exe
  - cncddraw: https://github.com/FunkyFr3sh/cnc-ddraw/releases/download/v4.6.0.0/cnc-ddraw.zip
  game:
    arch: win32
    exe: $GAMEDIR/$gamepath/StarCraft.exe
    prefix: $GAMEDIR
  installer:
  - write_file:
      content: '#!/bin/bash

        file="$1"; hash="$2"; echo "[INFO] Verifying $(basename "$file") sha256 checksum...";
        if [ $(sha256sum "$file" | cut -c 1-64) = "$hash" ]; then echo "[INFO] ...checksum
        OK!"; else echo "[ERROR] ...checksum FAILED!"; exit 1; fi

        '
      file: $CACHE/checkhash.sh
  - execute:
      args: +x $CACHE/checkhash.sh
      file: chmod
  - execute:
      args: cncddraw $cncddraw_sha256
      file: $CACHE/checkhash.sh
  - insert-disc:
      requires: ../SCDisc1/Installer Tome.mpq
  - insert-disc:
      requires: ../SCDisc2/Installer Tome 2.mpq
  - task:
      arch: win32
      install_gecko: false
      install_mono: false
      name: create_prefix
      prefix: $GAMEDIR
  - task:
      app: win98
      arch: win32
      description: Setting Windows version to 98
      name: winetricks
      prefix: $GAMEDIR
  - task:
      arch: win32
      executable: $DISC/../SCDisc1/StarCraft (Windows).exe
      name: wineexec
      prefix: $GAMEDIR
  - task:
      arch: win32
      executable: patch1161
      name: wineexec
      prefix: $GAMEDIR
  - extract:
      dst: $GAMEDIR/$gamepath
      src: cncddraw
  require-binaries: sha256sum
  variables:
    cncddraw_sha256: 1633d30bc80ecae60db97e881a4c804911e300dcb280d58ea8b8ddda2e1dd1ac
    gamepath: drive_c/Program Files/StarCraft
  wine:
    overrides:
      ddraw.dll: n
slug: starcraft-brood-war-battle-chest-2-cd
steamid: null
version: Battle Chest 2 CD
year: 1998
{
  "game_slug": "starcraft-brood-war",
  "version": "Battle Chest 2 CD",
  "description": "Installs both StarCraft and StartCraft: Brood War. Patches to 1.16.1.",
  "notes": "This edition requires a 26-character CD-key.\r\n\r\n1. Rip/Mount both CDs into two separate directories.\r\n2. Proceed with the installation and manually point Lutris to each CD when prompted.\r\n3. Proceed with the normal Windows installation. \r\n4. Exit the game to complete the installation.\r\n\r\nConsider disabling the Lutris runtime to enable gamescope and run the game with integer scaling and nearest neighbor filtering.",
  "name": "Starcraft: Brood War",
  "year": 1998,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "starcraft-brood-war-battle-chest-2-cd",
  "installer_slug": "starcraft-brood-war-battle-chest-2-cd",
  "script": {
    "files": [
      {
        "patch1161": "https://web.archive.org/web/20140908015808/http://ftp.blizzard.com/pub/starcraft/patches/PC/SC-1161.exe"
      },
      {
        "cncddraw": "https://github.com/FunkyFr3sh/cnc-ddraw/releases/download/v4.6.0.0/cnc-ddraw.zip"
      }
    ],
    "game": {
      "arch": "win32",
      "exe": "$GAMEDIR/$gamepath/StarCraft.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "write_file": {
          "content": "#!/bin/bash\nfile=\"$1\"; hash=\"$2\"; echo \"[INFO] Verifying $(basename \"$file\") sha256 checksum...\"; if [ $(sha256sum \"$file\" | cut -c 1-64) = \"$hash\" ]; then echo \"[INFO] ...checksum OK!\"; else echo \"[ERROR] ...checksum FAILED!\"; exit 1; fi\n",
          "file": "$CACHE/checkhash.sh"
        }
      },
      {
        "execute": {
          "args": "+x $CACHE/checkhash.sh",
          "file": "chmod"
        }
      },
      {
        "execute": {
          "args": "cncddraw $cncddraw_sha256",
          "file": "$CACHE/checkhash.sh"
        }
      },
      {
        "insert-disc": {
          "requires": "../SCDisc1/Installer Tome.mpq"
        }
      },
      {
        "insert-disc": {
          "requires": "../SCDisc2/Installer Tome 2.mpq"
        }
      },
      {
        "task": {
          "arch": "win32",
          "install_gecko": false,
          "install_mono": false,
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "win98",
          "arch": "win32",
          "description": "Setting Windows version to 98",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "arch": "win32",
          "executable": "$DISC/../SCDisc1/StarCraft (Windows).exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "arch": "win32",
          "executable": "patch1161",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/$gamepath",
          "src": "cncddraw"
        }
      }
    ],
    "require-binaries": "sha256sum",
    "variables": {
      "cncddraw_sha256": "1633d30bc80ecae60db97e881a4c804911e300dcb280d58ea8b8ddda2e1dd1ac",
      "gamepath": "drive_c/Program Files/StarCraft"
    },
    "wine": {
      "overrides": {
        "ddraw.dll": "n"
      }
    }
  }
}
Back to game