Installer 2-1b-opengl

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

files:
- setup: https://xy2.gdl.netease.com/XY2Downloader.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: xy2/xy2.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: 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盘
- task:
    name: winekill
    prefix: $GAMEDIR
- move:
    dst: $GAMEDIR/XY2Downloader.exe
    src: setup
- write_file:
    content: |
      LimitDownloadSpd=1
      LimitUploadSpd=1
      MaxDownloadSpd=1024000
      MaxUploadSpd=1024000
      DefaultDir=D:\xy2\
    file: $GAMEDIR/xy2downloader.ini
- task:
    arch: win32
    description: |-
      《大话西游2》经典版官方下载器即将打开。请不要修改游戏安装位置,否则会安装失败。

      如有下好的“大话西游2”游戏文件夹,可把它移动到容器目录(就是一开始选择的
      安装文件夹),然后把“大话西游2”文件夹改名为“xy2”,再点击“立即下载”。
    exclude_processes: wineconsole conhost.exe explorer.exe xy2.exe
    executable: $GAMEDIR/XY2Downloader.exe
    name: wineexec
- task:
    name: winekill
    prefix: $GAMEDIR
- write_file:
    content: "[Setting]\r\nLoginType=0\r\n"
    file: $GAMEDIR/xy2/xy2.ini
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: false
  esync: false
  overrides:
    winedbg.exe: disabled
  version: lutris-stable-5.7.11-x86_64
  vkd3d: false
{
  "files": [
    {
      "setup": "https://xy2.gdl.netease.com/XY2Downloader.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": "xy2/xy2.exe",
    "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"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/XY2Downloader.exe",
        "src": "setup"
      }
    },
    {
      "write_file": {
        "content": "LimitDownloadSpd=1\nLimitUploadSpd=1\nMaxDownloadSpd=1024000\nMaxUploadSpd=1024000\nDefaultDir=D:\\xy2\\\n",
        "file": "$GAMEDIR/xy2downloader.ini"
      }
    },
    {
      "task": {
        "arch": "win32",
        "description": "\u300a\u5927\u8bdd\u897f\u6e382\u300b\u7ecf\u5178\u7248\u5b98\u65b9\u4e0b\u8f7d\u5668\u5373\u5c06\u6253\u5f00\u3002\u8bf7\u4e0d\u8981\u4fee\u6539\u6e38\u620f\u5b89\u88c5\u4f4d\u7f6e\uff0c\u5426\u5219\u4f1a\u5b89\u88c5\u5931\u8d25\u3002\n\n\u5982\u6709\u4e0b\u597d\u7684\u201c\u5927\u8bdd\u897f\u6e382\u201d\u6e38\u620f\u6587\u4ef6\u5939\uff0c\u53ef\u628a\u5b83\u79fb\u52a8\u5230\u5bb9\u5668\u76ee\u5f55\uff08\u5c31\u662f\u4e00\u5f00\u59cb\u9009\u62e9\u7684\n\u5b89\u88c5\u6587\u4ef6\u5939\uff09\uff0c\u7136\u540e\u628a\u201c\u5927\u8bdd\u897f\u6e382\u201d\u6587\u4ef6\u5939\u6539\u540d\u4e3a\u201cxy2\u201d\uff0c\u518d\u70b9\u51fb\u201c\u7acb\u5373\u4e0b\u8f7d\u201d\u3002",
        "exclude_processes": "wineconsole conhost.exe explorer.exe xy2.exe",
        "executable": "$GAMEDIR/XY2Downloader.exe",
        "name": "wineexec"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "write_file": {
        "content": "[Setting]\r\nLoginType=0\r\n",
        "file": "$GAMEDIR/xy2/xy2.ini"
      }
    }
  ],
  "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": false,
    "esync": false,
    "overrides": {
      "winedbg.exe": "disabled"
    },
    "version": "lutris-stable-5.7.11-x86_64",
    "vkd3d": false
  }
}
返回游戏