Installer wegame-tgp-lol-2-wegamelol

该脚本仅供阅读,不能直接用来在Wine游戏助手中安装游戏。
要通过命令安装游戏,请下载完整脚本
安装命令:/opt/apps/net.winegame.client/files/bin/winegame -i ./xxx.json

files:
- lol_installer: https://down.qq.com/lol/pingbao/WeGameMiniLoader.LOL.2.6.8.1407.exe
- script2: https://file.winegame.net/games/league-of-legends/syscall_check.sh
- wineinit: https://file.winegame.net/games/common/wineinit.sh
game:
  exe: $GAMEDIR/drive_c/users/$USER/Desktop/英雄联盟WeGame版.lnk
  prefix: $GAMEDIR
installer:
- execute:
    command: bash "$wineinit" win64 6.22
    description: 下载字体和运行库
- task:
    description: 创建64位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: mfc42
    arch: win64
    description: 安装DLL组件
    name: winetricks
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    app: win10
    arch: win64
    description: 切换到Win10模式
    name: winetricks
    prefix: $GAMEDIR
- task:
    description: 禁止窗口管理器装饰窗口
    key: Decorated
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\X11 Driver
    prefix: $GAMEDIR
    type: REG_SZ
    value: N
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    description: |-
      安装中……请不要登陆你的LOL账号,更不要启动游戏(安装阶段不可能顺利进入游戏)!
      应该在游戏下载完成(进度到达100%)后点击右上角的[X],不要点“立即体验”,否则安装无法自行结束。
      如果你已经点了“立即体验”,请打开终端执行以下命令结束安装:
      ps ax | grep lutris-wrapper | grep lol | awk '{print $1}' | xargs kill
    exclude_processes: winedevice.exe explorer.exe services.exe plugplay.exe rpcss.exe
      svchost.exe wegame.exe
    executable: lol_installer
    name: wineexec
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    key: GrabFullScreen
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\X11 Driver
    prefix: $GAMEDIR
    value: Y
- task:
    key: UseXVidMode
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\X11 Driver
    prefix: $GAMEDIR
    value: N
- chmodx: script2
- copy:
    dst: $GAMEDIR
    src: script2
- task:
    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/syscall_check.sh
  prelaunch_wait: true
wine:
  MouseWarpOverride: enable
  overrides:
    winedbg.exe: disabled
  version: lutris-ge-lol-7.0-5-x86_64
{
  "files": [
    {
      "lol_installer": "https://down.qq.com/lol/pingbao/WeGameMiniLoader.LOL.2.6.8.1407.exe"
    },
    {
      "script2": "https://file.winegame.net/games/league-of-legends/syscall_check.sh"
    },
    {
      "wineinit": "https://file.winegame.net/games/common/wineinit.sh"
    }
  ],
  "game": {
    "exe": "$GAMEDIR/drive_c/users/$USER/Desktop/\u82f1\u96c4\u8054\u76dfWeGame\u7248.lnk",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "bash \"$wineinit\" win64 6.22",
        "description": "\u4e0b\u8f7d\u5b57\u4f53\u548c\u8fd0\u884c\u5e93"
      }
    },
    {
      "task": {
        "description": "\u521b\u5efa64\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": "mfc42",
        "arch": "win64",
        "description": "\u5b89\u88c5DLL\u7ec4\u4ef6",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "win10",
        "arch": "win64",
        "description": "\u5207\u6362\u5230Win10\u6a21\u5f0f",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "description": "\u7981\u6b62\u7a97\u53e3\u7ba1\u7406\u5668\u88c5\u9970\u7a97\u53e3",
        "key": "Decorated",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "N"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "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\u5e94\u8be5\u5728\u6e38\u620f\u4e0b\u8f7d\u5b8c\u6210\uff08\u8fdb\u5ea6\u5230\u8fbe100%\uff09\u540e\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684[X]\uff0c\u4e0d\u8981\u70b9\u201c\u7acb\u5373\u4f53\u9a8c\u201d\uff0c\u5426\u5219\u5b89\u88c5\u65e0\u6cd5\u81ea\u884c\u7ed3\u675f\u3002\n\u5982\u679c\u4f60\u5df2\u7ecf\u70b9\u4e86\u201c\u7acb\u5373\u4f53\u9a8c\u201d\uff0c\u8bf7\u6253\u5f00\u7ec8\u7aef\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u7ed3\u675f\u5b89\u88c5\uff1a\nps ax | grep lutris-wrapper | grep lol | awk '{print $1}' | xargs kill",
        "exclude_processes": "winedevice.exe explorer.exe services.exe plugplay.exe rpcss.exe svchost.exe wegame.exe",
        "executable": "lol_installer",
        "name": "wineexec"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "key": "GrabFullScreen",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver",
        "prefix": "$GAMEDIR",
        "value": "Y"
      }
    },
    {
      "task": {
        "key": "UseXVidMode",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver",
        "prefix": "$GAMEDIR",
        "value": "N"
      }
    },
    {
      "chmodx": "script2"
    },
    {
      "copy": {
        "dst": "$GAMEDIR",
        "src": "script2"
      }
    },
    {
      "task": {
        "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/syscall_check.sh",
    "prelaunch_wait": true
  },
  "wine": {
    "MouseWarpOverride": "enable",
    "overrides": {
      "winedbg.exe": "disabled"
    },
    "version": "lutris-ge-lol-7.0-5-x86_64"
  }
}
返回游戏