Installer lol-9
该脚本仅供阅读,不能直接用来在Wine游戏助手中安装游戏。
要通过命令安装游戏,请下载完整脚本。
安装命令:/opt/apps/net.winegame.client/files/bin/winegame -i ./xxx.json
custom-name: 英雄联盟国服
files:
- lol_installer: https://dldir1.qq.com/tgc/wegame/full/WeGameMiniLoader.std.3.12.02.1620.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/Program Files/WeGame/wegame.exe
prefix: $GAMEDIR
installer:
- execute:
command: bash "$wineinit" win32 6.22
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: mfc42
description: 安装DLL组件
name: winetricks
prefix: $GAMEDIR
- task:
name: winekill
prefix: $GAMEDIR
- task:
app: win10
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: 安装中……
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
{
"custom-name": "\u82f1\u96c4\u8054\u76df\u56fd\u670d",
"files": [
{
"lol_installer": "https://dldir1.qq.com/tgc/wegame/full/WeGameMiniLoader.std.3.12.02.1620.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/Program Files/WeGame/wegame.exe",
"prefix": "$GAMEDIR"
},
"installer": [
{
"execute": {
"command": "bash \"$wineinit\" win32 6.22",
"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": "mfc42",
"description": "\u5b89\u88c5DLL\u7ec4\u4ef6",
"name": "winetricks",
"prefix": "$GAMEDIR"
}
},
{
"task": {
"name": "winekill",
"prefix": "$GAMEDIR"
}
},
{
"task": {
"app": "win10",
"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",
"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"
}
}