Installer league-of-legends-change-me-4

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.

custom-name: League of Legends - AppImage
files:
- lol_installer: https://riotgamespatcher-a.akamaihd.net/releases/live/installer/deploy/League%20of%20Legends%20installer%20NA.exe
- appimage: https://github.com/mmtrt/Wine_Appimage/releases/download/release-lol-patched/wine-staging-i386_lol-patched_x86_64-bionic.AppImage
- d9vk: https://github.com/Joshua-Ashton/d9vk/releases/download/0.12/d9vk-0.12.tar.gz
- dx2010: https://lutris.net/files/tools/directx-2010.tar.gz
game:
  args: wine "$HOME/.wine-appimage-lol/drive_c/Riot Games/League of Legends/LeagueClient.exe"
  exe: $GAMEDIR/wine-staging-i386_lol-patched_x86_64-bionic.AppImage
installer:
- extract:
    dst: $CACHE/d9vk-0.12/
    file: d9vk
- extract:
    dst: $CACHE/dxsetup
    file: dx2010
- chmodx: appimage
- move:
    dst: $GAMEDIR
    src: appimage
- execute:
    args: wine wineboot
    description: Setting up wine prefix
    env:
      WINEARCH: win32
      WINEPREFIX: $HOME/.wine-appimage-lol
    file: $GAMEDIR/wine-staging-i386_lol-patched_x86_64-bionic.AppImage
- input_menu:
    description: 'Choose the game''s language:'
    id: LOCALE
    options:
    - cs_CZ: "\u010Ce\u0161tina"
    - en_AU: English AUS
    - en_GB: English U.K.
    - en_US: English U.S.
    - fr_FR: "Fran\xE7ais"
    - de_DE: Deutsch
    - es_ES: "Espa\xF1ol"
    - es_MX: "Espa\xF1ol Mexicano"
    - it_IT: Italiano
    - ja_JP: "\u65E5\u672C\u8A9E"
    - hu_HU: Magyar
    - pl_PL: Polski
    - pt_BR: "Portugu\xEAs do Brasil"
    - ro_RO: Romanian
    - ru_RU: "\u0440\u0443\u0441\u0441\u043A\u0438\u0439"
    - tr_TR: "T\xFCrk\xE7e"
    preselect: en_US
- input_menu:
    description: 'Choose the game''s server region:'
    id: REGION
    options:
    - BR: Brazil
    - EUNE: Europe Nordic & East
    - EUW: Europe West
    - LAN: Latin America North
    - LAS: Latin America South
    - NA: North America
    - OCE: Oceania
    - RU: Russia
    - TR: Turkey
    - JP: Japan
    - SEA: South East Asia
    preselect: NA
- execute:
    args: wine $CACHE/dxsetup/DXSETUP.exe /silent
    description: Installing Directx9
    env:
      WINEPREFIX: $HOME/.wine-appimage-lol
    file: $GAMEDIR/wine-staging-i386_lol-patched_x86_64-bionic.AppImage
- execute:
    args: wine lol_installer --mode unattended
    description: Installing League of Legends
    env:
      WINEPREFIX: $HOME/.wine-appimage-lol
    file: $GAMEDIR/wine-staging-i386_lol-patched_x86_64-bionic.AppImage
- execute:
    args: install
    description: Setting up d9vk
    env:
      WINEPREFIX: $HOME/.wine-appimage-lol
    file: $CACHE/d9vk-0.12/setup_dxvk.sh
- execute:
    args: wine wineboot -u
    env:
      WINEARCH: win32
      WINEPREFIX: $HOME/.wine-appimage-lol
    file: $GAMEDIR/wine-staging-i386_lol-patched_x86_64-bionic.AppImage
- write_file:
    content: "install:\n    globals:\n        locale: \"$INPUT_LOCALE\"\n        region:\
      \ \"$INPUT_REGION\"\n"
    file: $HOME/.wine-appimage-lol/drive_c/Riot Games/League of Legends/Config/LeagueClientSettings.yaml
require-binaries: wine
system:
  env:
    DXVK_HUD: compiler
    DXVK_STATE_CACHE_PATH: $HOME/.wine-appimage-lol
    WINEARCH: win32
    WINEDEBUG: -all
    WINEOVERRIDES: msvcp140=native
    WINEPREFIX: $HOME/.wine-appimage-lol
{
  "require-binaries": "wine",
  "files": [
    {
      "lol_installer": "https://riotgamespatcher-a.akamaihd.net/releases/live/installer/deploy/League%20of%20Legends%20installer%20NA.exe"
    },
    {
      "appimage": "https://github.com/mmtrt/Wine_Appimage/releases/download/release-lol-patched/wine-staging-i386_lol-patched_x86_64-bionic.AppImage"
    },
    {
      "d9vk": "https://github.com/Joshua-Ashton/d9vk/releases/download/0.12/d9vk-0.12.tar.gz"
    },
    {
      "dx2010": "https://lutris.net/files/tools/directx-2010.tar.gz"
    }
  ],
  "game": {
    "exe": "$GAMEDIR/wine-staging-i386_lol-patched_x86_64-bionic.AppImage",
    "args": "wine \"$HOME/.wine-appimage-lol/drive_c/Riot Games/League of Legends/LeagueClient.exe\""
  },
  "custom-name": "League of Legends - AppImage",
  "system": {
    "env": {
      "DXVK_HUD": "compiler",
      "WINEDEBUG": "-all",
      "WINEPREFIX": "$HOME/.wine-appimage-lol",
      "DXVK_STATE_CACHE_PATH": "$HOME/.wine-appimage-lol",
      "WINEOVERRIDES": "msvcp140=native",
      "WINEARCH": "win32"
    }
  },
  "installer": [
    {
      "extract": {
        "dst": "$CACHE/d9vk-0.12/",
        "file": "d9vk"
      }
    },
    {
      "extract": {
        "dst": "$CACHE/dxsetup",
        "file": "dx2010"
      }
    },
    {
      "chmodx": "appimage"
    },
    {
      "move": {
        "src": "appimage",
        "dst": "$GAMEDIR"
      }
    },
    {
      "execute": {
        "description": "Setting up wine prefix",
        "env": {
          "WINEPREFIX": "$HOME/.wine-appimage-lol",
          "WINEARCH": "win32"
        },
        "args": "wine wineboot",
        "file": "$GAMEDIR/wine-staging-i386_lol-patched_x86_64-bionic.AppImage"
      }
    },
    {
      "input_menu": {
        "id": "LOCALE",
        "options": [
          {
            "cs_CZ": "\u010ce\u0161tina"
          },
          {
            "en_AU": "English AUS"
          },
          {
            "en_GB": "English U.K."
          },
          {
            "en_US": "English U.S."
          },
          {
            "fr_FR": "Fran\u00e7ais"
          },
          {
            "de_DE": "Deutsch"
          },
          {
            "es_ES": "Espa\u00f1ol"
          },
          {
            "es_MX": "Espa\u00f1ol Mexicano"
          },
          {
            "it_IT": "Italiano"
          },
          {
            "ja_JP": "\u65e5\u672c\u8a9e"
          },
          {
            "hu_HU": "Magyar"
          },
          {
            "pl_PL": "Polski"
          },
          {
            "pt_BR": "Portugu\u00eas do Brasil"
          },
          {
            "ro_RO": "Romanian"
          },
          {
            "ru_RU": "\u0440\u0443\u0441\u0441\u043a\u0438\u0439"
          },
          {
            "tr_TR": "T\u00fcrk\u00e7e"
          }
        ],
        "description": "Choose the game's language:",
        "preselect": "en_US"
      }
    },
    {
      "input_menu": {
        "id": "REGION",
        "options": [
          {
            "BR": "Brazil"
          },
          {
            "EUNE": "Europe Nordic & East"
          },
          {
            "EUW": "Europe West"
          },
          {
            "LAN": "Latin America North"
          },
          {
            "LAS": "Latin America South"
          },
          {
            "NA": "North America"
          },
          {
            "OCE": "Oceania"
          },
          {
            "RU": "Russia"
          },
          {
            "TR": "Turkey"
          },
          {
            "JP": "Japan"
          },
          {
            "SEA": "South East Asia"
          }
        ],
        "description": "Choose the game's server region:",
        "preselect": "NA"
      }
    },
    {
      "execute": {
        "description": "Installing Directx9",
        "env": {
          "WINEPREFIX": "$HOME/.wine-appimage-lol"
        },
        "args": "wine $CACHE/dxsetup/DXSETUP.exe /silent",
        "file": "$GAMEDIR/wine-staging-i386_lol-patched_x86_64-bionic.AppImage"
      }
    },
    {
      "execute": {
        "description": "Installing League of Legends",
        "env": {
          "WINEPREFIX": "$HOME/.wine-appimage-lol"
        },
        "args": "wine lol_installer --mode unattended",
        "file": "$GAMEDIR/wine-staging-i386_lol-patched_x86_64-bionic.AppImage"
      }
    },
    {
      "execute": {
        "description": "Setting up d9vk",
        "env": {
          "WINEPREFIX": "$HOME/.wine-appimage-lol"
        },
        "args": "install",
        "file": "$CACHE/d9vk-0.12/setup_dxvk.sh"
      }
    },
    {
      "execute": {
        "env": {
          "WINEPREFIX": "$HOME/.wine-appimage-lol",
          "WINEARCH": "win32"
        },
        "args": "wine wineboot -u",
        "file": "$GAMEDIR/wine-staging-i386_lol-patched_x86_64-bionic.AppImage"
      }
    },
    {
      "write_file": {
        "content": "install:\n    globals:\n        locale: \"$INPUT_LOCALE\"\n        region: \"$INPUT_REGION\"\n",
        "file": "$HOME/.wine-appimage-lol/drive_c/Riot Games/League of Legends/Config/LeagueClientSettings.yaml"
      }
    }
  ]
}
Back to game