Installer meng-huan-xi-you-0c-x64-wayland

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

files:
- setup: N/A:请选择梦幻西游安装程序(如MHXY-MINI-3.0.493.exe)
- wineinit: https://file.winegame.net/games/common/wineinit.sh
- cmdfonts: https://file.winegame.net/cache/wine/fonts/MicrosoftYaHeiMono-20210208.tar.gz
game:
  arch: win64
  exe: drive_c/Program Files (x86)/梦幻西游/my.exe
  prefix: $GAMEDIR
installer:
- execute:
    command: bash "$wineinit" win64 8.19
    description: 下载字体和运行库
- task:
    arch: win64
    description: 创建64位Wine前缀
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    description: 解压CMD字体
    dst: $GAMEDIR/drive_c/windows/Fonts
    file: cmdfonts
- 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:
    name: winekill
    prefix: $GAMEDIR
- task:
    arch: win64
    description: 开启Wayland显示功能
    key: Graphics
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Drivers
    prefix: $GAMEDIR
    type: REG_SZ
    value: x11,wayland
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    arch: win64
    description: |-
      梦幻西游安装程序即将打开。
      ------------------------------
      请在安装程序中完成梦幻西游的安装。
      注意,一定要安装到默认路径,不要安装到任何其他位置,否则游戏无法启动!
      不必等待游戏更新完成,等更新器出现后直接关闭即可。
    exclude_processes: wineconsole conhost.exe explorer.exe my.exe
    executable: setup
    name: wineexec
- task:
    name: winekill
    prefix: $GAMEDIR
- input_menu:
    description: 请选择是否需要多开(多开不支持输入法,聊天不能打中文):
    id: launchtype
    options:
    - 1: 不使用多开(聊天可以打中文)
    - 0: 使用多开(聊天不能打中文)
    preselect: 1
- write_file:
    content: "[Setting]\r\nlaunchtype = $INPUT_launchtype\r\n"
    file: $GAMEDIR/drive_c/Program Files (x86)/梦幻西游/xy1.ini
system:
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    DXVK_HUD: compiler
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    MESA_GL_VERSION_OVERRIDE: 4.4COMPAT
    STAGING_SHARED_MEMORY: 1
    VKD3D_DEBUG: none
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
wine:
  dxvk: false
  esync: true
  overrides:
    winedbg.exe: disabled
  version: winehq-stable-9.0-ubt20-x86_64
  vkd3d: false
{
  "files": [
    {
      "setup": "N/A:\u8bf7\u9009\u62e9\u68a6\u5e7b\u897f\u6e38\u5b89\u88c5\u7a0b\u5e8f\uff08\u5982MHXY-MINI-3.0.493.exe\uff09"
    },
    {
      "wineinit": "https://file.winegame.net/games/common/wineinit.sh"
    },
    {
      "cmdfonts": "https://file.winegame.net/cache/wine/fonts/MicrosoftYaHeiMono-20210208.tar.gz"
    }
  ],
  "game": {
    "arch": "win64",
    "exe": "drive_c/Program Files (x86)/\u68a6\u5e7b\u897f\u6e38/my.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "bash \"$wineinit\" win64 8.19",
        "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\u538bCMD\u5b57\u4f53",
        "dst": "$GAMEDIR/drive_c/windows/Fonts",
        "file": "cmdfonts"
      }
    },
    {
      "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": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "\u5f00\u542fWayland\u663e\u793a\u529f\u80fd",
        "key": "Graphics",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Drivers",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "x11,wayland"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "\u68a6\u5e7b\u897f\u6e38\u5b89\u88c5\u7a0b\u5e8f\u5373\u5c06\u6253\u5f00\u3002\n------------------------------\n\u8bf7\u5728\u5b89\u88c5\u7a0b\u5e8f\u4e2d\u5b8c\u6210\u68a6\u5e7b\u897f\u6e38\u7684\u5b89\u88c5\u3002\n\u6ce8\u610f\uff0c\u4e00\u5b9a\u8981\u5b89\u88c5\u5230\u9ed8\u8ba4\u8def\u5f84\uff0c\u4e0d\u8981\u5b89\u88c5\u5230\u4efb\u4f55\u5176\u4ed6\u4f4d\u7f6e\uff0c\u5426\u5219\u6e38\u620f\u65e0\u6cd5\u542f\u52a8\uff01\n\u4e0d\u5fc5\u7b49\u5f85\u6e38\u620f\u66f4\u65b0\u5b8c\u6210\uff0c\u7b49\u66f4\u65b0\u5668\u51fa\u73b0\u540e\u76f4\u63a5\u5173\u95ed\u5373\u53ef\u3002",
        "exclude_processes": "wineconsole conhost.exe explorer.exe my.exe",
        "executable": "setup",
        "name": "wineexec"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "input_menu": {
        "description": "\u8bf7\u9009\u62e9\u662f\u5426\u9700\u8981\u591a\u5f00\uff08\u591a\u5f00\u4e0d\u652f\u6301\u8f93\u5165\u6cd5\uff0c\u804a\u5929\u4e0d\u80fd\u6253\u4e2d\u6587\uff09\uff1a",
        "id": "launchtype",
        "options": [
          {
            "1": "\u4e0d\u4f7f\u7528\u591a\u5f00\uff08\u804a\u5929\u53ef\u4ee5\u6253\u4e2d\u6587\uff09"
          },
          {
            "0": "\u4f7f\u7528\u591a\u5f00\uff08\u804a\u5929\u4e0d\u80fd\u6253\u4e2d\u6587\uff09"
          }
        ],
        "preselect": 1
      }
    },
    {
      "write_file": {
        "content": "[Setting]\r\nlaunchtype = $INPUT_launchtype\r\n",
        "file": "$GAMEDIR/drive_c/Program Files (x86)/\u68a6\u5e7b\u897f\u6e38/xy1.ini"
      }
    }
  ],
  "system": {
    "env": {
      "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
      "DXVK_HUD": "compiler",
      "DXVK_STATE_CACHE_PATH": "$GAMEDIR",
      "MESA_GL_VERSION_OVERRIDE": "4.4COMPAT",
      "STAGING_SHARED_MEMORY": 1,
      "VKD3D_DEBUG": "none",
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR"
    }
  },
  "wine": {
    "dxvk": false,
    "esync": true,
    "overrides": {
      "winedbg.exe": "disabled"
    },
    "version": "winehq-stable-9.0-ubt20-x86_64",
    "vkd3d": false
  }
}
返回游戏