Installer freelancer-discovery

files:
- discovery: https://discoverygc.com/files/discovery_4.91.0.1.exe
- wmfdist: https://r.je/freelancer/WMFDIST.EXE
- d3d8to9: https://github.com/crosire/d3d8to9/releases/download/v1.11.0/d3d8.dll
game:
  arch: win32
  exe: $GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Discovery Freelancer
    4.91.0/DSLauncher.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win32
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: directplay
    description: Installing DirectPlay
    name: winetricks
    prefix: $GAMEDIR
- task:
    app: mfc42
    description: Installing Microsoft Foundation Classes
    name: winetricks
    prefix: $GAMEDIR
- task:
    app: msacm32
    description: Installing Microsoft Audio Compression Manager
    name: winetricks
    prefix: $GAMEDIR
- task:
    app: dotnet40
    description: Installing .NET 4.0
    name: winetricks
    prefix: $GAMEDIR
- insert-disc:
    requires: setup.exe
- task:
    description: Installing Freelancer. Please choose "Express install".
    executable: $DISC/setup.exe
    name: wineexec
    prefix: $GAMEDIR
- task:
    description: Installing Discovery Mod
    executable: discovery
    name: wineexec
    prefix: $GAMEDIR
- execute:
    command: mv $GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Discovery
      Freelancer 4.91.0/EXE/d3d8.dll $GAMEDIR/drive_c/users/$USER/Local Settings/Application
      Data Discovery Freelancer 4.91.0/EXE/d3d8.dll.bak
    description: Backup old d3d8.dll file
- move:
    description: Install d3d8to9
    dst: $GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Discovery Freelancer
      4.91.0/EXE/d3d8.dll
    src: d3d8to9
wine:
  overrides:
    d3d8.dll: n, b
description: 'Installs the Discovery community multiplayer mod: https://discoverygc.com/'
game_slug: freelancer
gogslug: ''
humblestoreid: ''
installer_slug: freelancer-discovery
name: Freelancer
notes: ''
runner: wine
script:
  files:
  - discovery: https://discoverygc.com/files/discovery_4.91.0.1.exe
  - wmfdist: https://r.je/freelancer/WMFDIST.EXE
  - d3d8to9: https://github.com/crosire/d3d8to9/releases/download/v1.11.0/d3d8.dll
  game:
    arch: win32
    exe: $GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Discovery Freelancer
      4.91.0/DSLauncher.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win32
      description: Creating Wine prefix
      name: create_prefix
      prefix: $GAMEDIR
  - task:
      app: directplay
      description: Installing DirectPlay
      name: winetricks
      prefix: $GAMEDIR
  - task:
      app: mfc42
      description: Installing Microsoft Foundation Classes
      name: winetricks
      prefix: $GAMEDIR
  - task:
      app: msacm32
      description: Installing Microsoft Audio Compression Manager
      name: winetricks
      prefix: $GAMEDIR
  - task:
      app: dotnet40
      description: Installing .NET 4.0
      name: winetricks
      prefix: $GAMEDIR
  - insert-disc:
      requires: setup.exe
  - task:
      description: Installing Freelancer. Please choose "Express install".
      executable: $DISC/setup.exe
      name: wineexec
      prefix: $GAMEDIR
  - task:
      description: Installing Discovery Mod
      executable: discovery
      name: wineexec
      prefix: $GAMEDIR
  - execute:
      command: mv $GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Discovery
        Freelancer 4.91.0/EXE/d3d8.dll $GAMEDIR/drive_c/users/$USER/Local Settings/Application
        Data Discovery Freelancer 4.91.0/EXE/d3d8.dll.bak
      description: Backup old d3d8.dll file
  - move:
      description: Install d3d8to9
      dst: $GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Discovery
        Freelancer 4.91.0/EXE/d3d8.dll
      src: d3d8to9
  wine:
    overrides:
      d3d8.dll: n, b
slug: freelancer-discovery
steamid: null
version: Discovery
year: 2003
{
  "game_slug": "freelancer",
  "version": "Discovery",
  "description": "Installs the Discovery community multiplayer mod: https://discoverygc.com/",
  "notes": "",
  "name": "Freelancer",
  "year": 2003,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "freelancer-discovery",
  "installer_slug": "freelancer-discovery",
  "script": {
    "files": [
      {
        "discovery": "https://discoverygc.com/files/discovery_4.91.0.1.exe"
      },
      {
        "wmfdist": "https://r.je/freelancer/WMFDIST.EXE"
      },
      {
        "d3d8to9": "https://github.com/crosire/d3d8to9/releases/download/v1.11.0/d3d8.dll"
      }
    ],
    "game": {
      "arch": "win32",
      "exe": "$GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Discovery Freelancer 4.91.0/DSLauncher.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win32",
          "description": "Creating Wine prefix",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "directplay",
          "description": "Installing DirectPlay",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "mfc42",
          "description": "Installing Microsoft Foundation Classes",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "msacm32",
          "description": "Installing Microsoft Audio Compression Manager",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "dotnet40",
          "description": "Installing .NET 4.0",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "insert-disc": {
          "requires": "setup.exe"
        }
      },
      {
        "task": {
          "description": "Installing Freelancer. Please choose \"Express install\".",
          "executable": "$DISC/setup.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "description": "Installing Discovery Mod",
          "executable": "discovery",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "mv $GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Discovery Freelancer 4.91.0/EXE/d3d8.dll $GAMEDIR/drive_c/users/$USER/Local Settings/Application Data Discovery Freelancer 4.91.0/EXE/d3d8.dll.bak",
          "description": "Backup old d3d8.dll file"
        }
      },
      {
        "move": {
          "description": "Install d3d8to9",
          "dst": "$GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Discovery Freelancer 4.91.0/EXE/d3d8.dll",
          "src": "d3d8to9"
        }
      }
    ],
    "wine": {
      "overrides": {
        "d3d8.dll": "n, b"
      }
    }
  }
}
Back to game