Installer wine-mono-wine-gecko-filewinegamenet

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

files:
- wineinit: https://file.winegame.net/games/common/wineinit.sh
game:
  arch: win64
  exe: drive_c/windows/system32/winecfg.exe
  prefix: $GAMEDIR
installer:
- execute:
    command: bash "$wineinit" all all
    description: 下载 Wine Mono 和 Wine Gecko 组件
- task:
    arch: win64
    description: 创建64位Wine前缀
    name: create_prefix
    prefix: $GAMEDIR
- execute:
    command: rm -f "$GAMEDIR/dosdevices/m::"; ln -sf "$HOME" "$GAMEDIR/dosdevices/m:"
    description: 添加主目录($HOME)为M盘
- task:
    name: winekill
    prefix: $GAMEDIR
system:
  env:
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    STAGING_SHARED_MEMORY: 1
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
wine:
  dxvk: true
  esync: true
  overrides:
    api-ms-win-core-privateprofile-l1-1-0: native,builtin
    d3dcompiler_47: native,builtin
    d3dcsx_47: native,builtin
    d3dx11_42: native,builtin
    d3dx9_42: native,builtin
    ddraw: native,builtin
    winedbg.exe: disabled
  vkd3d: true
{
  "files": [
    {
      "wineinit": "https://file.winegame.net/games/common/wineinit.sh"
    }
  ],
  "game": {
    "arch": "win64",
    "exe": "drive_c/windows/system32/winecfg.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "bash \"$wineinit\" all all",
        "description": "\u4e0b\u8f7d Wine Mono \u548c Wine Gecko \u7ec4\u4ef6"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "\u521b\u5efa64\u4f4dWine\u524d\u7f00",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "execute": {
        "command": "rm -f \"$GAMEDIR/dosdevices/m::\"; ln -sf \"$HOME\" \"$GAMEDIR/dosdevices/m:\"",
        "description": "\u6dfb\u52a0\u4e3b\u76ee\u5f55($HOME)\u4e3aM\u76d8"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "system": {
    "env": {
      "DXVK_STATE_CACHE_PATH": "$GAMEDIR",
      "STAGING_SHARED_MEMORY": 1,
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR"
    }
  },
  "wine": {
    "dxvk": true,
    "esync": true,
    "overrides": {
      "api-ms-win-core-privateprofile-l1-1-0": "native,builtin",
      "d3dcompiler_47": "native,builtin",
      "d3dcsx_47": "native,builtin",
      "d3dx11_42": "native,builtin",
      "d3dx9_42": "native,builtin",
      "ddraw": "native,builtin",
      "winedbg.exe": "disabled"
    },
    "vkd3d": true
  }
}
返回游戏