Back to the main site

How would I test my own Lutris install scripts?


#1

Hey folks!

Installing with Lutris is simple: Go to the game’s page, click Install - BOOM! it’s running

What if I want to test or fiddle around with own installations? Do I have to create an installer on the website, save it, open it via the little “show unpublished” link and then install it?

Or is there something in Lutris like “right-click -> paste custom install script to run”?


#2

I would also like you have and answer to that. Want to add a caesar 3 GOG install script, but no idea how to test it


#3

Go back into the edit page. At the bottom there’ll be a “Test Installer” button. Use that. You can also write installers locally as you can see by my example below. Keep in mind though, you’ll need to reformat the script in order for it to be valid and installable through the website.


name: Aion
game_slug: aion
version: Installer
slug: aion
runner: wine

script:
  files:
  - aion: http://dl.aion.gameforge.com/aion/client/20180104/20180103_AION_Setup.exe
  - dx2010: https://lutris.net/files/tools/directx-2010.tar.gz
  game:
    exe: drive_c/Program Files (x86)/Gameforge/NCLauncher/NCLauncher.exe
    prefix: $GAMEDIR
    arch: win64
    args: /LauncherID:"GameForge" /CompanyID:"11" /GameID:"AION-LIVE" /LUpdateAddr:"update.aion.gfsrv.net"
  installer:
  - extract:
      dst: $CACHE/dxsetup
      file: dx2010
  - task:
      arch: win64
      name: create_prefix
      prefix: $GAMEDIR
  - task:
      arch: win64
      args: /silent
      executable: $CACHE/dxsetup/DXSETUP.exe
      name: wineexec
      prefix: $GAMEDIR
  - task:
      arch: win64
      name: winekill
      prefix: $GAMEDIR
  - task:
      app: vrun2005 vrun2008 vrun2013 corefonts
      arch: win64
      name: winetricks
      prefix: $GAMEDIR
  - task:
      app: dotnet472 win7
      description: Installing .NET 4.7.2
      arch: win64
      name: winetricks
      prefix: $GAMEDIR
  - task:
      arch: win64
      executable: aion
      name: wineexec
      prefix: $GAMEDIR
  system: {}
  wine:
    version: tkg-3.21-x86_64
  • You must include each section or Lutris won’t be able to install the script. See system: {}
  • To install a local script open a terminal and run it with lutris -i filename.yml

In order to submit you have to reformat as such:

files:
- aion: http://dl.aion.gameforge.com/aion/client/20180104/20180103_AION_Setup.exe
- dx2010: https://lutris.net/files/tools/directx-2010.tar.gz
game:
  exe: drive_c/Program Files (x86)/Gameforge/NCLauncher/NCLauncher.exe
  prefix: $GAMEDIR
  arch: win64
  args: /LauncherID:"GameForge" /CompanyID:"11" /GameID:"AION-LIVE" /LUpdateAddr:"update.aion.gfsrv.net"
installer:
- extract:
    dst: $CACHE/dxsetup
    file: dx2010
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- task:
    arch: win64
    args: /silent
    executable: $CACHE/dxsetup/DXSETUP.exe
    name: wineexec
    prefix: $GAMEDIR
- task:
    arch: win64
    name: winekill
    prefix: $GAMEDIR
- task:
    app: vrun2005 vrun2008 vrun2013 corefonts
    arch: win64
    name: winetricks
    prefix: $GAMEDIR
- task:
    app: dotnet472 win7
    description: Installing .NET 4.7.2
    arch: win64
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win64
    executable: aion
    name: wineexec
    prefix: $GAMEDIR
wine:
  version: tkg-3.21-x86_64
  • Start from files and remove everything above it.
  • Remember to remove two spaces from the beginning of every line.
  • Remove system: {} since it’s not being used.

#4

Thank you for your helpful answer
I found this in the meanwhile:


Think it would be a good idea to stick it here, for everyone that needs even more detailed info, and and searches here on the forum first.