Installer wing-commander-windows-gog-v1

files:
- game: N/A:Select GOG installer
- inno: https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz
game:
  main_file: $GAMEDIR/wing.conf
installer:
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

      find "$src" -maxdepth 1  -type f \( -iname "*.CFG" -o -iname "*.EXE"   \) -exec
      cp {} "$dst" \;'
    file: $CACHE/selectcopy.sh
- chmodx: $CACHE/selectcopy.sh
- extract:
    dst: $CACHE
    file: $inno
- execute:
    args: -d "$CACHE" "$game"
    file: $CACHE/innoextract
- execute:
    args: $GAMEDIR/wing
    file: mkdir
- copy:
    dst: $GAMEDIR/wing/save
    src: $CACHE/__support/save
- copy:
    dst: $GAMEDIR/wing/GAMEDAT
    src: $CACHE/GAMEDAT
- copy:
    dst: $GAMEDIR
    src: $CACHE/manual.pdf
- copy:
    dst: $GAMEDIR
    src: $CACHE/Ships Blueprints.pdf
- copy:
    dst: $GAMEDIR
    src: $CACHE/The Secret Missions 2 - Reference Card.pdf
- copy:
    dst: $GAMEDIR
    src: $CACHE/The Secret Missions - Reference Card.pdf
- execute:
    args: $CACHE/  $GAMEDIR/wing
    file: $CACHE/selectcopy.sh
- write_file:
    content: '[cpu]

      core=auto

      cputype=auto

      cycles=4000

      [sdl]

      sensitivity=35

      fullresolution=desktop

      windowresolution=original

      fullscreen=true

      output=opengl

      capture_mouse = onstart middlerelease

      [render]

      aspect=true

      scaler=normal2x

      [autoexec]

      mount C "$GAMEDIR" -t dir

      c:

      cd wing

      cls

      ECHO OFF

      goto launcher

      :launcher

      cls

      ECHO  -------------------------------------------

      ECHO                Wing  Commander

      ECHO  -------------------------------------------

      ECHO   1) Wing Commander with Secret Missions

      ECHO   2) The Secrets Missions 2 - Crusade

      ECHO  -------------------------------------------

      ECHO   3) Exit Program

      ECHO  -------------------------------------------


      choice /c123 /s Which program do you want to run? [1-3]: /n

      if errorlevel 3 goto exit

      if errorlevel 2 goto addons

      if errorlevel 1 goto game


      :game

      cls

      loadfix -1 wc

      goto exit


      :addons

      cls

      loadfix -1 sm2

      goto launcher


      :exit

      exit

      exit'
    file: $GAMEDIR/wing.conf
description: null
game_slug: wing-commander
gogslug: wing_commander_1_2
humblestoreid: ''
installer_slug: wing-commander-windows-gog-v1
name: Wing Commander
notes: ''
runner: dosbox
script:
  files:
  - game: N/A:Select GOG installer
  - inno: https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz
  game:
    main_file: $GAMEDIR/wing.conf
  installer:
  - write_file:
      content: '#!/bin/bash

        src=$1

        dst=$2

        find "$src" -maxdepth 1  -type f \( -iname "*.CFG" -o -iname "*.EXE"   \)
        -exec cp {} "$dst" \;'
      file: $CACHE/selectcopy.sh
  - chmodx: $CACHE/selectcopy.sh
  - extract:
      dst: $CACHE
      file: $inno
  - execute:
      args: -d "$CACHE" "$game"
      file: $CACHE/innoextract
  - execute:
      args: $GAMEDIR/wing
      file: mkdir
  - copy:
      dst: $GAMEDIR/wing/save
      src: $CACHE/__support/save
  - copy:
      dst: $GAMEDIR/wing/GAMEDAT
      src: $CACHE/GAMEDAT
  - copy:
      dst: $GAMEDIR
      src: $CACHE/manual.pdf
  - copy:
      dst: $GAMEDIR
      src: $CACHE/Ships Blueprints.pdf
  - copy:
      dst: $GAMEDIR
      src: $CACHE/The Secret Missions 2 - Reference Card.pdf
  - copy:
      dst: $GAMEDIR
      src: $CACHE/The Secret Missions - Reference Card.pdf
  - execute:
      args: $CACHE/  $GAMEDIR/wing
      file: $CACHE/selectcopy.sh
  - write_file:
      content: '[cpu]

        core=auto

        cputype=auto

        cycles=4000

        [sdl]

        sensitivity=35

        fullresolution=desktop

        windowresolution=original

        fullscreen=true

        output=opengl

        capture_mouse = onstart middlerelease

        [render]

        aspect=true

        scaler=normal2x

        [autoexec]

        mount C "$GAMEDIR" -t dir

        c:

        cd wing

        cls

        ECHO OFF

        goto launcher

        :launcher

        cls

        ECHO  -------------------------------------------

        ECHO                Wing  Commander

        ECHO  -------------------------------------------

        ECHO   1) Wing Commander with Secret Missions

        ECHO   2) The Secrets Missions 2 - Crusade

        ECHO  -------------------------------------------

        ECHO   3) Exit Program

        ECHO  -------------------------------------------


        choice /c123 /s Which program do you want to run? [1-3]: /n

        if errorlevel 3 goto exit

        if errorlevel 2 goto addons

        if errorlevel 1 goto game


        :game

        cls

        loadfix -1 wc

        goto exit


        :addons

        cls

        loadfix -1 sm2

        goto launcher


        :exit

        exit

        exit'
      file: $GAMEDIR/wing.conf
slug: wing-commander-windows-gog-v1
steamid: null
version: Windows GOG v1
year: 1990
{
  "game_slug": "wing-commander",
  "version": "Windows GOG v1",
  "description": null,
  "notes": "",
  "name": "Wing Commander",
  "year": 1990,
  "steamid": null,
  "gogslug": "wing_commander_1_2",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "wing-commander-windows-gog-v1",
  "installer_slug": "wing-commander-windows-gog-v1",
  "script": {
    "files": [
      {
        "game": "N/A:Select GOG installer"
      },
      {
        "inno": "https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
      }
    ],
    "game": {
      "main_file": "$GAMEDIR/wing.conf"
    },
    "installer": [
      {
        "write_file": {
          "content": "#!/bin/bash\nsrc=$1\ndst=$2\nfind \"$src\" -maxdepth 1  -type f \\( -iname \"*.CFG\" -o -iname \"*.EXE\"   \\) -exec cp {} \"$dst\" \\;",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "chmodx": "$CACHE/selectcopy.sh"
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "$inno"
        }
      },
      {
        "execute": {
          "args": "-d \"$CACHE\" \"$game\"",
          "file": "$CACHE/innoextract"
        }
      },
      {
        "execute": {
          "args": "$GAMEDIR/wing",
          "file": "mkdir"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/wing/save",
          "src": "$CACHE/__support/save"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/wing/GAMEDAT",
          "src": "$CACHE/GAMEDAT"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/manual.pdf"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/Ships Blueprints.pdf"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/The Secret Missions 2 - Reference Card.pdf"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/The Secret Missions - Reference Card.pdf"
        }
      },
      {
        "execute": {
          "args": "$CACHE/  $GAMEDIR/wing",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "write_file": {
          "content": "[cpu]\ncore=auto\ncputype=auto\ncycles=4000\n[sdl]\nsensitivity=35\nfullresolution=desktop\nwindowresolution=original\nfullscreen=true\noutput=opengl\ncapture_mouse = onstart middlerelease\n[render]\naspect=true\nscaler=normal2x\n[autoexec]\nmount C \"$GAMEDIR\" -t dir\nc:\ncd wing\ncls\nECHO OFF\ngoto launcher\n:launcher\ncls\nECHO  -------------------------------------------\nECHO                Wing  Commander\nECHO  -------------------------------------------\nECHO   1) Wing Commander with Secret Missions\nECHO   2) The Secrets Missions 2 - Crusade\nECHO  -------------------------------------------\nECHO   3) Exit Program\nECHO  -------------------------------------------\n\nchoice /c123 /s Which program do you want to run? [1-3]: /n\nif errorlevel 3 goto exit\nif errorlevel 2 goto addons\nif errorlevel 1 goto game\n\n:game\ncls\nloadfix -1 wc\ngoto exit\n\n:addons\ncls\nloadfix -1 sm2\ngoto launcher\n\n:exit\nexit\nexit",
          "file": "$GAMEDIR/wing.conf"
        }
      }
    ]
  }
}
Back to game