Installer mo-shou-shi-jie-hei-he-gong-f-1

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

files:
- setup:
    filename: setup.exe
    url: https://accoriapi.xiaoheihe.cn/wow/download/
- wineinit: https://file.winegame.net/games/common/wineinit.sh
game:
  arch: win64
  exe: drive_c/Program Files (x86)/Qingfeng/HeyboxWow/heyboxwow.exe
  prefix: $GAMEDIR
installer:
- execute:
    command: bash "$wineinit" win64 7.6
    description: 下载字体和运行库
- task:
    arch: win64
    description: 创建64位Wine前缀
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    description: 解压CMD字体
    dst: $GAMEDIR/drive_c/windows/Fonts
    file: $HOME/.cache/wine/fonts/MicrosoftYaHeiMono.tar.gz
- 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盘
- task:
    arch: win64
    description: |-
      黑盒工坊安装程序即将打开。
      ------------------------------
      请在安装程序中完成黑盒工坊安装。
      请不要修改黑盒工坊的安装位置,否则程序会认为安装失败。
      不必登录客户端,安装完成后关闭安装程序即可。
    exclude_processes: Battle.net.exe Agent.exe "Battle.net Helper.exe" wineconsole
      conhost.exe explorer.exe heyboxwowbrowser.exe heyboxwow.exe
    executable: setup
    name: wineexec
    overrides:
      heyboxwow.exe: disabled
      heyboxwowbrowser.exe: disabled
- task:
    name: winekill
    prefix: $GAMEDIR
wine:
  dxvk: false
  esync: false
  overrides:
    winedbg.exe: disabled
    winemenubuilder.exe: disabled
  version: winehq-staging-7.7-x86_64
  vkd3d: false
{
  "files": [
    {
      "setup": {
        "filename": "setup.exe",
        "url": "https://accoriapi.xiaoheihe.cn/wow/download/"
      }
    },
    {
      "wineinit": "https://file.winegame.net/games/common/wineinit.sh"
    }
  ],
  "game": {
    "arch": "win64",
    "exe": "drive_c/Program Files (x86)/Qingfeng/HeyboxWow/heyboxwow.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "bash \"$wineinit\" win64 7.6",
        "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": "$HOME/.cache/wine/fonts/MicrosoftYaHeiMono.tar.gz"
      }
    },
    {
      "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"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "\u9ed1\u76d2\u5de5\u574a\u5b89\u88c5\u7a0b\u5e8f\u5373\u5c06\u6253\u5f00\u3002\n------------------------------\n\u8bf7\u5728\u5b89\u88c5\u7a0b\u5e8f\u4e2d\u5b8c\u6210\u9ed1\u76d2\u5de5\u574a\u5b89\u88c5\u3002\n\u8bf7\u4e0d\u8981\u4fee\u6539\u9ed1\u76d2\u5de5\u574a\u7684\u5b89\u88c5\u4f4d\u7f6e\uff0c\u5426\u5219\u7a0b\u5e8f\u4f1a\u8ba4\u4e3a\u5b89\u88c5\u5931\u8d25\u3002\n\u4e0d\u5fc5\u767b\u5f55\u5ba2\u6237\u7aef\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\u5173\u95ed\u5b89\u88c5\u7a0b\u5e8f\u5373\u53ef\u3002",
        "exclude_processes": "Battle.net.exe Agent.exe \"Battle.net Helper.exe\" wineconsole conhost.exe explorer.exe heyboxwowbrowser.exe heyboxwow.exe",
        "executable": "setup",
        "name": "wineexec",
        "overrides": {
          "heyboxwow.exe": "disabled",
          "heyboxwowbrowser.exe": "disabled"
        }
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "wine": {
    "dxvk": false,
    "esync": false,
    "overrides": {
      "winedbg.exe": "disabled",
      "winemenubuilder.exe": "disabled"
    },
    "version": "winehq-staging-7.7-x86_64",
    "vkd3d": false
  }
}
返回游戏