Installer 2-2a-vulkan

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

files:
- launcher: N/A:请选择装好的游戏文件夹里的“xy2.exe”
- wineinit: https://file.winegame.net/games/common/wineinit.sh
- cmdfonts: https://file.winegame.net/cache/wine/fonts/MicrosoftYaHeiMono-20210208.tar.gz
game:
  arch: win32
  exe: launcher
  prefix: $GAMEDIR
installer:
- execute:
    command: bash "$wineinit" win32
    description: 下载字体和运行库
- task:
    arch: win32
    description: 创建32位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盘
- execute:
    command: |
      rm -f "$GAMEDIR/dosdevices/d::";
      ln -sf "$GAMEDIR" "$GAMEDIR/dosdevices/d:";
    description: 添加容器目录为D盘
system:
  env:
    DXVK_HUD: compiler
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    STAGING_SHARED_MEMORY: 1
    VKD3D_DEBUG: none
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
wine:
  Desktop: true
  WineDesktop: 1024x768
  dxvk: true
  esync: true
  overrides:
    winedbg.exe: disabled
  version: lutris-stable-5.7.11-x86_64
  vkd3d: true
{
  "files": [
    {
      "launcher": "N/A:\u8bf7\u9009\u62e9\u88c5\u597d\u7684\u6e38\u620f\u6587\u4ef6\u5939\u91cc\u7684\u201cxy2.exe\u201d"
    },
    {
      "wineinit": "https://file.winegame.net/games/common/wineinit.sh"
    },
    {
      "cmdfonts": "https://file.winegame.net/cache/wine/fonts/MicrosoftYaHeiMono-20210208.tar.gz"
    }
  ],
  "game": {
    "arch": "win32",
    "exe": "launcher",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "bash \"$wineinit\" win32",
        "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": "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::\";\nln -sf \"$HOME\" \"$GAMEDIR/dosdevices/m:\";\n",
        "description": "\u6dfb\u52a0\u4e3b\u76ee\u5f55($HOME)\u4e3aM\u76d8"
      }
    },
    {
      "execute": {
        "command": "rm -f \"$GAMEDIR/dosdevices/d::\";\nln -sf \"$GAMEDIR\" \"$GAMEDIR/dosdevices/d:\";\n",
        "description": "\u6dfb\u52a0\u5bb9\u5668\u76ee\u5f55\u4e3aD\u76d8"
      }
    }
  ],
  "system": {
    "env": {
      "DXVK_HUD": "compiler",
      "DXVK_STATE_CACHE_PATH": "$GAMEDIR",
      "STAGING_SHARED_MEMORY": 1,
      "VKD3D_DEBUG": "none",
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR"
    }
  },
  "wine": {
    "Desktop": true,
    "WineDesktop": "1024x768",
    "dxvk": true,
    "esync": true,
    "overrides": {
      "winedbg.exe": "disabled"
    },
    "version": "lutris-stable-5.7.11-x86_64",
    "vkd3d": true
  }
}
返回游戏