Installer theme-hospital-gog-corsixth-flatpak

files:
- gogsetup: N/A:Please select the exe setup file downloaded from your GOG account.
- cfg_file: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Theme%20Hospital/config.txt
game:
  args: run $FQDN --config-file=$GAMEDIR/CorsixTH/config.txt
  exe: /usr/bin/flatpak
installer:
- extract:
    dst: $GAMEDIR/TH
    file: gogsetup
    format: gog
- execute:
    args: install flathub -y --noninteractive $FQDN
    description: Installing with flatpak
    disable_runtime: true
    file: /usr/bin/flatpak
- merge:
    dst: $GAMEDIR/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: cd "$GAMEDIR/CorsixTH"; sed -i -e "s=../app/=$GAMEDIR/TH=g"  -e "s/width
      = .*/width = $RESOLUTION_WIDTH/g" -e "s/height = .*/height = $RESOLUTION_HEIGHT/g"
      -e "s/.*language.*/language = [[$INPUT_LANG]]/g" config.txt
require-binaries: flatpak
variables:
  FQDN: com.corsixth.corsixth
description: Play "Theme Hospital" provided by GOG on Linux! using "CorsixTH" open
  source engine
game_slug: theme-hospital
gogslug: theme_hospital
humblestoreid: ''
installer_slug: theme-hospital-gog-corsixth-flatpak
name: Theme Hospital
notes: "- You will need to give rights access CorsixTH to your filesystem using Flatseal\
  \ app\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: linux
script:
  files:
  - gogsetup: N/A:Please select the exe setup file downloaded from your GOG account.
  - cfg_file: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Theme%20Hospital/config.txt
  game:
    args: run $FQDN --config-file=$GAMEDIR/CorsixTH/config.txt
    exe: /usr/bin/flatpak
  installer:
  - extract:
      dst: $GAMEDIR/TH
      file: gogsetup
      format: gog
  - execute:
      args: install flathub -y --noninteractive $FQDN
      description: Installing with flatpak
      disable_runtime: true
      file: /usr/bin/flatpak
  - merge:
      dst: $GAMEDIR/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: cd "$GAMEDIR/CorsixTH"; sed -i -e "s=../app/=$GAMEDIR/TH=g"  -e "s/width
        = .*/width = $RESOLUTION_WIDTH/g" -e "s/height = .*/height = $RESOLUTION_HEIGHT/g"
        -e "s/.*language.*/language = [[$INPUT_LANG]]/g" config.txt
  require-binaries: flatpak
  variables:
    FQDN: com.corsixth.corsixth
slug: theme-hospital-gog-corsixth-flatpak
steamid: null
version: GOG + CorsixTH Flatpak
year: 1997
{
  "game_slug": "theme-hospital",
  "version": "GOG + CorsixTH Flatpak",
  "description": "Play \"Theme Hospital\" provided by GOG on Linux! using \"CorsixTH\" open source engine",
  "notes": "- You will need to give rights access CorsixTH to your filesystem using Flatseal app\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": "linux",
  "slug": "theme-hospital-gog-corsixth-flatpak",
  "installer_slug": "theme-hospital-gog-corsixth-flatpak",
  "script": {
    "files": [
      {
        "gogsetup": "N/A:Please select the exe setup file downloaded from your GOG account."
      },
      {
        "cfg_file": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Theme%20Hospital/config.txt"
      }
    ],
    "game": {
      "args": "run $FQDN --config-file=$GAMEDIR/CorsixTH/config.txt",
      "exe": "/usr/bin/flatpak"
    },
    "installer": [
      {
        "extract": {
          "dst": "$GAMEDIR/TH",
          "file": "gogsetup",
          "format": "gog"
        }
      },
      {
        "execute": {
          "args": "install flathub -y --noninteractive $FQDN",
          "description": "Installing with flatpak",
          "disable_runtime": true,
          "file": "/usr/bin/flatpak"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/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": "cd \"$GAMEDIR/CorsixTH\"; sed -i -e \"s=../app/=$GAMEDIR/TH=g\"  -e \"s/width = .*/width = $RESOLUTION_WIDTH/g\" -e \"s/height = .*/height = $RESOLUTION_HEIGHT/g\" -e \"s/.*language.*/language = [[$INPUT_LANG]]/g\" config.txt"
        }
      }
    ],
    "require-binaries": "flatpak",
    "variables": {
      "FQDN": "com.corsixth.corsixth"
    }
  }
}
Back to game