Installer forged-alliance-forever-steam-latest

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
description: null
game_slug: forged-alliance-forever
gogslug: ''
humblestoreid: ''
installer_slug: forged-alliance-forever-steam-latest
name: Forged Alliance Forever
notes: ''
runner: linux
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
slug: forged-alliance-forever-steam-latest
steamid: null
version: Steam latest
year: null
{
  "game_slug": "forged-alliance-forever",
  "version": "Steam latest",
  "description": null,
  "notes": "",
  "name": "Forged Alliance Forever",
  "year": null,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "linux",
  "slug": "forged-alliance-forever-steam-latest",
  "installer_slug": "forged-alliance-forever-steam-latest",
  "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:\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