Installer forged-alliance-forever-steam-latest

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.

files:
- scfa:
    filename: path
    url: 'N/A:Supreme Commander: Forged Alliance installation directory'
game:
  exe: $GAMEDIR/downlords-faf-client/downlords-faf-client
installer:
- execute:
    command: wget --output-document $CACHE/java.tar.gz $(curl "https://api.adoptopenjdk.net/v2/info/releases/openjdk15?openjdk_impl=hotspot&os=linux&arch=x64&type=jre&release=latest"
      | grep binary_link | cut -d'"' -f4)
    description: Downloading latest Java 15
- extract:
    dst: $GAMEDIR/java
    file: $CACHE/java.tar.gz
- execute:
    command: wget --output-document $CACHE/dfc_unix.tar.gz $(curl "https://api.github.com/repos/FAForever/downlords-faf-client/releases/latest"
      | grep browser_download_url | grep dfc_unix | cut -d'"' -f4)
    description: Downloading latest FAF client
- extract:
    dst: $GAMEDIR/downlords-faf-client
    file: $CACHE/dfc_unix.tar.gz
- insert-disc:
    message: 'Now you should run Forged Alliance from steam with theese launch options:

      PROTON_DUMP_DEBUG_COMMANDS=1 PROTON_NO_ESYNC=1 PROTON_NO_FSYNC=1 %command%

      You can close it right after.

      Then, the "run" script should appear in /tmp/proton_$USER

      '
    requires: run
- move:
    dst: $GAMEDIR
    src: $DISC/run
- execute:
    command: mkdir $HOME/.faforever
- write_file:
    content: '{"forgedAlliance":{"installationPath":"$scfa","executableDecorator":"$GAMEDIR/run
      \"%s\""}}'
    file: $HOME/.faforever/client.prefs
system:
  env:
    INSTALL4J_JAVA_HOME: $GAMEDIR/java
{
  "files": [
    {
      "scfa": {
        "filename": "path",
        "url": "N/A:Supreme Commander: Forged Alliance installation directory"
      }
    }
  ],
  "game": {
    "exe": "$GAMEDIR/downlords-faf-client/downlords-faf-client"
  },
  "installer": [
    {
      "execute": {
        "command": "wget --output-document $CACHE/java.tar.gz $(curl \"https://api.adoptopenjdk.net/v2/info/releases/openjdk15?openjdk_impl=hotspot&os=linux&arch=x64&type=jre&release=latest\" | grep binary_link | cut -d'\"' -f4)",
        "description": "Downloading latest Java 15"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/java",
        "file": "$CACHE/java.tar.gz"
      }
    },
    {
      "execute": {
        "command": "wget --output-document $CACHE/dfc_unix.tar.gz $(curl \"https://api.github.com/repos/FAForever/downlords-faf-client/releases/latest\" | grep browser_download_url | grep dfc_unix | cut -d'\"' -f4)",
        "description": "Downloading latest FAF client"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/downlords-faf-client",
        "file": "$CACHE/dfc_unix.tar.gz"
      }
    },
    {
      "insert-disc": {
        "message": "Now you should run Forged Alliance from steam with theese launch options:\nPROTON_DUMP_DEBUG_COMMANDS=1 PROTON_NO_ESYNC=1 PROTON_NO_FSYNC=1 %command%\nYou can close it right after.\nThen, the \"run\" script should appear in /tmp/proton_$USER\n",
        "requires": "run"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$DISC/run"
      }
    },
    {
      "execute": {
        "command": "mkdir $HOME/.faforever"
      }
    },
    {
      "write_file": {
        "content": "{\"forgedAlliance\":{\"installationPath\":\"$scfa\",\"executableDecorator\":\"$GAMEDIR/run \\\"%s\\\"\"}}",
        "file": "$HOME/.faforever/client.prefs"
      }
    }
  ],
  "system": {
    "env": {
      "INSTALL4J_JAVA_HOME": "$GAMEDIR/java"
    }
  }
}
Back to game