Installer xin-tian-long-ba-bu-1-32

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

files:
- setup: N/A:请选择新天龙八部游戏安装包(XTLBB-JD-3.67.0293_GF.exe)
- wineinit: https://file.winegame.net/games/common/wineinit.sh
game:
  arch: win32
  exe: drive_c/XTLBB/Launch.exe
  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: $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:";
      rm -f "$GAMEDIR/dosdevices/l::"; ln -sf "$GAMEDIR/drive_c" "$GAMEDIR/dosdevices/l:";
    description: 添加主目录($HOME)为M盘
- task:
    arch: win32
    description: 'Wine Staging: 启用 DXVA2'
    key: backend
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DXVA2
    prefix: $GAMEDIR
    value: va
- task:
    name: winekill
    prefix: $GAMEDIR
- execute:
    command: |
      dir="$GAMEDIR/drive_c/XTLBB";
      mkdir -p "$dir";
      cd "$dir";
      7z x -aoa "$setup" || "$HOME/.local/share/net.winegame.client/runtime/p7zip/7z" x -aoa "$setup";
    description: 后台安装游戏,没有进度显示,请耐心等待...
- task:
    app: ie8
    arch: win32
    description: 安装运行库...
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- 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:
    winedbg.exe: disabled
  vkd3d: true
{
  "files": [
    {
      "setup": "N/A:\u8bf7\u9009\u62e9\u65b0\u5929\u9f99\u516b\u90e8\u6e38\u620f\u5b89\u88c5\u5305\uff08XTLBB-JD-3.67.0293_GF.exe\uff09"
    },
    {
      "wineinit": "https://file.winegame.net/games/common/wineinit.sh"
    }
  ],
  "game": {
    "arch": "win32",
    "exe": "drive_c/XTLBB/Launch.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "bash \"$wineinit\" win32",
        "description": "\u4e0b\u8f7d\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": "$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:\"; rm -f \"$GAMEDIR/dosdevices/l::\"; ln -sf \"$GAMEDIR/drive_c\" \"$GAMEDIR/dosdevices/l:\";",
        "description": "\u6dfb\u52a0\u4e3b\u76ee\u5f55($HOME)\u4e3aM\u76d8"
      }
    },
    {
      "task": {
        "arch": "win32",
        "description": "Wine Staging: \u542f\u7528 DXVA2",
        "key": "backend",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DXVA2",
        "prefix": "$GAMEDIR",
        "value": "va"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "execute": {
        "command": "dir=\"$GAMEDIR/drive_c/XTLBB\";\nmkdir -p \"$dir\";\ncd \"$dir\";\n7z x -aoa \"$setup\" || \"$HOME/.local/share/net.winegame.client/runtime/p7zip/7z\" x -aoa \"$setup\";\n",
        "description": "\u540e\u53f0\u5b89\u88c5\u6e38\u620f\uff0c\u6ca1\u6709\u8fdb\u5ea6\u663e\u793a\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85..."
      }
    },
    {
      "task": {
        "app": "ie8",
        "arch": "win32",
        "description": "\u5b89\u88c5\u8fd0\u884c\u5e93...",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "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": {
      "winedbg.exe": "disabled"
    },
    "vkd3d": true
  }
}
返回游戏