Installer wine-mono-wine-gecko-filewinegamenet

该脚本仅供参考,不能直接用来在Wine游戏助手中安装游戏。 要安装游戏,请下载完整脚本

game:
  arch: win64
  exe: drive_c/windows/system32/winecfg.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_gecko-2.47-x86.msi;

      fetch wine/wine_gecko-2.47-x86_64.msi;

      fetch wine/wine-gecko-2.47.1-x86.msi;

      fetch wine/wine-gecko-2.47.1-x86_64.msi;

      fetch wine/wine-gecko-2.47.2-x86.msi;

      fetch wine/wine-gecko-2.47.2-x86_64.msi;

      fetch wine/wine-mono-4.7.5.msi;

      fetch wine/wine-mono-5.0.0-x86.msi;

      fetch wine/wine-mono-5.1.0-x86.msi;

      fetch wine/wine-mono-5.1.1-x86.msi;

      fetch wine/wine-mono-6.0.0-x86.msi;

      '
    description: 下载 Wine Mono 和 Wine Gecko 组件
- task:
    arch: win64
    description: 创建64位Wine前缀
    name: create_prefix
    prefix: $GAMEDIR
- execute:
    command: rm -f "$GAMEDIR/dosdevices/m::"; ln -sf "$HOME" "$GAMEDIR/dosdevices/m:"
    description: 添加主目录($HOME)为M盘
- 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:
    api-ms-win-core-privateprofile-l1-1-0: n,b
    d3dcompiler_47: n,b
    d3dcsx_47: n,b
    d3dx11_42: n,b
    d3dx9_42: n,b
    ddraw: n,b
    nvapi: disabled
    nvapi64: disabled
    winedbg.exe: disabled
  vkd3d: true
{
  "game": {
    "arch": "win64",
    "exe": "drive_c/windows/system32/winecfg.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\"; };\nfetch wine/wine_gecko-2.47-x86.msi;\nfetch wine/wine_gecko-2.47-x86_64.msi;\nfetch wine/wine-gecko-2.47.1-x86.msi;\nfetch wine/wine-gecko-2.47.1-x86_64.msi;\nfetch wine/wine-gecko-2.47.2-x86.msi;\nfetch wine/wine-gecko-2.47.2-x86_64.msi;\nfetch wine/wine-mono-4.7.5.msi;\nfetch wine/wine-mono-5.0.0-x86.msi;\nfetch wine/wine-mono-5.1.0-x86.msi;\nfetch wine/wine-mono-5.1.1-x86.msi;\nfetch wine/wine-mono-6.0.0-x86.msi;\n",
        "description": "\u4e0b\u8f7d Wine Mono \u548c Wine Gecko \u7ec4\u4ef6"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "\u521b\u5efa64\u4f4dWine\u524d\u7f00",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "execute": {
        "command": "rm -f \"$GAMEDIR/dosdevices/m::\"; ln -sf \"$HOME\" \"$GAMEDIR/dosdevices/m:\"",
        "description": "\u6dfb\u52a0\u4e3b\u76ee\u5f55($HOME)\u4e3aM\u76d8"
      }
    },
    {
      "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": {
      "api-ms-win-core-privateprofile-l1-1-0": "n,b",
      "d3dcompiler_47": "n,b",
      "d3dcsx_47": "n,b",
      "d3dx11_42": "n,b",
      "d3dx9_42": "n,b",
      "ddraw": "n,b",
      "nvapi": "disabled",
      "nvapi64": "disabled",
      "winedbg.exe": "disabled"
    },
    "vkd3d": true
  }
}
返回游戏