Installer pharaoh-cd-cnc-ddraw

files:
- update: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Pharaoh/si_pharaoh_enhancepack_en.zip
- wrapper: https://github.com/FunkyFr3sh/cnc-ddraw/releases/download/v7.1.0.0/cnc-ddraw.zip
- patch: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Pharaoh/patch_pharaoh.zip
game:
  exe: drive_c/SIERRA/Pharaoh/Pharaoh.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- insert-disc:
    description: Please insert Pharaoh CD
    requires: pharaoh.ico
- task:
    description: Installing...
    executable: $DISC/setup.exe
    name: wineexec
    prefix: $GAMEDIR
- execute:
    command: cd "$GAMEDIR/drive_c/SIERRA" && chmod -R +w *;
- extract:
    dst: $CACHE
    file: update
- task:
    executable: $CACHE/si_pharaoh_enhancepack_en.exe
    name: wineexec
    prefix: $GAMEDIR
- merge:
    dst: $GAMEDIR/drive_c/SIERRA/Pharaoh/backup
    src: $GAMEDIR/drive_c/SIERRA/Pharaoh/Pharaoh.exe
- extract:
    dst: $GAMEDIR/drive_c/SIERRA/Pharaoh
    file: patch
- extract:
    dst: $GAMEDIR/drive_c/SIERRA/Pharaoh
    file: wrapper
- write_config:
    data:
      ddraw:
        fullscreen: true
        maintas: true
        windowed: true
    file: $GAMEDIR/drive_c/SIERRA/Pharaoh/ddraw.ini
    merge: true
wine:
  overrides:
    ddraw: n,b
description: Play "Pharaoh" CD edition on Linux!
game_slug: pharaoh
gogslug: pharaoh_cleopatra
humblestoreid: ''
installer_slug: pharaoh-cd-cnc-ddraw
name: Pharaoh
notes: "- using cnc-ddraw graphic wrapper for better graphic stability\r\n- choose\
  \ \"Full install\" and you will no more need CD after installing\r\n- Enhancement\
  \ Pack 1.2 included"
runner: wine
script:
  files:
  - update: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Pharaoh/si_pharaoh_enhancepack_en.zip
  - wrapper: https://github.com/FunkyFr3sh/cnc-ddraw/releases/download/v7.1.0.0/cnc-ddraw.zip
  - patch: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Pharaoh/patch_pharaoh.zip
  game:
    exe: drive_c/SIERRA/Pharaoh/Pharaoh.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      name: create_prefix
      prefix: $GAMEDIR
  - insert-disc:
      description: Please insert Pharaoh CD
      requires: pharaoh.ico
  - task:
      description: Installing...
      executable: $DISC/setup.exe
      name: wineexec
      prefix: $GAMEDIR
  - execute:
      command: cd "$GAMEDIR/drive_c/SIERRA" && chmod -R +w *;
  - extract:
      dst: $CACHE
      file: update
  - task:
      executable: $CACHE/si_pharaoh_enhancepack_en.exe
      name: wineexec
      prefix: $GAMEDIR
  - merge:
      dst: $GAMEDIR/drive_c/SIERRA/Pharaoh/backup
      src: $GAMEDIR/drive_c/SIERRA/Pharaoh/Pharaoh.exe
  - extract:
      dst: $GAMEDIR/drive_c/SIERRA/Pharaoh
      file: patch
  - extract:
      dst: $GAMEDIR/drive_c/SIERRA/Pharaoh
      file: wrapper
  - write_config:
      data:
        ddraw:
          fullscreen: true
          maintas: true
          windowed: true
      file: $GAMEDIR/drive_c/SIERRA/Pharaoh/ddraw.ini
      merge: true
  wine:
    overrides:
      ddraw: n,b
slug: pharaoh-cd-cnc-ddraw
steamid: 564530
version: CD + cnc-ddraw
year: 1999
{
  "game_slug": "pharaoh",
  "version": "CD + cnc-ddraw",
  "description": "Play \"Pharaoh\" CD edition on Linux!",
  "notes": "- using cnc-ddraw graphic wrapper for better graphic stability\r\n- choose \"Full install\" and you will no more need CD after installing\r\n- Enhancement Pack 1.2 included",
  "name": "Pharaoh",
  "year": 1999,
  "steamid": 564530,
  "gogslug": "pharaoh_cleopatra",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "pharaoh-cd-cnc-ddraw",
  "installer_slug": "pharaoh-cd-cnc-ddraw",
  "script": {
    "files": [
      {
        "update": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Pharaoh/si_pharaoh_enhancepack_en.zip"
      },
      {
        "wrapper": "https://github.com/FunkyFr3sh/cnc-ddraw/releases/download/v7.1.0.0/cnc-ddraw.zip"
      },
      {
        "patch": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Pharaoh/patch_pharaoh.zip"
      }
    ],
    "game": {
      "exe": "drive_c/SIERRA/Pharaoh/Pharaoh.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "insert-disc": {
          "description": "Please insert Pharaoh CD",
          "requires": "pharaoh.ico"
        }
      },
      {
        "task": {
          "description": "Installing...",
          "executable": "$DISC/setup.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "cd \"$GAMEDIR/drive_c/SIERRA\" && chmod -R +w *;"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "update"
        }
      },
      {
        "task": {
          "executable": "$CACHE/si_pharaoh_enhancepack_en.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/SIERRA/Pharaoh/backup",
          "src": "$GAMEDIR/drive_c/SIERRA/Pharaoh/Pharaoh.exe"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/SIERRA/Pharaoh",
          "file": "patch"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/SIERRA/Pharaoh",
          "file": "wrapper"
        }
      },
      {
        "write_config": {
          "data": {
            "ddraw": {
              "fullscreen": true,
              "maintas": true,
              "windowed": true
            }
          },
          "file": "$GAMEDIR/drive_c/SIERRA/Pharaoh/ddraw.ini",
          "merge": true
        }
      }
    ],
    "wine": {
      "overrides": {
        "ddraw": "n,b"
      }
    }
  }
}
Back to game