Installer theme-hospital-gog-corsixth

files:
- gogsetup: N/A:Please select the exe setup file downloaded from your GOG account.
- engine: https://github.com/CorsixTH/CorsixTH/releases/download/v0.68.0/CorsixTH-0.68-Windows-x64.zip
- cfg_file: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Theme%20Hospital/config.txt
- th_music-rx: https://www.dropbox.com/scl/fi/hkk96of5d1ph3qcu6uqln/Theme-Hospital-Remastered-Krytie2X4B-OGG.zip?rlkey=de3nzsw0gv16vusb87guiwzwm&st=s8bo1isd&dl=1#
game:
  exe: drive_c/CorsixTH/CorsixTH.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating 64bit Wine prefix.
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $GAMEDIR/drive_c/TH
    file: gogsetup
    format: gog
- extract:
    dst: $GAMEDIR/drive_c/CorsixTH
    file: engine
- extract:
    dst: $GAMEDIR/drive_c/CorsixTH/music
    file: th_music-rx
- merge:
    dst: $GAMEDIR/drive_c/users/$USER/AppData/Roaming/CorsixTH
    src: cfg_file
- input_menu:
    description: 'Choose the game''s language:'
    id: LANG
    options:
    - de: German
    - da: Danish
    - fi: Finnish
    - en: English
    - fr: French
    - it: Italian
    - pt: Portuguese
    - br: Brazilian Portuguese
    - sv: Swedish
    - nb: Norwegian
    - es: Spanish
    preselect: en
- execute:
    command: sed -i -e "s=../app/=c:\\\TH=g" -e "s/.*language.*/language = [[$INPUT_LANG]]/g"
      -e "s/audio_music.*/audio_music = [[C:\\\CorsixTH\\\music]]/g" -e "s/width =
      .*/width = $RESOLUTION_WIDTH/g" -e "s/height = .*/height = $RESOLUTION_HEIGHT/g"
      "$GAMEDIR/drive_c/users/$USER/AppData/Roaming/CorsixTH/config.txt"
description: Play "Theme Hospital" provided by GOG on Linux!
game_slug: theme-hospital
gogslug: theme_hospital
humblestoreid: ''
installer_slug: theme-hospital-gog-corsixth
name: Theme Hospital
notes: "- Using \"CorsixTH\" open source engine\r\n- Multilanguage: choose your preferred\
  \ language for interface and game texts between German, Danish, Finnish, English,\
  \ French, Italian, Portuguese, Brazilian Portuguese, Swedish, Norwegian and Spanish"
runner: wine
script:
  files:
  - gogsetup: N/A:Please select the exe setup file downloaded from your GOG account.
  - engine: https://github.com/CorsixTH/CorsixTH/releases/download/v0.68.0/CorsixTH-0.68-Windows-x64.zip
  - cfg_file: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Theme%20Hospital/config.txt
  - th_music-rx: https://www.dropbox.com/scl/fi/hkk96of5d1ph3qcu6uqln/Theme-Hospital-Remastered-Krytie2X4B-OGG.zip?rlkey=de3nzsw0gv16vusb87guiwzwm&st=s8bo1isd&dl=1#
  game:
    exe: drive_c/CorsixTH/CorsixTH.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      description: Creating 64bit Wine prefix.
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      dst: $GAMEDIR/drive_c/TH
      file: gogsetup
      format: gog
  - extract:
      dst: $GAMEDIR/drive_c/CorsixTH
      file: engine
  - extract:
      dst: $GAMEDIR/drive_c/CorsixTH/music
      file: th_music-rx
  - merge:
      dst: $GAMEDIR/drive_c/users/$USER/AppData/Roaming/CorsixTH
      src: cfg_file
  - input_menu:
      description: 'Choose the game''s language:'
      id: LANG
      options:
      - de: German
      - da: Danish
      - fi: Finnish
      - en: English
      - fr: French
      - it: Italian
      - pt: Portuguese
      - br: Brazilian Portuguese
      - sv: Swedish
      - nb: Norwegian
      - es: Spanish
      preselect: en
  - execute:
      command: sed -i -e "s=../app/=c:\\\TH=g" -e "s/.*language.*/language = [[$INPUT_LANG]]/g"
        -e "s/audio_music.*/audio_music = [[C:\\\CorsixTH\\\music]]/g" -e "s/width
        = .*/width = $RESOLUTION_WIDTH/g" -e "s/height = .*/height = $RESOLUTION_HEIGHT/g"
        "$GAMEDIR/drive_c/users/$USER/AppData/Roaming/CorsixTH/config.txt"
slug: theme-hospital-gog-corsixth
steamid: null
version: GOG + CorsixTH
year: 1997
{
  "game_slug": "theme-hospital",
  "version": "GOG + CorsixTH",
  "description": "Play \"Theme Hospital\" provided by GOG on Linux!",
  "notes": "- Using \"CorsixTH\" open source engine\r\n- Multilanguage: choose your preferred language for interface and game texts between German, Danish, Finnish, English, French, Italian, Portuguese, Brazilian Portuguese, Swedish, Norwegian and Spanish",
  "name": "Theme Hospital",
  "year": 1997,
  "steamid": null,
  "gogslug": "theme_hospital",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "theme-hospital-gog-corsixth",
  "installer_slug": "theme-hospital-gog-corsixth",
  "script": {
    "files": [
      {
        "gogsetup": "N/A:Please select the exe setup file downloaded from your GOG account."
      },
      {
        "engine": "https://github.com/CorsixTH/CorsixTH/releases/download/v0.68.0/CorsixTH-0.68-Windows-x64.zip"
      },
      {
        "cfg_file": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Theme%20Hospital/config.txt"
      },
      {
        "th_music-rx": "https://www.dropbox.com/scl/fi/hkk96of5d1ph3qcu6uqln/Theme-Hospital-Remastered-Krytie2X4B-OGG.zip?rlkey=de3nzsw0gv16vusb87guiwzwm&st=s8bo1isd&dl=1#"
      }
    ],
    "game": {
      "exe": "drive_c/CorsixTH/CorsixTH.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "description": "Creating 64bit Wine prefix.",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/TH",
          "file": "gogsetup",
          "format": "gog"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/CorsixTH",
          "file": "engine"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/CorsixTH/music",
          "file": "th_music-rx"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/users/$USER/AppData/Roaming/CorsixTH",
          "src": "cfg_file"
        }
      },
      {
        "input_menu": {
          "description": "Choose the game's language:",
          "id": "LANG",
          "options": [
            {
              "de": "German"
            },
            {
              "da": "Danish"
            },
            {
              "fi": "Finnish"
            },
            {
              "en": "English"
            },
            {
              "fr": "French"
            },
            {
              "it": "Italian"
            },
            {
              "pt": "Portuguese"
            },
            {
              "br": "Brazilian Portuguese"
            },
            {
              "sv": "Swedish"
            },
            {
              "nb": "Norwegian"
            },
            {
              "es": "Spanish"
            }
          ],
          "preselect": "en"
        }
      },
      {
        "execute": {
          "command": "sed -i -e \"s=../app/=c:\\\\\\TH=g\" -e \"s/.*language.*/language = [[$INPUT_LANG]]/g\" -e \"s/audio_music.*/audio_music = [[C:\\\\\\CorsixTH\\\\\\music]]/g\" -e \"s/width = .*/width = $RESOLUTION_WIDTH/g\" -e \"s/height = .*/height = $RESOLUTION_HEIGHT/g\" \"$GAMEDIR/drive_c/users/$USER/AppData/Roaming/CorsixTH/config.txt\""
        }
      }
    ]
  }
}
Back to game