Installer blizzard-battlenet-xxxb-wine-72
该脚本仅供阅读,不能直接用来在Wine游戏助手中安装游戏。
要通过命令安装游戏,请下载完整脚本。
安装命令:/opt/apps/net.winegame.client/files/bin/winegame -i ./xxx.json
custom-name: 魔兽世界正式服 files: - cache-updater: https://file.winegame.net/games/overwatch/state-cache-update.sh - wow: N/A:请选择选择 World of Warcraft 文件夹里的 _retail_ 文件夹里的 Wow.exe - wineinit: https://file.winegame.net/games/common/wineinit.sh - cmdfonts: https://file.winegame.net/cache/wine/fonts/MicrosoftYaHeiMono-20221214.tar.xz game: arch: win64 exe: wow prefix: $GAMEDIR installer: - execute: command: bash "$wineinit" win64 7.2 description: 下载字体和运行库 - task: arch: win64 description: 创建64位Wine前缀 name: create_prefix prefix: $GAMEDIR - extract: description: 解压中文字体 dst: $GAMEDIR/drive_c/windows/Fonts file: cmdfonts - task: arch: win64 description: 安装中文字体 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: |- #!/bin/bash date="$(wget --server-response --spider https://file.winegame.net/games/overwatch/Overwatch.tar.xz 2>&1 | sed -n "s/ Last-Modified: //p")" date="$(date -d "$date" +%s)" echo "$date" > ./state-cache-merge/.state-cache-timestamp file: $GAMEDIR/timestamp.sh - write_file: content: |- dxgi.nvapiHack = False [Overwatch.exe] dxvk.hud = compiler file: $GAMEDIR/dxvk.conf - merge: dst: $GAMEDIR/state-cache-merge src: cache-updater - chmodx: $GAMEDIR/state-cache-merge/state-cache-update.sh - chmodx: $GAMEDIR/timestamp.sh - move: dst: $CACHE src: $GAMEDIR/timestamp.sh - write_json: data: Client: GameLaunchWindowBehavior: '0' GameSearch: BackgroundSearch: 'true' HardwareAcceleration: 'false' HideOnClose: 'false' Sound: Enabled: 'false' Streaming: StreamingEnabled: 'false' description: 写入 Battle.Net 配置文件 file: $GAMEDIR/drive_c/users/$USER/Application Data/Battle.net/Battle.net.config - write_config: description: 为守望先锋启用无边框窗口模式 file: $GAMEDIR/drive_c/users/$USER/My Documents/Overwatch/Settings/Settings_v0.ini key: WindowMode section: Render.13 value: '"1"' - write_config: description: 使用WEBM格式保存守望先锋亮眼表现 file: $GAMEDIR/drive_c/users/$USER/My Documents/Overwatch/Settings/Settings_v0.ini key: Type section: MovieExport.1 value: '"1"' - write_config: description: 禁用守望先锋保存亮眼表现时的硬件加速 file: $GAMEDIR/drive_c/users/$USER/My Documents/Overwatch/Settings/Settings_v0.ini key: UseHardware section: MovieExport.1 value: '"0"' - write_file: content: hasseennewcinematic=True description: 修复炉石传说启动问题 file: $GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Blizzard/Hearthstone/options.txt - task: arch: win64 description: 'Wine Staging: 启用 DXVA2' key: backend name: set_regedit path: HKEY_CURRENT_USER\Software\Wine\DXVA2 prefix: $GAMEDIR value: va - task: arch: win64 name: winekill prefix: $GAMEDIR - task: arch: win64 description: 禁止窗口管理器装饰窗口 key: Decorated name: set_regedit path: HKEY_CURRENT_USER\Software\Wine\X11 Driver prefix: $GAMEDIR type: REG_SZ value: N - task: arch: win64 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 exclude_processes: Agent.exe "Battle.net Helper.exe" manual_command: $GAMEDIR/state-cache-merge/state-cache-update.sh wine: dxvk: true esync: true overrides: d3dcompiler_47: native,builtin d3dcsx_47: native,builtin d3dx11_42: native,builtin d3dx9_42: native,builtin locationapi: disabled winedbg.exe: disabled winemenubuilder.exe: disabled version: lutris-7.2-2-x86_64 vkd3d: true
{ "custom-name": "\u9b54\u517d\u4e16\u754c\u6b63\u5f0f\u670d", "files": [ { "cache-updater": "https://file.winegame.net/games/overwatch/state-cache-update.sh" }, { "wow": "N/A:\u8bf7\u9009\u62e9\u9009\u62e9 World of Warcraft \u6587\u4ef6\u5939\u91cc\u7684 _retail_ \u6587\u4ef6\u5939\u91cc\u7684 Wow.exe" }, { "wineinit": "https://file.winegame.net/games/common/wineinit.sh" }, { "cmdfonts": "https://file.winegame.net/cache/wine/fonts/MicrosoftYaHeiMono-20221214.tar.xz" } ], "game": { "arch": "win64", "exe": "wow", "prefix": "$GAMEDIR" }, "installer": [ { "execute": { "command": "bash \"$wineinit\" win64 7.2", "description": "\u4e0b\u8f7d\u5b57\u4f53\u548c\u8fd0\u884c\u5e93" } }, { "task": { "arch": "win64", "description": "\u521b\u5efa64\u4f4dWine\u524d\u7f00", "name": "create_prefix", "prefix": "$GAMEDIR" } }, { "extract": { "description": "\u89e3\u538b\u4e2d\u6587\u5b57\u4f53", "dst": "$GAMEDIR/drive_c/windows/Fonts", "file": "cmdfonts" } }, { "task": { "arch": "win64", "description": "\u5b89\u88c5\u4e2d\u6587\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": "#!/bin/bash\ndate=\"$(wget --server-response --spider https://file.winegame.net/games/overwatch/Overwatch.tar.xz 2>&1 | sed -n \"s/ Last-Modified: //p\")\"\ndate=\"$(date -d \"$date\" +%s)\"\necho \"$date\" > ./state-cache-merge/.state-cache-timestamp", "file": "$GAMEDIR/timestamp.sh" } }, { "write_file": { "content": "dxgi.nvapiHack = False\n[Overwatch.exe]\ndxvk.hud = compiler", "file": "$GAMEDIR/dxvk.conf" } }, { "merge": { "dst": "$GAMEDIR/state-cache-merge", "src": "cache-updater" } }, { "chmodx": "$GAMEDIR/state-cache-merge/state-cache-update.sh" }, { "chmodx": "$GAMEDIR/timestamp.sh" }, { "move": { "dst": "$CACHE", "src": "$GAMEDIR/timestamp.sh" } }, { "write_json": { "data": { "Client": { "GameLaunchWindowBehavior": "0", "GameSearch": { "BackgroundSearch": "true" }, "HardwareAcceleration": "false", "HideOnClose": "false", "Sound": { "Enabled": "false" }, "Streaming": { "StreamingEnabled": "false" } } }, "description": "\u5199\u5165 Battle.Net \u914d\u7f6e\u6587\u4ef6", "file": "$GAMEDIR/drive_c/users/$USER/Application Data/Battle.net/Battle.net.config" } }, { "write_config": { "description": "\u4e3a\u5b88\u671b\u5148\u950b\u542f\u7528\u65e0\u8fb9\u6846\u7a97\u53e3\u6a21\u5f0f", "file": "$GAMEDIR/drive_c/users/$USER/My Documents/Overwatch/Settings/Settings_v0.ini", "key": "WindowMode", "section": "Render.13", "value": "\"1\"" } }, { "write_config": { "description": "\u4f7f\u7528WEBM\u683c\u5f0f\u4fdd\u5b58\u5b88\u671b\u5148\u950b\u4eae\u773c\u8868\u73b0", "file": "$GAMEDIR/drive_c/users/$USER/My Documents/Overwatch/Settings/Settings_v0.ini", "key": "Type", "section": "MovieExport.1", "value": "\"1\"" } }, { "write_config": { "description": "\u7981\u7528\u5b88\u671b\u5148\u950b\u4fdd\u5b58\u4eae\u773c\u8868\u73b0\u65f6\u7684\u786c\u4ef6\u52a0\u901f", "file": "$GAMEDIR/drive_c/users/$USER/My Documents/Overwatch/Settings/Settings_v0.ini", "key": "UseHardware", "section": "MovieExport.1", "value": "\"0\"" } }, { "write_file": { "content": "hasseennewcinematic=True", "description": "\u4fee\u590d\u7089\u77f3\u4f20\u8bf4\u542f\u52a8\u95ee\u9898", "file": "$GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Blizzard/Hearthstone/options.txt" } }, { "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": { "arch": "win64", "name": "winekill", "prefix": "$GAMEDIR" } }, { "task": { "arch": "win64", "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": { "arch": "win64", "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" }, "exclude_processes": "Agent.exe \"Battle.net Helper.exe\"", "manual_command": "$GAMEDIR/state-cache-merge/state-cache-update.sh" }, "wine": { "dxvk": true, "esync": true, "overrides": { "d3dcompiler_47": "native,builtin", "d3dcsx_47": "native,builtin", "d3dx11_42": "native,builtin", "d3dx9_42": "native,builtin", "locationapi": "disabled", "winedbg.exe": "disabled", "winemenubuilder.exe": "disabled" }, "version": "lutris-7.2-2-x86_64", "vkd3d": true } }