Installer huan-xiang-quan-ming-xing-1

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

files:
- setup: http://acupdate-10019353.file.myqcloud.com/Launcher/FantasyAllStars.zip
- dxdlls: https://file.winegame.net/games/battlenet/dxdlls.tar.xz
- wineinit: https://file.winegame.net/games/common/wineinit.sh
game:
  arch: win32
  exe: drive_c/幻想全明星/Launcher/幻想全明星.exe
  prefix: $GAMEDIR
installer:
- execute:
    command: bash "$wineinit" win32
    description: 下载字体和运行库
- task:
    arch: win32
    description: 正在创建 Wine32 位环境
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: ie8
    arch: win32
    description: 正在安装 IE8(x86)...
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    app: vcrun2005
    arch: win32
    description: 正在安装 VC2005 运行库...
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    app: vcrun2008
    arch: win32
    description: 正在安装 VC2008 运行库...
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    app: vcrun2010
    arch: win32
    description: 正在安装 VC2010 运行库...
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    app: vcrun2012
    arch: win32
    description: 正在安装 VC2012 运行库...
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    app: vcrun2013
    arch: win32
    description: 正在安装 VC2013 运行库...
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    app: vcrun2015
    arch: win32
    description: 正在安装 VC2015 运行库...
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- extract:
    description: 解压CMD字体
    dst: $GAMEDIR/drive_c/windows/Fonts
    file: $HOME/.cache/wine/fonts/MicrosoftYaHeiMono.tar.gz
- extract:
    description: 解压安装包
    dst: $GAMEDIR
    file: setup
    format: zip
- 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: cd "$GAMEDIR/drive_c" && tar -Jvxf "$dxdlls"
    description: 解压 DX DLL
- write_file:
    content: |-
      dxgi.nvapiHack = False
      [ACClient.exe]
      dxvk.hud = compiler
    file: $GAMEDIR/dxvk.conf
- task:
    app: arial cjkfonts
    arch: win32
    description: 安装字体...
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    name: winekill
    prefix: $GAMEDIR
- 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
- task:
    arch: win32
    description: |-
      幻想全明星安装程序即将启动
      ------------------------------
      请在安装程序中完成安装。
      注意,一定要安装到默认路径,不要安装到任何其他位置,否则程序会认为安装失败!
      不必登录客户端,安装完成后关闭安装程序即可。
    exclude_processes: \u5E7B\u60F3\u5168\u660E\u661F.exe wineconsole explorer.exe
    executable: $GAMEDIR\幻想全明星.exe
    name: wineexec
- task:
    name: winekill
    prefix: $GAMEDIR
system:
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    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: native,builtin
    d3dcompiler_47: native,builtin
    d3dcsx_47: native,builtin
    d3dx11_42: native,builtin
    d3dx9_42: native,builtin
    ddraw: native,builtin
    winedbg.exe: disabled
  vkd3d: true
{
  "files": [
    {
      "setup": "http://acupdate-10019353.file.myqcloud.com/Launcher/FantasyAllStars.zip"
    },
    {
      "dxdlls": "https://file.winegame.net/games/battlenet/dxdlls.tar.xz"
    },
    {
      "wineinit": "https://file.winegame.net/games/common/wineinit.sh"
    }
  ],
  "game": {
    "arch": "win32",
    "exe": "drive_c/\u5e7b\u60f3\u5168\u660e\u661f/Launcher/\u5e7b\u60f3\u5168\u660e\u661f.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "bash \"$wineinit\" win32",
        "description": "\u4e0b\u8f7d\u5b57\u4f53\u548c\u8fd0\u884c\u5e93"
      }
    },
    {
      "task": {
        "arch": "win32",
        "description": "\u6b63\u5728\u521b\u5efa Wine32 \u4f4d\u73af\u5883",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "ie8",
        "arch": "win32",
        "description": "\u6b63\u5728\u5b89\u88c5 IE8(x86)...",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "task": {
        "app": "vcrun2005",
        "arch": "win32",
        "description": "\u6b63\u5728\u5b89\u88c5 VC2005 \u8fd0\u884c\u5e93...",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "task": {
        "app": "vcrun2008",
        "arch": "win32",
        "description": "\u6b63\u5728\u5b89\u88c5 VC2008 \u8fd0\u884c\u5e93...",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "task": {
        "app": "vcrun2010",
        "arch": "win32",
        "description": "\u6b63\u5728\u5b89\u88c5 VC2010 \u8fd0\u884c\u5e93...",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "task": {
        "app": "vcrun2012",
        "arch": "win32",
        "description": "\u6b63\u5728\u5b89\u88c5 VC2012 \u8fd0\u884c\u5e93...",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "task": {
        "app": "vcrun2013",
        "arch": "win32",
        "description": "\u6b63\u5728\u5b89\u88c5 VC2013 \u8fd0\u884c\u5e93...",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "task": {
        "app": "vcrun2015",
        "arch": "win32",
        "description": "\u6b63\u5728\u5b89\u88c5 VC2015 \u8fd0\u884c\u5e93...",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "extract": {
        "description": "\u89e3\u538bCMD\u5b57\u4f53",
        "dst": "$GAMEDIR/drive_c/windows/Fonts",
        "file": "$HOME/.cache/wine/fonts/MicrosoftYaHeiMono.tar.gz"
      }
    },
    {
      "extract": {
        "description": "\u89e3\u538b\u5b89\u88c5\u5305",
        "dst": "$GAMEDIR",
        "file": "setup",
        "format": "zip"
      }
    },
    {
      "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"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c\" && tar -Jvxf \"$dxdlls\"",
        "description": "\u89e3\u538b DX DLL"
      }
    },
    {
      "write_file": {
        "content": "dxgi.nvapiHack = False\n[ACClient.exe]\ndxvk.hud = compiler",
        "file": "$GAMEDIR/dxvk.conf"
      }
    },
    {
      "task": {
        "app": "arial cjkfonts",
        "arch": "win32",
        "description": "\u5b89\u88c5\u5b57\u4f53...",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "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": {
        "arch": "win32",
        "description": "\u5e7b\u60f3\u5168\u660e\u661f\u5b89\u88c5\u7a0b\u5e8f\u5373\u5c06\u542f\u52a8\n------------------------------\n\u8bf7\u5728\u5b89\u88c5\u7a0b\u5e8f\u4e2d\u5b8c\u6210\u5b89\u88c5\u3002\n\u6ce8\u610f\uff0c\u4e00\u5b9a\u8981\u5b89\u88c5\u5230\u9ed8\u8ba4\u8def\u5f84\uff0c\u4e0d\u8981\u5b89\u88c5\u5230\u4efb\u4f55\u5176\u4ed6\u4f4d\u7f6e\uff0c\u5426\u5219\u7a0b\u5e8f\u4f1a\u8ba4\u4e3a\u5b89\u88c5\u5931\u8d25\uff01\n\u4e0d\u5fc5\u767b\u5f55\u5ba2\u6237\u7aef\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\u5173\u95ed\u5b89\u88c5\u7a0b\u5e8f\u5373\u53ef\u3002",
        "exclude_processes": "\\u5E7B\\u60F3\\u5168\\u660E\\u661F.exe wineconsole explorer.exe",
        "executable": "$GAMEDIR\\\u5e7b\u60f3\u5168\u660e\u661f.exe",
        "name": "wineexec"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "system": {
    "env": {
      "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
      "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": "native,builtin",
      "d3dcompiler_47": "native,builtin",
      "d3dcsx_47": "native,builtin",
      "d3dx11_42": "native,builtin",
      "d3dx9_42": "native,builtin",
      "ddraw": "native,builtin",
      "winedbg.exe": "disabled"
    },
    "vkd3d": true
  }
}
返回游戏