Installer an-zhuang-zi-ding-yi-you-xi-5-dllwine-520

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

files:
- setup: N/A:选择游戏安装包(exe或msi,压缩包请解压后使用)
game:
  exe: drive_c/windows/explorer.exe
  prefix: $GAMEDIR
installer:
- execute:
    command: fetch() { dir="$HOME/.cache/$(dirname "$1")"; file="$(basename "$1")";
      path="$HOME/.cache/$1"; url="https://file.winegame.net/cache/$1"; mkdir -p "$dir";
      aria2c --allow-overwrite=true --summary-interval=1 -x 5 -s 5 -c -d "$dir" -o
      "$file" "$url" || wget -c -O "$path" "$url"; }; fetch wine/wine-mono-5.1.0-x86.msi;
      fetch wine/wine-gecko-2.47.1-x86_64.msi; fetch wine/wine-gecko-2.47.1-x86.msi;
      fetch wine/fonts/MicrosoftYaHeiMono.tar.gz;
    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:
    description: 启动游戏安装程序
    executable: setup
    name: wineexec
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
system:
  env:
    DXVK_HUD: compiler
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    MESA_GL_VERSION_OVERRIDE: 4.4COMPAT
    STAGING_SHARED_MEMORY: 1
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
wine:
  dxvk: true
  esync: true
  overrides:
    winedbg.exe: disabled
  version: winehq-staging-5.20-x86_64
  vkd3d: true
{
  "files": [
    {
      "setup": "N/A:\u9009\u62e9\u6e38\u620f\u5b89\u88c5\u5305\uff08exe\u6216msi\uff0c\u538b\u7f29\u5305\u8bf7\u89e3\u538b\u540e\u4f7f\u7528\uff09"
    }
  ],
  "game": {
    "exe": "drive_c/windows/explorer.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "fetch() { dir=\"$HOME/.cache/$(dirname \"$1\")\"; file=\"$(basename \"$1\")\"; path=\"$HOME/.cache/$1\"; url=\"https://file.winegame.net/cache/$1\"; mkdir -p \"$dir\"; aria2c --allow-overwrite=true --summary-interval=1 -x 5 -s 5 -c -d \"$dir\" -o \"$file\" \"$url\" || wget -c -O \"$path\" \"$url\"; }; fetch wine/wine-mono-5.1.0-x86.msi; fetch wine/wine-gecko-2.47.1-x86_64.msi; fetch wine/wine-gecko-2.47.1-x86.msi; fetch wine/fonts/MicrosoftYaHeiMono.tar.gz;",
        "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": {
        "description": "\u542f\u52a8\u6e38\u620f\u5b89\u88c5\u7a0b\u5e8f",
        "executable": "setup",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "system": {
    "env": {
      "DXVK_HUD": "compiler",
      "DXVK_STATE_CACHE_PATH": "$GAMEDIR",
      "MESA_GL_VERSION_OVERRIDE": "4.4COMPAT",
      "STAGING_SHARED_MEMORY": 1,
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR"
    }
  },
  "wine": {
    "dxvk": true,
    "esync": true,
    "overrides": {
      "winedbg.exe": "disabled"
    },
    "version": "winehq-staging-5.20-x86_64",
    "vkd3d": true
  }
}
返回游戏