Installer need-for-speed-ii-nfsiise-engine

files:
- engine: https://github.com/zaps166/NFSIISE/releases/download/v1.2.4/nfs2se-linux.tar.gz
game:
  exe: nfs2se
installer:
- insert_disc:
    message: Insert the NFSIISE CD-ROM
    requires: fedata
- merge:
    dst: $GAMEDIR
    src: $DISC
- extract:
    dst: $GAMEDIR
    file: engine
- write_file:
    content: ' #!/bin/bash

      find . -depth -exec sh -c ''

      t=${0%/*}/$(printf %s "${0##*/}" | tr "[:upper:]" "[:lower:]");

      [ "$t" = "$0" ] || mv -i "$0" "$t"

      '' {} \; '
    file: $GAMEDIR/convert_to_lowercase.sh
- chmodx: $GAMEDIR/convert_to_lowercase.sh
- execute:
    command: cd $GAMEDIR; ./convert_to_lowercase.sh
- input_menu:
    description: 'Choose the game''s language:'
    id: LANG
    options:
    - english: English
    - french: French
    - german: German
    - italian: Italian
    - spanish: Spanish
    - swedish: Swedish
    preselect: english
- execute:
    command: cd "$GAMEDIR"; sed -i "s/english/$INPUT_LANG/" install.win
description: Play "Need for Speed II" CD edition using NFSIISE engine https://github.com/zaps166/NFSIISE
game_slug: need-for-speed-ii
gogslug: ''
humblestoreid: ''
installer_slug: need-for-speed-ii-nfsiise-engine
name: Need for Speed II
notes: "- You will need \"Need for Speed II\" CD only one time during install\r\n\
  - You can choose language for menu during install between: English, French, German,\
  \ Italian, Spanish and Swedish."
runner: linux
script:
  files:
  - engine: https://github.com/zaps166/NFSIISE/releases/download/v1.2.4/nfs2se-linux.tar.gz
  game:
    exe: nfs2se
  installer:
  - insert_disc:
      message: Insert the NFSIISE CD-ROM
      requires: fedata
  - merge:
      dst: $GAMEDIR
      src: $DISC
  - extract:
      dst: $GAMEDIR
      file: engine
  - write_file:
      content: ' #!/bin/bash

        find . -depth -exec sh -c ''

        t=${0%/*}/$(printf %s "${0##*/}" | tr "[:upper:]" "[:lower:]");

        [ "$t" = "$0" ] || mv -i "$0" "$t"

        '' {} \; '
      file: $GAMEDIR/convert_to_lowercase.sh
  - chmodx: $GAMEDIR/convert_to_lowercase.sh
  - execute:
      command: cd $GAMEDIR; ./convert_to_lowercase.sh
  - input_menu:
      description: 'Choose the game''s language:'
      id: LANG
      options:
      - english: English
      - french: French
      - german: German
      - italian: Italian
      - spanish: Spanish
      - swedish: Swedish
      preselect: english
  - execute:
      command: cd "$GAMEDIR"; sed -i "s/english/$INPUT_LANG/" install.win
slug: need-for-speed-ii-nfsiise-engine
steamid: null
version: NFSIISE engine
year: 1997
{
  "game_slug": "need-for-speed-ii",
  "version": "NFSIISE engine",
  "description": "Play \"Need for Speed II\" CD edition using NFSIISE engine https://github.com/zaps166/NFSIISE",
  "notes": "- You will need \"Need for Speed II\" CD only one time during install\r\n- You can choose language for menu during install between: English, French, German, Italian, Spanish and Swedish.",
  "name": "Need for Speed II",
  "year": 1997,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "linux",
  "slug": "need-for-speed-ii-nfsiise-engine",
  "installer_slug": "need-for-speed-ii-nfsiise-engine",
  "script": {
    "files": [
      {
        "engine": "https://github.com/zaps166/NFSIISE/releases/download/v1.2.4/nfs2se-linux.tar.gz"
      }
    ],
    "game": {
      "exe": "nfs2se"
    },
    "installer": [
      {
        "insert_disc": {
          "message": "Insert the NFSIISE CD-ROM",
          "requires": "fedata"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$DISC"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR",
          "file": "engine"
        }
      },
      {
        "write_file": {
          "content": " #!/bin/bash\nfind . -depth -exec sh -c '\nt=${0%/*}/$(printf %s \"${0##*/}\" | tr \"[:upper:]\" \"[:lower:]\");\n[ \"$t\" = \"$0\" ] || mv -i \"$0\" \"$t\"\n' {} \\; ",
          "file": "$GAMEDIR/convert_to_lowercase.sh"
        }
      },
      {
        "chmodx": "$GAMEDIR/convert_to_lowercase.sh"
      },
      {
        "execute": {
          "command": "cd $GAMEDIR; ./convert_to_lowercase.sh"
        }
      },
      {
        "input_menu": {
          "description": "Choose the game's language:",
          "id": "LANG",
          "options": [
            {
              "english": "English"
            },
            {
              "french": "French"
            },
            {
              "german": "German"
            },
            {
              "italian": "Italian"
            },
            {
              "spanish": "Spanish"
            },
            {
              "swedish": "Swedish"
            }
          ],
          "preselect": "english"
        }
      },
      {
        "execute": {
          "command": "cd \"$GAMEDIR\"; sed -i \"s/english/$INPUT_LANG/\" install.win"
        }
      }
    ]
  }
}
Back to game