Installer lutris-0

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

files:
- setup: N/A:Select a exe
game:
  arch: win32
  exe: drive_c/Program Files/a/b.exe
  prefix: $GAMEDIR
installer:
- execute:
    command: "fetch() {\n  dir=\\\"$HOME/.cache/$(dirname \\\"$1\\\")\\\";\n  path=\\\
      \"$HOME/.cache/$1\\\";\n  url=\\\"https://file.winegame.net/cache/$1\\\";\n\
      \  mkdir -p \\\"$dir\\\";\n  wget -c -O \\\"$path\\\" \\\"$url\\\";\n};\nfetch\
      \ wine/fonts/MicrosoftYaHeiMono.tar.gz;\n"
    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
- task:
    app: ie8 xna40 winxp
    arch: win32
    description: "\u5B89\u88C5\u8FD0\u884C\u5E93..."
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    arch: win32
    description: run the exe you selected
    exclude_processes: b.exe wineconsole explorer.exe
    executable: setup
    name: wineexec
- 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:
    nvapi: disabled
    nvapi64: disabled
    winedbg.exe: disabled
  version: lutris-4.21-x86_64
  vkd3d: true
{
  "files": [
    {
      "setup": "N/A:Select a exe"
    }
  ],
  "game": {
    "arch": "win32",
    "exe": "drive_c/Program Files/a/b.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "fetch() {\n  dir=\\\"$HOME/.cache/$(dirname \\\"$1\\\")\\\";\n  path=\\\"$HOME/.cache/$1\\\";\n  url=\\\"https://file.winegame.net/cache/$1\\\";\n  mkdir -p \\\"$dir\\\";\n  wget -c -O \\\"$path\\\" \\\"$url\\\";\n};\nfetch wine/fonts/MicrosoftYaHeiMono.tar.gz;\n",
        "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"
      }
    },
    {
      "task": {
        "app": "ie8 xna40 winxp",
        "arch": "win32",
        "description": "\u5b89\u88c5\u8fd0\u884c\u5e93...",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win32",
        "description": "run the exe you selected",
        "exclude_processes": "b.exe wineconsole explorer.exe",
        "executable": "setup",
        "name": "wineexec"
      }
    },
    {
      "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": {
      "nvapi": "disabled",
      "nvapi64": "disabled",
      "winedbg.exe": "disabled"
    },
    "version": "lutris-4.21-x86_64",
    "vkd3d": true
  }
}
返回游戏