Installer control-dx11
该脚本仅供阅读,不能直接用来在Wine游戏助手中安装游戏。
要通过命令安装游戏,请下载完整脚本。
安装命令:/opt/apps/net.winegame.client/files/bin/winegame -i ./xxx.json
custom-name: Control (DX11)
files:
- launcher: N/A:请选择游戏文件夹中的“Control_DX11.exe”
game:
exe: launcher
prefix: $GAMEDIR
installer:
- execute:
command: bash "$wineinit" win64
description: 下载字体和运行库
- task:
app: cjkfonts
description: 安装中文字体
name: winetricks
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:"
description: 添加主目录($HOME)为M盘
- write_file:
content: dxgi.nvapiHack = False
file: $GAMEDIR/dxvk.conf
- task:
arch: win64
description: 'Wine Staging: 启用 DXVA2'
key: backend
name: set_regedit
path: HKEY_CURRENT_USER\Software\Wine\DXVA2
prefix: $GAMEDIR
value: va
- task:
app: win10
description: 切换到Win10模式
name: winetricks
prefix: $GAMEDIR
- task:
name: winekill
prefix: $GAMEDIR
system:
env:
DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
DXVK_STATE_CACHE_PATH: $GAMEDIR
STAGING_SHARED_MEMORY: 1
__GL_SHADER_DISK_CACHE: 1
__GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
wine:
d3d_extras: true
dxvk: true
dxvk_nvapi: true
esync: true
version: proton-7.0-ge-14-x86_64
vkd3d: true
{
"custom-name": "Control (DX11)",
"files": [
{
"launcher": "N/A:\u8bf7\u9009\u62e9\u6e38\u620f\u6587\u4ef6\u5939\u4e2d\u7684\u201cControl_DX11.exe\u201d"
}
],
"game": {
"exe": "launcher",
"prefix": "$GAMEDIR"
},
"installer": [
{
"execute": {
"command": "bash \"$wineinit\" win64",
"description": "\u4e0b\u8f7d\u5b57\u4f53\u548c\u8fd0\u884c\u5e93"
}
},
{
"task": {
"app": "cjkfonts",
"description": "\u5b89\u88c5\u4e2d\u6587\u5b57\u4f53",
"name": "winetricks",
"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:\"",
"description": "\u6dfb\u52a0\u4e3b\u76ee\u5f55($HOME)\u4e3aM\u76d8"
}
},
{
"write_file": {
"content": "dxgi.nvapiHack = False",
"file": "$GAMEDIR/dxvk.conf"
}
},
{
"task": {
"arch": "win64",
"description": "Wine Staging: \u542f\u7528 DXVA2",
"key": "backend",
"name": "set_regedit",
"path": "HKEY_CURRENT_USER\\Software\\Wine\\DXVA2",
"prefix": "$GAMEDIR",
"value": "va"
}
},
{
"task": {
"app": "win10",
"description": "\u5207\u6362\u5230Win10\u6a21\u5f0f",
"name": "winetricks",
"prefix": "$GAMEDIR"
}
},
{
"task": {
"name": "winekill",
"prefix": "$GAMEDIR"
}
}
],
"system": {
"env": {
"DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
"DXVK_STATE_CACHE_PATH": "$GAMEDIR",
"STAGING_SHARED_MEMORY": 1,
"__GL_SHADER_DISK_CACHE": 1,
"__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR"
}
},
"wine": {
"d3d_extras": true,
"dxvk": true,
"dxvk_nvapi": true,
"esync": true,
"version": "proton-7.0-ge-14-x86_64",
"vkd3d": true
}
}