Installer league-of-legends-lol-en-1

该脚本仅供参考,不能直接用来在Wine游戏助手中安装游戏。 要安装游戏,请下载完整脚本

files:
- lol_installer: https://lol.secure.dyn.riotcdn.net/channels/public/x/installer/current/live.na.exe
- script1: https://file.winegame.net/games/league-of-legends/launchhelper.sh
- script2: https://file.winegame.net/games/league-of-legends/syscall_check.sh
game:
  args: --locale=$INPUT_LOCALE
  exe: $GAMEDIR/drive_c/Riot Games/League of Legends/LeagueClient.exe
  prefix: $GAMEDIR
installer:
- input_menu:
    description: 选择游戏语言:
    id: LOCALE
    options:
    - cs_CZ: Čeština
    - en_AU: English AUS
    - en_GB: English U.K.
    - en_US: English U.S.
    - fr_FR: Français
    - de_DE: Deutsch
    - es_ES: Español
    - es_MX: Español Mexicano
    - it_IT: Italiano
    - ja_JP: 日本語
    - hu_HU: Magyar
    - pl_PL: Polski
    - pt_BR: Português do Brasil
    - ro_RO: Romanian
    - ru_RU: русский
    - tr_TR: Türkçe
    - zh_TW: 繁體中文
    - zh_CN: 简体中文
    preselect: zh_CN
- execute:
    command: "fetch() {\n    dir=\"$HOME/.cache/$(dirname \"$1\")\";\n    path=\"\
      $HOME/.cache/$1\";\n    url=\"https://file.winegame.net/cache/$1\";\n    mkdir\
      \ -p \"$dir\";\n    wget -c -O \"$path\" \"$url\";\n};\nfetch wine/fonts/MicrosoftYaHeiMono.tar.gz;\n\
      fetch wine/wine-gecko-2.47.1-x86.msi;\nfetch wine/wine-mono-4.9.4.msi;"
    description: 下载字体和运行库
- task:
    arch: win32
    description: 创建32位Wine前缀
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    description: 解压CMD字体
    dst: $GAMEDIR/drive_c/windows/Fonts
    file: $HOME/.cache/wine/fonts/MicrosoftYaHeiMono.tar.gz
- task:
    description: 安装CMD字体
    filename: $GAMEDIR/drive_c/windows/Fonts/MicrosoftYaHeiMono.reg
    name: set_regedit_file
- execute:
    command: rm -f "$GAMEDIR/dosdevices/m::"; ln -sf "$HOME" "$GAMEDIR/dosdevices/m:";
      rm -f "$GAMEDIR/dosdevices/l::"; ln -sf "$GAMEDIR/drive_c" "$GAMEDIR/dosdevices/l:";
    description: 添加主目录($HOME)为M盘
- task:
    app: d3dcompiler_43 d3dx9
    arch: win32
    description: 安装dll组件
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win32
    description: '安装中……请不要登陆你的LOL账号,更不要启动游戏(安装阶段不可能顺利进入游戏)!

      请在游戏下载完成(进度到达100%)后手动关掉启动器,否则安装无法自行完成。

      注意:安装时界面是英文的,这是正常现象,安装完成后再打开才会变成你刚刚选的语言。

      如果你登陆账号后变成其他语言,请关闭启动器然后重新打开,又会变成你刚刚选的语言。'
    executable: lol_installer
    name: wineexec
    prefix: $GAMEDIR
- task:
    arch: win32
    name: winekill
    prefix: $GAMEDIR
- task:
    arch: win32
    key: GrabFullScreen
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\X11 Driver
    prefix: $GAMEDIR
    value: Y
- task:
    arch: win32
    key: UseXVidMode
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\X11 Driver
    prefix: $GAMEDIR
    value: N
- chmodx: script1
- chmodx: script2
- copy:
    dst: $GAMEDIR
    src: script1
- copy:
    dst: $GAMEDIR
    src: script2
- task:
    arch: win32
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 40 40 40
require-binaries: zenity, openssl
system:
  disable_compositor: true
  env:
    DXVK_LOG_LEVEL: none
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    STAGING_SHARED_MEMORY: 1
    WINE_LARGE_ADDRESS_AWARE: 1
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
  prelaunch_command: $GAMEDIR/launchhelper.sh
wine:
  MouseWarpOverride: enable
  version: lutris-lol-5.5-2-x86_64
{
  "files": [
    {
      "lol_installer": "https://lol.secure.dyn.riotcdn.net/channels/public/x/installer/current/live.na.exe"
    },
    {
      "script1": "https://file.winegame.net/games/league-of-legends/launchhelper.sh"
    },
    {
      "script2": "https://file.winegame.net/games/league-of-legends/syscall_check.sh"
    }
  ],
  "game": {
    "args": "--locale=$INPUT_LOCALE",
    "exe": "$GAMEDIR/drive_c/Riot Games/League of Legends/LeagueClient.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "input_menu": {
        "description": "\u9009\u62e9\u6e38\u620f\u8bed\u8a00\uff1a",
        "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"
          },
          {
            "zh_TW": "\u7e41\u9ad4\u4e2d\u6587"
          },
          {
            "zh_CN": "\u7b80\u4f53\u4e2d\u6587"
          }
        ],
        "preselect": "zh_CN"
      }
    },
    {
      "execute": {
        "command": "fetch() {\n    dir=\"$HOME/.cache/$(dirname \"$1\")\";\n    path=\"$HOME/.cache/$1\";\n    url=\"https://file.winegame.net/cache/$1\";\n    mkdir -p \"$dir\";\n    wget -c -O \"$path\" \"$url\";\n};\nfetch wine/fonts/MicrosoftYaHeiMono.tar.gz;\nfetch wine/wine-gecko-2.47.1-x86.msi;\nfetch wine/wine-mono-4.9.4.msi;",
        "description": "\u4e0b\u8f7d\u5b57\u4f53\u548c\u8fd0\u884c\u5e93"
      }
    },
    {
      "task": {
        "arch": "win32",
        "description": "\u521b\u5efa32\u4f4dWine\u524d\u7f00",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "description": "\u89e3\u538bCMD\u5b57\u4f53",
        "dst": "$GAMEDIR/drive_c/windows/Fonts",
        "file": "$HOME/.cache/wine/fonts/MicrosoftYaHeiMono.tar.gz"
      }
    },
    {
      "task": {
        "description": "\u5b89\u88c5CMD\u5b57\u4f53",
        "filename": "$GAMEDIR/drive_c/windows/Fonts/MicrosoftYaHeiMono.reg",
        "name": "set_regedit_file"
      }
    },
    {
      "execute": {
        "command": "rm -f \"$GAMEDIR/dosdevices/m::\"; ln -sf \"$HOME\" \"$GAMEDIR/dosdevices/m:\"; rm -f \"$GAMEDIR/dosdevices/l::\"; ln -sf \"$GAMEDIR/drive_c\" \"$GAMEDIR/dosdevices/l:\";",
        "description": "\u6dfb\u52a0\u4e3b\u76ee\u5f55($HOME)\u4e3aM\u76d8"
      }
    },
    {
      "task": {
        "app": "d3dcompiler_43 d3dx9",
        "arch": "win32",
        "description": "\u5b89\u88c5dll\u7ec4\u4ef6",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win32",
        "description": "\u5b89\u88c5\u4e2d\u2026\u2026\u8bf7\u4e0d\u8981\u767b\u9646\u4f60\u7684LOL\u8d26\u53f7\uff0c\u66f4\u4e0d\u8981\u542f\u52a8\u6e38\u620f\uff08\u5b89\u88c5\u9636\u6bb5\u4e0d\u53ef\u80fd\u987a\u5229\u8fdb\u5165\u6e38\u620f\uff09\uff01\n\u8bf7\u5728\u6e38\u620f\u4e0b\u8f7d\u5b8c\u6210\uff08\u8fdb\u5ea6\u5230\u8fbe100%\uff09\u540e\u624b\u52a8\u5173\u6389\u542f\u52a8\u5668\uff0c\u5426\u5219\u5b89\u88c5\u65e0\u6cd5\u81ea\u884c\u5b8c\u6210\u3002\n\u6ce8\u610f\uff1a\u5b89\u88c5\u65f6\u754c\u9762\u662f\u82f1\u6587\u7684\uff0c\u8fd9\u662f\u6b63\u5e38\u73b0\u8c61\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\u518d\u6253\u5f00\u624d\u4f1a\u53d8\u6210\u4f60\u521a\u521a\u9009\u7684\u8bed\u8a00\u3002\n\u5982\u679c\u4f60\u767b\u9646\u8d26\u53f7\u540e\u53d8\u6210\u5176\u4ed6\u8bed\u8a00\uff0c\u8bf7\u5173\u95ed\u542f\u52a8\u5668\u7136\u540e\u91cd\u65b0\u6253\u5f00\uff0c\u53c8\u4f1a\u53d8\u6210\u4f60\u521a\u521a\u9009\u7684\u8bed\u8a00\u3002",
        "executable": "lol_installer",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win32",
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win32",
        "key": "GrabFullScreen",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver",
        "prefix": "$GAMEDIR",
        "value": "Y"
      }
    },
    {
      "task": {
        "arch": "win32",
        "key": "UseXVidMode",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver",
        "prefix": "$GAMEDIR",
        "value": "N"
      }
    },
    {
      "chmodx": "script1"
    },
    {
      "chmodx": "script2"
    },
    {
      "copy": {
        "dst": "$GAMEDIR",
        "src": "script1"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR",
        "src": "script2"
      }
    },
    {
      "task": {
        "arch": "win32",
        "key": "background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "40 40 40"
      }
    }
  ],
  "require-binaries": "zenity, openssl",
  "system": {
    "disable_compositor": true,
    "env": {
      "DXVK_LOG_LEVEL": "none",
      "DXVK_STATE_CACHE_PATH": "$GAMEDIR",
      "STAGING_SHARED_MEMORY": 1,
      "WINE_LARGE_ADDRESS_AWARE": 1,
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR"
    },
    "prelaunch_command": "$GAMEDIR/launchhelper.sh"
  },
  "wine": {
    "MouseWarpOverride": "enable",
    "version": "lutris-lol-5.5-2-x86_64"
  }
}
返回游戏