Installer qq-qq-game-1-wine-815

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

files:
- setup: https://dldir3.qq.com/minigamefile/QQGame_setup_web_11.EXE
- dxdlls: https://file.winegame.net/games/uplay/dxdlls.tar.xz
- wineinit: https://file.winegame.net/games/common/wineinit.sh
- cmdfonts: https://file.winegame.net/cache/wine/fonts/MicrosoftYaHeiMono-20221213.tar.xz
game:
  exe: drive_c/Program Files (x86)/Tencent/QQGameTempest/QQGame.exe
  prefix: $GAMEDIR
installer:
- execute:
    command: bash "$wineinit" win64
    description: 下载字体和运行库
- task:
    arch: win64
    description: 创建64位Wine前缀
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    description: 解压中文字体
    dst: $GAMEDIR/drive_c/windows/Fonts
    file: cmdfonts
- task:
    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: dxgi.nvapiHack = False
    file: $GAMEDIR/dxvk.conf
- execute:
    command: cd "$GAMEDIR/drive_c" && tar -Jvxf "$dxdlls"
    description: 解压 DX DLL
- task:
    app: arial
    arch: win64
    description: 安装英文字体
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    description: |
      启动游戏安装程序
      安装完成后,请不要登录,请点击右上角的[X]
      关闭安装程序,以便安装继续执行完成。
    exclude_processes: QQGameService.e QQGameServiceHe
    executable: setup
    name: wineexec
    prefix: $GAMEDIR
- task:
    app: gdiplus msxml3 msxml4 msxml6 riched20 riched30 richtx32 mfc42
    arch: win64
    description: 安装winetricks依赖库
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    name: winekill
    prefix: $GAMEDIR
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: true
  esync: true
  overrides:
    XAPOFX1_0: native,builtin
    atl100: native,builtin
    concrt140: native,builtin
    d3dcompiler_33: native,builtin
    d3dcompiler_34: native,builtin
    d3dcompiler_35: native,builtin
    d3dcompiler_36: native,builtin
    d3dcompiler_37: native,builtin
    d3dcompiler_38: native,builtin
    d3dcompiler_39: native,builtin
    d3dcompiler_40: native,builtin
    d3dcompiler_41: native,builtin
    d3dcompiler_42: native,builtin
    d3dcompiler_43: native,builtin
    d3dcompiler_46: native,builtin
    d3dcompiler_47: native,builtin
    d3dcsx_42: native,builtin
    d3dcsx_43: native,builtin
    d3dcsx_47: native,builtin
    d3dx10: native,builtin
    d3dx10_33: native,builtin
    d3dx10_34: native,builtin
    d3dx10_35: native,builtin
    d3dx10_36: native,builtin
    d3dx10_37: native,builtin
    d3dx10_38: native,builtin
    d3dx10_39: native,builtin
    d3dx10_40: native,builtin
    d3dx10_41: native,builtin
    d3dx10_43: native,builtin
    d3dx11_42: native,builtin
    d3dx11_43: native,builtin
    d3dx9_24: native,builtin
    d3dx9_25: native,builtin
    d3dx9_26: native,builtin
    d3dx9_27: native,builtin
    d3dx9_28: native,builtin
    d3dx9_29: native,builtin
    d3dx9_30: native,builtin
    d3dx9_31: native,builtin
    d3dx9_32: native,builtin
    d3dx9_33: native,builtin
    d3dx9_34: native,builtin
    d3dx9_35: native,builtin
    d3dx9_36: native,builtin
    d3dx9_37: native,builtin
    d3dx9_38: native,builtin
    d3dx9_39: native,builtin
    d3dx9_40: native,builtin
    d3dx9_41: native,builtin
    d3dx9_42: native,builtin
    d3dx9_43: native,builtin
    gdiplus: native,builtin
    mfc100: native,builtin
    mfc100chs: native,builtin
    mfc100cht: native,builtin
    mfc100deu: native,builtin
    mfc100enu: native,builtin
    mfc100esn: native,builtin
    mfc100fra: native,builtin
    mfc100ita: native,builtin
    mfc100jpn: native,builtin
    mfc100kor: native,builtin
    mfc100rus: native,builtin
    mfc100u: native,builtin
    mfc140: native,builtin
    mfc140chs: native,builtin
    mfc140cht: native,builtin
    mfc140deu: native,builtin
    mfc140enu: native,builtin
    mfc140esn: native,builtin
    mfc140fra: native,builtin
    mfc140ita: native,builtin
    mfc140jpn: native,builtin
    mfc140kor: native,builtin
    mfc140rus: native,builtin
    mfc140u: native,builtin
    mfcm100: native,builtin
    mfcm100u: native,builtin
    mfcm140: native,builtin
    mfcm140u: native,builtin
    msvcp100: native,builtin
    msvcp140: native,builtin
    msvcr100: native,builtin
    msxml3: native,builtin
    msxml4: native,builtin
    msxml6: native,builtin
    vcamp140: native,builtin
    vccorlib140: native,builtin
    vcomp100: native,builtin
    vcomp140: native,builtin
    vcrun6: native,builtin
    vcrun6sp6: native,builtin
    vcruntime140: native,builtin
    winedbg.exe: disabled
    winemenubuilder.exe: disabled
    x3daudio1_0: native,builtin
    x3daudio1_1: native,builtin
    x3daudio1_2: native,builtin
    x3daudio1_3: native,builtin
    x3daudio1_4: native,builtin
    x3daudio1_5: native,builtin
    x3daudio1_6: native,builtin
    x3daudio1_7: native,builtin
    xactengine2_0: native,builtin
    xactengine2_1: native,builtin
    xactengine2_10: native,builtin
    xactengine2_2: native,builtin
    xactengine2_3: native,builtin
    xactengine2_4: native,builtin
    xactengine2_5: native,builtin
    xactengine2_6: native,builtin
    xactengine2_7: native,builtin
    xactengine2_8: native,builtin
    xactengine2_9: native,builtin
    xactengine3_0: native,builtin
    xactengine3_1: native,builtin
    xactengine3_2: native,builtin
    xactengine3_3: native,builtin
    xactengine3_4: native,builtin
    xactengine3_5: native,builtin
    xactengine3_6: native,builtin
    xactengine3_7: native,builtin
    xapofx1_1: native,builtin
    xapofx1_2: native,builtin
    xapofx1_3: native,builtin
    xapofx1_4: native,builtin
    xapofx1_5: native,builtin
    xaudio2_0: native,builtin
    xaudio2_1: native,builtin
    xaudio2_2: native,builtin
    xaudio2_3: native,builtin
    xaudio2_4: native,builtin
    xaudio2_5: native,builtin
    xaudio2_6: native,builtin
    xaudio2_7: native,builtin
    xinput1_1: native,builtin
    xinput1_2: native,builtin
    xinput1_3: native,builtin
  vkd3d: true
{
  "files": [
    {
      "setup": "https://dldir3.qq.com/minigamefile/QQGame_setup_web_11.EXE"
    },
    {
      "dxdlls": "https://file.winegame.net/games/uplay/dxdlls.tar.xz"
    },
    {
      "wineinit": "https://file.winegame.net/games/common/wineinit.sh"
    },
    {
      "cmdfonts": "https://file.winegame.net/cache/wine/fonts/MicrosoftYaHeiMono-20221213.tar.xz"
    }
  ],
  "game": {
    "exe": "drive_c/Program Files (x86)/Tencent/QQGameTempest/QQGame.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "bash \"$wineinit\" win64",
        "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": {
        "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": "dxgi.nvapiHack = False",
        "file": "$GAMEDIR/dxvk.conf"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c\" && tar -Jvxf \"$dxdlls\"",
        "description": "\u89e3\u538b DX DLL"
      }
    },
    {
      "task": {
        "app": "arial",
        "arch": "win64",
        "description": "\u5b89\u88c5\u82f1\u6587\u5b57\u4f53",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "task": {
        "description": "\u542f\u52a8\u6e38\u620f\u5b89\u88c5\u7a0b\u5e8f\n\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8bf7\u4e0d\u8981\u767b\u5f55\uff0c\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684[X]\n\u5173\u95ed\u5b89\u88c5\u7a0b\u5e8f\uff0c\u4ee5\u4fbf\u5b89\u88c5\u7ee7\u7eed\u6267\u884c\u5b8c\u6210\u3002\n",
        "exclude_processes": "QQGameService.e QQGameServiceHe",
        "executable": "setup",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "gdiplus msxml3 msxml4 msxml6 riched20 riched30 richtx32 mfc42",
        "arch": "win64",
        "description": "\u5b89\u88c5winetricks\u4f9d\u8d56\u5e93",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "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": true,
    "esync": true,
    "overrides": {
      "XAPOFX1_0": "native,builtin",
      "atl100": "native,builtin",
      "concrt140": "native,builtin",
      "d3dcompiler_33": "native,builtin",
      "d3dcompiler_34": "native,builtin",
      "d3dcompiler_35": "native,builtin",
      "d3dcompiler_36": "native,builtin",
      "d3dcompiler_37": "native,builtin",
      "d3dcompiler_38": "native,builtin",
      "d3dcompiler_39": "native,builtin",
      "d3dcompiler_40": "native,builtin",
      "d3dcompiler_41": "native,builtin",
      "d3dcompiler_42": "native,builtin",
      "d3dcompiler_43": "native,builtin",
      "d3dcompiler_46": "native,builtin",
      "d3dcompiler_47": "native,builtin",
      "d3dcsx_42": "native,builtin",
      "d3dcsx_43": "native,builtin",
      "d3dcsx_47": "native,builtin",
      "d3dx10": "native,builtin",
      "d3dx10_33": "native,builtin",
      "d3dx10_34": "native,builtin",
      "d3dx10_35": "native,builtin",
      "d3dx10_36": "native,builtin",
      "d3dx10_37": "native,builtin",
      "d3dx10_38": "native,builtin",
      "d3dx10_39": "native,builtin",
      "d3dx10_40": "native,builtin",
      "d3dx10_41": "native,builtin",
      "d3dx10_43": "native,builtin",
      "d3dx11_42": "native,builtin",
      "d3dx11_43": "native,builtin",
      "d3dx9_24": "native,builtin",
      "d3dx9_25": "native,builtin",
      "d3dx9_26": "native,builtin",
      "d3dx9_27": "native,builtin",
      "d3dx9_28": "native,builtin",
      "d3dx9_29": "native,builtin",
      "d3dx9_30": "native,builtin",
      "d3dx9_31": "native,builtin",
      "d3dx9_32": "native,builtin",
      "d3dx9_33": "native,builtin",
      "d3dx9_34": "native,builtin",
      "d3dx9_35": "native,builtin",
      "d3dx9_36": "native,builtin",
      "d3dx9_37": "native,builtin",
      "d3dx9_38": "native,builtin",
      "d3dx9_39": "native,builtin",
      "d3dx9_40": "native,builtin",
      "d3dx9_41": "native,builtin",
      "d3dx9_42": "native,builtin",
      "d3dx9_43": "native,builtin",
      "gdiplus": "native,builtin",
      "mfc100": "native,builtin",
      "mfc100chs": "native,builtin",
      "mfc100cht": "native,builtin",
      "mfc100deu": "native,builtin",
      "mfc100enu": "native,builtin",
      "mfc100esn": "native,builtin",
      "mfc100fra": "native,builtin",
      "mfc100ita": "native,builtin",
      "mfc100jpn": "native,builtin",
      "mfc100kor": "native,builtin",
      "mfc100rus": "native,builtin",
      "mfc100u": "native,builtin",
      "mfc140": "native,builtin",
      "mfc140chs": "native,builtin",
      "mfc140cht": "native,builtin",
      "mfc140deu": "native,builtin",
      "mfc140enu": "native,builtin",
      "mfc140esn": "native,builtin",
      "mfc140fra": "native,builtin",
      "mfc140ita": "native,builtin",
      "mfc140jpn": "native,builtin",
      "mfc140kor": "native,builtin",
      "mfc140rus": "native,builtin",
      "mfc140u": "native,builtin",
      "mfcm100": "native,builtin",
      "mfcm100u": "native,builtin",
      "mfcm140": "native,builtin",
      "mfcm140u": "native,builtin",
      "msvcp100": "native,builtin",
      "msvcp140": "native,builtin",
      "msvcr100": "native,builtin",
      "msxml3": "native,builtin",
      "msxml4": "native,builtin",
      "msxml6": "native,builtin",
      "vcamp140": "native,builtin",
      "vccorlib140": "native,builtin",
      "vcomp100": "native,builtin",
      "vcomp140": "native,builtin",
      "vcrun6": "native,builtin",
      "vcrun6sp6": "native,builtin",
      "vcruntime140": "native,builtin",
      "winedbg.exe": "disabled",
      "winemenubuilder.exe": "disabled",
      "x3daudio1_0": "native,builtin",
      "x3daudio1_1": "native,builtin",
      "x3daudio1_2": "native,builtin",
      "x3daudio1_3": "native,builtin",
      "x3daudio1_4": "native,builtin",
      "x3daudio1_5": "native,builtin",
      "x3daudio1_6": "native,builtin",
      "x3daudio1_7": "native,builtin",
      "xactengine2_0": "native,builtin",
      "xactengine2_1": "native,builtin",
      "xactengine2_10": "native,builtin",
      "xactengine2_2": "native,builtin",
      "xactengine2_3": "native,builtin",
      "xactengine2_4": "native,builtin",
      "xactengine2_5": "native,builtin",
      "xactengine2_6": "native,builtin",
      "xactengine2_7": "native,builtin",
      "xactengine2_8": "native,builtin",
      "xactengine2_9": "native,builtin",
      "xactengine3_0": "native,builtin",
      "xactengine3_1": "native,builtin",
      "xactengine3_2": "native,builtin",
      "xactengine3_3": "native,builtin",
      "xactengine3_4": "native,builtin",
      "xactengine3_5": "native,builtin",
      "xactengine3_6": "native,builtin",
      "xactengine3_7": "native,builtin",
      "xapofx1_1": "native,builtin",
      "xapofx1_2": "native,builtin",
      "xapofx1_3": "native,builtin",
      "xapofx1_4": "native,builtin",
      "xapofx1_5": "native,builtin",
      "xaudio2_0": "native,builtin",
      "xaudio2_1": "native,builtin",
      "xaudio2_2": "native,builtin",
      "xaudio2_3": "native,builtin",
      "xaudio2_4": "native,builtin",
      "xaudio2_5": "native,builtin",
      "xaudio2_6": "native,builtin",
      "xaudio2_7": "native,builtin",
      "xinput1_1": "native,builtin",
      "xinput1_2": "native,builtin",
      "xinput1_3": "native,builtin"
    },
    "vkd3d": true
  }
}
返回游戏