Installer freespace-2-yet-another-launcher

This script is for reference only and can't be directly used to install the game in the Lutris client. To install the game, download the full script.

exe: freespace2/fs2_launcher.sh
files:
- game: http://vega.livecd.pl/~havner/yal/linux/yal-0.3-rc2-bin.tar.bz2
- lib32: http://archive.debian.org/debian/pool/main/i/ia32-libs-gtk/ia32-libs-gtk_20140131_amd64.deb
game:
  working_dir: $GAMEDIR/drive_c/game
installer:
- extract:
    description: extracting...
    dst: $GAMEDIR/drive_c/game
    file: $game
- execute:
    args: -c "chmod +x $GAMEDIR/freespace2/fs2_launcher"
    file: /bin/sh
    terminal: false
- execute:
    args: -c "rm -f $GAMEDIR/freespace2/btrl_launcher"
    file: /bin/sh
    terminal: false
- execute:
    args: -c "rm -f $GAMEDIR/freespace2/wcsaga_launcher"
    file: /bin/sh
    terminal: false
- execute:
    args: -c "rm -f $GAMEDIR/freespace2/tbp_launcher"
    file: /bin/sh
    terminal: false
- execute:
    args: -c "cd $CACHE && ar x ia32-libs-gtk_20140131_amd64.deb data.tar.gz"
    file: /bin/sh
    terminal: false
- extract:
    dst: $CACHE
    file: $CACHE/data.tar.gz
- move:
    dst: $GAMEDIR/freespace2/lib32
    src: $CACHE/usr/lib32
- execute:
    args: -c "printf '#!/bin/sh\ncd $GAMEDIR/freespace2\nLD_LIBRARY_PATH=$$LD_LIBRARY_PATH:lib32
      ./fs2_launcher \"$$@\"'>$GAMEDIR/freespace2/fs2_launcher.sh"
    file: /bin/sh
    terminal: false
- execute:
    args: -c "printf '[launcher]\nactive_mod = ;\nexe_filepath = $GAMEDIR/freespace2/fs2_open.sh;\ngame_flags
      = ;\n'>$GAMEDIR/freespace2/launcher6.ini"
    file: /bin/sh
    terminal: false
- chmodx: $GAMEDIR/freespace2/fs2_launcher.sh
requires: freespace-2-fs2_open
{
  "installer": [
    {
      "extract": {
        "description": "extracting...",
        "dst": "$GAMEDIR/drive_c/game",
        "file": "$game"
      }
    },
    {
      "execute": {
        "args": "-c \"chmod +x $GAMEDIR/freespace2/fs2_launcher\"",
        "file": "/bin/sh",
        "terminal": false
      }
    },
    {
      "execute": {
        "args": "-c \"rm -f $GAMEDIR/freespace2/btrl_launcher\"",
        "file": "/bin/sh",
        "terminal": false
      }
    },
    {
      "execute": {
        "args": "-c \"rm -f $GAMEDIR/freespace2/wcsaga_launcher\"",
        "file": "/bin/sh",
        "terminal": false
      }
    },
    {
      "execute": {
        "args": "-c \"rm -f $GAMEDIR/freespace2/tbp_launcher\"",
        "file": "/bin/sh",
        "terminal": false
      }
    },
    {
      "execute": {
        "args": "-c \"cd $CACHE && ar x ia32-libs-gtk_20140131_amd64.deb data.tar.gz\"",
        "file": "/bin/sh",
        "terminal": false
      }
    },
    {
      "extract": {
        "dst": "$CACHE",
        "file": "$CACHE/data.tar.gz"
      }
    },
    {
      "move": {
        "src": "$CACHE/usr/lib32",
        "dst": "$GAMEDIR/freespace2/lib32"
      }
    },
    {
      "execute": {
        "args": "-c \"printf '#!/bin/sh\\ncd $GAMEDIR/freespace2\\nLD_LIBRARY_PATH=$$LD_LIBRARY_PATH:lib32 ./fs2_launcher \\\"$$@\\\"'>$GAMEDIR/freespace2/fs2_launcher.sh\"",
        "file": "/bin/sh",
        "terminal": false
      }
    },
    {
      "execute": {
        "args": "-c \"printf '[launcher]\\nactive_mod = ;\\nexe_filepath = $GAMEDIR/freespace2/fs2_open.sh;\\ngame_flags = ;\\n'>$GAMEDIR/freespace2/launcher6.ini\"",
        "file": "/bin/sh",
        "terminal": false
      }
    },
    {
      "chmodx": "$GAMEDIR/freespace2/fs2_launcher.sh"
    }
  ],
  "game": {
    "working_dir": "$GAMEDIR/drive_c/game"
  },
  "exe": "freespace2/fs2_launcher.sh",
  "requires": "freespace-2-fs2_open",
  "files": [
    {
      "game": "http://vega.livecd.pl/~havner/yal/linux/yal-0.3-rc2-bin.tar.bz2"
    },
    {
      "lib32": "http://archive.debian.org/debian/pool/main/i/ia32-libs-gtk/ia32-libs-gtk_20140131_amd64.deb"
    }
  ]
}
Back to game